<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by भानुज (BHANUJ) on Medium]]></title>
        <description><![CDATA[Stories by भानुज (BHANUJ) on Medium]]></description>
        <link>https://medium.com/@bhanujbawdhane?source=rss-1f384bf733c8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*P6k2LVsJc_4wKtkWrwxx9w.png</url>
            <title>Stories by भानुज (BHANUJ) on Medium</title>
            <link>https://medium.com/@bhanujbawdhane?source=rss-1f384bf733c8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 12:35:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bhanujbawdhane/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[SFRA (Salesforce Cloud Commerce) integration with Tealium Tag Management — PART 1]]></title>
            <link>https://medium.com/@bhanujbawdhane/sfra-salesforce-cloud-commerce-integration-with-tealium-tag-management-part-1-4b7e60164a03?source=rss-1f384bf733c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b7e60164a03</guid>
            <category><![CDATA[tealium]]></category>
            <category><![CDATA[sfra]]></category>
            <category><![CDATA[sfcc]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[analytics]]></category>
            <dc:creator><![CDATA[भानुज (BHANUJ)]]></dc:creator>
            <pubDate>Thu, 20 Aug 2020 11:39:47 GMT</pubDate>
            <atom:updated>2020-08-20T15:32:11.851Z</atom:updated>
            <content:encoded><![CDATA[<h3>SFRA (Salesforce Cloud Commerce) integration with Tealium Tag Management — PART 1</h3><p>Tealium is a Tag Management library which makes it simple for users to implement, manage, and maintain tags on their digital properties with an easy to use web interface. This page documents the technical design to integrate Tealium across the website developed using SFRA.</p><p><strong>CARTRIDGE</strong>: <br>We can create a cartridge plugin_tealium , so that it can easily be plugged in.</p><p><strong>STRUCTURE</strong>:<br>1. In <strong><em>/plugin_tealium/cartridge/scripts/datalayer.js</em></strong>, we configure the page name/ page type mapping. It is also used to create the data &amp; event objects which will populate the DOM’s node dataset attributes on various pages. More on this file later.</p><figure><img alt="Mapping of page type &amp; page name" src="https://cdn-images-1.medium.com/max/1024/1*FVyAQwdMrq4wLWj-6jcYvA.jpeg" /><figcaption>datalayer.js</figcaption></figure><p>2. /plugin_tealium/cartridge/templates/default/common/datalayer.isml, will be used to create DOM elements for data &amp; event on the pages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y_usIB3AkmzwMHFsVbRSug.jpeg" /><figcaption>datalyer.isml</figcaption></figure><p>3. Custom <strong>page.isml</strong> should include <strong>tealium.isml</strong> as a first thing inside the body tag. <br>/&lt;storefront&gt;/cartridge/templates/default/common/layout/page.isml</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D5yBp58UghXqybDOmdt84g.jpeg" /><figcaption>page.isml</figcaption></figure><p><strong>tealium.isml</strong> will load <strong>utag.js</strong> to fetch the node dataset values and make view/link calls to tealium.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4m5u7Bad_9ef41JrJmwKXQ.jpeg" /><figcaption>tealium.isml</figcaption></figure><p>So far we covered the basic data structure of the tealium integration.</p><p><strong>DESIGN:</strong></p><p>As controllers render the ISML with data, therefore, we need to extend/override the controllers to introduce the datalyer.js. From controllers we pass on the CONTEXT, ‘page name’ &amp; ‘page type’ to datalayer, so that it can create the global &amp; page specific data/event objects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PokvGr32VceIoWDONG_x4g.jpeg" /><figcaption>Controller Code</figcaption></figure><p>CONTEXT denotes the current page context. CONTEXT.GLOBALis for Home Page. As it is the basic data structure hence it will be extended by various other contexts like CONTEXT.PLP, CONTEXT.PRODUCT, CONTEXT.SEARCH, CONTEXT.ACCOUNT etc. These context will internally call global data API to create the UDO ( Universal Data Object ) and then append the page specific properties in datalayer.js.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PfDtmOJF3aBfOHRBEUifSg.jpeg" /><figcaption>datalayer.js</figcaption></figure><p>Let’s see a real example for home page where we need to display the view data and populate the utag_data or utag, so that it can be used on the page freely.</p><p><strong>Overwrite</strong> /plugin_tealium/cartridge/controllers/Home.js, to populate the datalyer object</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H0y2c6RQorAwDDjBwFxHBg.jpeg" /><figcaption>Home.js</figcaption></figure><p>Overwrite <strong>/&lt;storefront&gt;/cartridge/templates/default/common/layout/page.isml, </strong>and include the following files:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8A0iuySpGc6WhkGTeAqBUA.jpeg" /></figure><p>In Storefront, utag.js will be loaded as:</p><p>&lt;script src=&quot;//tags.tiqcdn.com/utag/&lt;&lt;account&gt;&gt;/&lt;&lt;profile&gt;&gt;/&lt;&lt;environment&gt;&gt;/utag.js&quot; type=&quot;text/javascript&quot; async=&quot;&quot;&gt;&lt;/script&gt;</p><p>DOM Node dataset will be populated with the utag_data as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VDZLtETWYFVOzaw1NO7l5g.jpeg" /><figcaption>In Elements</figcaption></figure><p>And, we are done!</p><p>That’s all for the view data…will publish soon for the event as well.</p><p>Thanks for reading till the end :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b7e60164a03" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Debugging Salesforce Cloud Commerce App using VS Code]]></title>
            <link>https://medium.com/@bhanujbawdhane/debugging-salesforce-cloud-commerce-app-using-vs-code-dcb6c3b2ebe?source=rss-1f384bf733c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/dcb6c3b2ebe</guid>
            <category><![CDATA[salesforce-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[salesforce-commerce-cloud]]></category>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[visual-studio]]></category>
            <dc:creator><![CDATA[भानुज (BHANUJ)]]></dc:creator>
            <pubDate>Thu, 07 Feb 2019 16:39:02 GMT</pubDate>
            <atom:updated>2019-02-07T16:39:02.223Z</atom:updated>
            <content:encoded><![CDATA[<p>This article is to provide info on how to debug the Salesforce Cloud Commerce application running over Salesforce Sandbox, by initiating the Digital Server connection.</p><p>We are using the following:</p><ol><li>SFRA ( Storefront Reference Architecture)</li><li>Visual Studio Code</li><li>Prophet Debugger Extension</li></ol><p>Steps:</p><ol><li>Import the project folder in the VS Code. You will find .vscode folder created automatically in your project structure. It should have a launch.json file.</li><li>Create a dw.json file alongside with your cartridges. Provide the needed details and save.<br> <br> cartridges:<br> — app_storefront_base<br> — modules<br> — weather<br> — dw.json</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zcBSnb7KP_p8zps0EoneKQ.png" /><figcaption>dw.json file placement</figcaption></figure><p>3. Go to marketplace in the Studio and install the extension “Prophet Debugger”. It provides the facility to debug and upload the cartridges to the sandbox.</p><p>Once done you will see the last icon in the left menu bar for the Prophet debugger.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rVDaXkPohqLNwf32CVKB5w.png" /><figcaption>Prophet Debugger</figcaption></figure><p>4. In launch.json file edit the property ‘name’ to any name you like. We provided ‘Digital Server’.</p><p>This setting will be used by the Prophet debugger to make a connection with Salesforce Cloud Digital Server, using the data provided in dw.json.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y4Voxw5Esw-c6F6-ChWTkg.png" /><figcaption>Naming the Digital Server Connection using launch.json</figcaption></figure><p>5. Click on the Prophet icon and you will find the cartridges section. You can see that this perspective providing us the options to create cartridge &amp; enable/disable upload.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EBys4Dg00zpZe5vN_0MiAA.png" /><figcaption>Options provided for Cartridge creation/deployment</figcaption></figure><p>6. When you hover over the ‘red refresh icon’, the text will appear ‘Prophet: Clean Project/Upload All’.</p><p>Once clicked it will do the build and deploy all cartridges to the sandbox, as specified in the dw.json.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s40r1_rOmgP2mq5w1-6mBg.png" /><figcaption>Uploading cartridge to the Salesforce sandbox</figcaption></figure><p>7. To debug the application click on the debug icon.<br> You will find the below perspective with the following sections:<br> — Variables<br> — Watch<br> — Call Stack<br> — Breakpoints<br> <br> At the top we can find the option ‘Digital Server’ appearing. It is the name that we provided in the launch.json in name property.<br> <br>We can launch the application the debug mode by clicking the option ‘Digital Server’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*8XYr57GLOSxT5BDtdZsNVA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dcb6c3b2ebe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Debugging Salesforce Cloud Commerce App using VS Code]]></title>
            <link>https://medium.com/series/debugging-salesforce-cloud-commerce-app-using-vs-code-ab5c7c59ffb9?source=rss-1f384bf733c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab5c7c59ffb9</guid>
            <dc:creator><![CDATA[भानुज (BHANUJ)]]></dc:creator>
            <pubDate>Thu, 07 Feb 2019 13:44:38 GMT</pubDate>
            <atom:updated>2019-02-07T16:38:15.003Z</atom:updated>
            <content:encoded><![CDATA[<p>This article is to provide info on how to debug the Salesforce Cloud Commerce application running over Salesforce Sandbox, by initiating the Digital Server connection.</p><p>We are using the following:</p><p>1. SFRA ( Storefront Reference Architecture)<br>2. Visual Studio Code<br>3. Prophet Debugger Extension</p><p>Steps:</p><ol><li>Import the project folder in the VS Code. You will find .vscode folder created automatically in your project structure. It should have a launch.json file.</li><li>Create a dw.json file alongside with your cartridges. Provide the needed details and save.<br> <br> cartridges:<br> — app_storefront_base<br> — modules<br> — weather<br> — dw.json</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zcBSnb7KP_p8zps0EoneKQ.png" /></figure><p>3. Go to marketplace in the Studio and install the extension “Prophet Debugger”. It provides the facility to debug and upload the cartridges to the sandbox.</p><p>Once done you will see the last icon in the left menu bar for the Prophet debugger.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rVDaXkPohqLNwf32CVKB5w.png" /></figure><p>4. In launch.json file edit the property ‘name’ to any name you like. We provided ‘Digital Server’.</p><p>This setting will be used by the Prophet debugger to make a connection with Salesforce Cloud Digital Server, using the data provided in dw.json.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y4Voxw5Esw-c6F6-ChWTkg.png" /></figure><p>5. Click on the Prophet icon and you will find the cartridges section. You can see that this perspective providing us the options to create cartridge &amp; enable/disable upload.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EBys4Dg00zpZe5vN_0MiAA.png" /></figure><p>6. When you hover over the ‘red refresh icon’, the text will appear ‘Prophet: Clean Project/Upload All’.</p><p>Once clicked it will do the build and deploy all cartridges to the sandbox, as specified in the dw.json.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s40r1_rOmgP2mq5w1-6mBg.png" /></figure><p>7. To debug the application click on the debug icon.<br> You will find the below perspective with the following sections:<br> — Variables<br> — Watch<br> — Call Stack<br> — Breakpoints<br> <br> At the top we can find the option ‘Digital Server’ appearing. It is the name that we provided in the launch.json in name property.<br> <br>We can launch the application the debug mode by clicking the option ‘Digital Server’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*8XYr57GLOSxT5BDtdZsNVA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab5c7c59ffb9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>