<?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 Liam Giles on Medium]]></title>
        <description><![CDATA[Stories by Liam Giles on Medium]]></description>
        <link>https://medium.com/@liam.giles?source=rss-301fdd4969b5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*i0GDloI6z0JTPXDN</url>
            <title>Stories by Liam Giles on Medium</title>
            <link>https://medium.com/@liam.giles?source=rss-301fdd4969b5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 05:14:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@liam.giles/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[Taking advantage of a Google-style data layer with Adobe Launch]]></title>
            <link>https://medium.com/station10/taking-advantage-of-a-google-style-data-layer-with-adobe-launch-3a4705f8ac55?source=rss-301fdd4969b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a4705f8ac55</guid>
            <category><![CDATA[datalayer]]></category>
            <category><![CDATA[adobe-analytics]]></category>
            <category><![CDATA[digital-analytics]]></category>
            <category><![CDATA[google-analytics]]></category>
            <category><![CDATA[adobe-launch]]></category>
            <dc:creator><![CDATA[Liam Giles]]></dc:creator>
            <pubDate>Mon, 22 Jan 2024 14:18:20 GMT</pubDate>
            <atom:updated>2024-01-22T14:18:20.366Z</atom:updated>
            <content:encoded><![CDATA[<p>This blog should be helpful for anyone who’s already got a <a href="https://developers.google.com/tag-platform/tag-manager/datalayer#use_a_data_layer_with_event_handlers">Google-style dataLayer</a> implemented on their website but wants to use <a href="https://experienceleague.adobe.com/docs/experience-platform/tags/home.html?lang=en">Adobe’s tag manager</a> (previously Adobe Launch, now rebranded to Data Collection Tags). Maybe you’re migrating from GA4 to Adobe but you want to leverage your existing data layer.</p><p>The examples below will be for implementing Adobe Analytics using the new <a href="https://experienceleague.adobe.com/docs/experience-platform/edge/home.html?lang=en">AEP Web SDK</a>, but these features will be useful for any sort of implementation, including Google Analytics, traditional Adobe Analytics, and any marketing tags you have.</p><h3><strong>The Google Data Layer</strong></h3><p>A data layer is a JavaScript object that has been implemented on a website to expose data in a clear and consistent format, so it can be used by Tag Management Systems (TMS) such as Adobe Launch and Google Tag Manager.</p><p>Data layers can be implemented in a variety of ways, but because of the prevalence of Google Analytics, Google’s ‘style’ of data layer is a very common one. It’s an <a href="https://jimalytics.com/tag-management/the-event-driven-data-layer/">event-driven</a> data layer, where each thing that you want to track is an object pushed to an array called dataLayer. Over the years Google has defined many <a href="https://developers.google.com/analytics/devguides/collection/ga4/ecommerce?client_type=gtm">recommended events</a>, but you can structure the contents of the event however you want. Here’s a quick example of a data layer event for tracking when a user adds a product to the cart:</p><pre>dataLayer.push({<br>  event: &quot;add_to_cart&quot;,<br>  ecommerce: {<br>    currency: &quot;USD&quot;,<br>    value: 9.99,<br>    items: [<br>    {<br>      item_id: &quot;SKU_12345&quot;,<br>      item_name: &quot;Stan and Friends Tee&quot;,<br>      item_brand: &quot;Google&quot;,<br>      item_category: &quot;Apparel&quot;,<br>      item_category2: &quot;Adult&quot;,<br>      item_category3: &quot;Shirts&quot;,<br>      item_category4: &quot;Crew&quot;,<br>      item_category5: &quot;Short sleeve&quot;,<br>      price: 9.99,<br>      quantity: 1<br>    }<br>    ]<br>  }<br>});</pre><h3>The ‘Google Data Layer’ Launch Extension</h3><p>With that intro out of the way, the main topic of this blog is the <a href="https://experienceleague.adobe.com/docs/experience-platform/tags/extensions/client/google-data-layer/overview.html?lang=en">Google Data Layer extension</a> that Adobe provides. Firstly, we’ll need to install the extension, so navigate to the Extensions Catalog in Adobe Launch and type “Google Data Layer”.</p><p>You should be able to select and install the extension shown in the screenshot below:</p><figure><img alt="Google Data Layer extension in Adobe Launch" src="https://cdn-images-1.medium.com/max/465/1*IzpMedokprF5RTVEl8MI4g.png" /><figcaption>Google Data Layer in Adobe Launch</figcaption></figure><p>The extension allows for easier integration with the Google data layer in the Launch user interface and also gives us some cool features we can use in custom code for more advanced things.</p><h4>Rules</h4><p>One of the main benefits of the extension is being able to use pushes to the dataLayer object as triggers in a Rule. In the Rule event configuration, select the Google Data Layer extension and set the Event Type as ‘Google DL Push Event’. For example, if you have an e-commerce site and wish to fire a rule on the ‘purchase’ event, we can use the below event configuration to do so:</p><figure><img alt="Example Google dataLayer push event used as a Adobe Launch event." src="https://cdn-images-1.medium.com/max/940/1*IlsdrzZW8B9IsQJwy5i6XQ.png" /><figcaption>Purchase Google Event used as an event to fire an Adobe Launch rule</figcaption></figure><p>This would trigger the Rule on the following data layer event:</p><pre>dataLayer.push({<br>  event: &quot;purchase&quot;,<br>  ecommerce: {<br>      transaction_id: &quot;T_12345&quot;,<br>      value: 25.42,<br>      tax: 4.90,<br>      currency: &quot;USD&quot;,<br>      ...<br>   }<br>});</pre><h4>Data Elements</h4><p>This extension also allows for easy Data Element creation by being able to reference objects in the Google data layer:</p><figure><img alt="Google dataLayer being used in an Adobe Launch Data element" src="https://cdn-images-1.medium.com/max/940/1*eiX7r2JWB5xlRRKyn_WvuA.png" /></figure><p>To do this, create a new data element and select the Google Data Layer extension. Name the Data Element something descriptive and then type in the dataLayer object path into the text field.</p><p>One very important setting here is the ‘Only event properties’ toggle. This will determine whether Adobe looks for the object path in the ‘computed state’ of the data layer, or only the current event that triggered the rule.</p><p>This is a bit complex, so let&#39;s look at a quick example. Say we’ve had two data layer events on the page, one for the page view and one for a click on an accordion:</p><pre>dataLayer.push({<br>  event: &quot;page_view&quot;,<br>  pageName: &quot;home&quot;,<br>});<br><br>dataLayer.push({<br>  event: &quot;accordion_click&quot;,<br>  accordionName: &quot;accordion_1&quot;,<br>});</pre><p>The ‘computed state’ of the data layer will be a collapsed object that contains the latest value for each item in the array, so it’ll look something like this:</p><pre>{<br>  &quot;pageName&quot;: &quot;home&quot;,<br>  &quot;accordionName&quot;: &quot;accordion_1&quot;,<br>}</pre><p>This means that if we have a Data Element that points to ‘pageName’, which we want to use in the accordion_click event;</p><ul><li>If ‘only event properties’ is ON, the ‘pageName’ Data Element will return undefined when used in the accordion_click event. Because pageName did not exist in that specific event.</li><li>If ‘only event properties’ is OFF, then Adobe will look for the most recent value of pageName in the whole dataLayer array, and return that value, so home in this scenario.</li></ul><h3><strong>Using the extension in custom JavaScript code</strong></h3><p>The extension also allows for some nifty tricks that can be used when using custom JavaScript code, which is very handy for use when trying to capture specific values in data elements when only certain events fire. Or when trying to handle building the XDM object for sending off to AEP, as covered in <a href="https://medium.com/station10/approaches-to-implementing-adobe-analytics-via-aep-web-sdk-and-adobe-launch-46574b76c5f1">this blog</a>.</p><p>The extension allows us to access both the contents of the event and the computed state in custom code, using the event object. As an example, here’s what it looks like if we just run the code console.log(event) in a rule triggered by a Google data layer push event:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*k4TDdzIMxS3WUGdoodzPQg.png" /></figure><p>Inside this object are some very useful things:</p><ul><li>In $rule we get information about the configuration of the Rule that was triggered.</li><li>In event.dataLayerModel we get the computed state of the data layer, as described above.</li><li>In event.eventModel we get the contents of only the event that triggered the rule, not the whole state.</li></ul><p>So we can use the contents of the event in custom code. This can be really useful for setting various fields in an XDM schema, such as in this example where we set Adobe’s commerce object based on Google’s standard e-commerce events:</p><pre>// This function produces an Adobe style commerce object depending on the data layer event type<br>// See here for mapping from XDM to legacy Analytics variables: https://experienceleague.adobe.com/docs/analytics/implementation/aep-edge/variable-mapping.html?lang=en<br>function getCommerceObject(event) {<br>    const eventName = event.message.event;<br>    const eventMessage = event.message;<br><br>    if (eventName === &#39;Product Impression&#39; || eventName === &#39;View Product&#39;) {<br>        return { productViews: { value: 1 } }; // Increments the ProdView metric<br><br>    } else if (eventName === &#39;Remove From Cart&#39;) {<br>        return { productListRemovals: { value: 1 } }; // Increments the scRemove metric<br><br>    } else if (eventName === &#39;Add To Cart&#39;) {<br>        return { productListAdds: { value: 1 } }; // Increments the scAdd metric<br><br>    } else if (eventName === &#39;Cart Open&#39;) {<br>        return { productListOpens: { value: 1 } }; // Increments the scOpen metric<br><br>    } else if (eventName === &#39;Cart View&#39;) {<br>        return { productListViews: { value: 1 } }; // Increments the scView metric<br><br>    } else if (eventName === &#39;Checkout Start&#39;) {<br>        return { checkouts: { value: 1 } }; // Increments the scCheckout metric<br><br>    } else if (eventName === &#39;Purchase&#39;) {<br>        return {<br>            purchases: { value: 1 }, // Increments the Orders metric.<br>            order: {<br>                currencyCode: eventMessage.currency, // Sets the currencyCode configuration variable<br>                purchaseID: eventMessage.transactionReference, // Sets the purchaseID page variable<br>                payments: [{ transactionID: eventMessage.transactionReference }], // Sets the transactionID page variable<br>            }<br>        };<br><br>    } else {<br>        return {}; // default return if event type doesn&#39;t match any known types<br>    }<br>}<br><br>return getCommerceObject(event);</pre><h3><strong>Integrating data elements into an XDM schema</strong></h3><p>With the above example code, we check for certain events being pushed to the data layer and return a value which allocates what commerce event we want to fire.</p><p>With the custom code data element we already created, we can then input that object directly into the XDM schema.</p><figure><img alt="XDM object in Adobe Launch using a Custom code data element that used features from Google Data Layer extension" src="https://cdn-images-1.medium.com/max/940/1*rMyuB04bQAoA7QW-NuIEew.png" /></figure><p>If you want a more in-depth look into the XDM methodology and how to set it up, we have another blog <a href="https://medium.com/station10/approaches-to-implementing-adobe-analytics-via-aep-web-sdk-and-adobe-launch-46574b76c5f1">here</a> that delves a lot deeper into it!</p><p>This data element is then integrated into a rule which uses the Google Data layer extension to fire the rule when the add_to_cart event is pushed to the dataLayer. We then send the Commerce XDM object in the action.</p><figure><img alt="A AEP Add to cart send event rule using Google Data Layer extension to fire the rule on Add to Cart" src="https://cdn-images-1.medium.com/max/329/1*0V0tm2OGD_TfSqZ9G2GvEA.png" /><figcaption>Add to Cart Adobe Launch Rule</figcaption></figure><h3>Conclusion</h3><p>The Google Data Layer extension makes taking advantage of data from the Google dataLayer so much simpler. It also opens up some avenues to use custom code data elements and actions, which weren’t available before. We used this extension to format into an AEP XDM Schema, very quickly and easily, but can be used to do any sort of implementation.</p><h3>About Us</h3><p><a href="http://www.station10.co.uk/">Station10</a> believe in open source and sharing knowledge and our Medium content is never paywalled, so please leave a clap if you’ve found this useful. This helps motivate us to write more content and gives us a better idea of what to write more about.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a4705f8ac55" width="1" height="1" alt=""><hr><p><a href="https://medium.com/station10/taking-advantage-of-a-google-style-data-layer-with-adobe-launch-3a4705f8ac55">Taking advantage of a Google-style data layer with Adobe Launch</a> was originally published in <a href="https://medium.com/station10">Station10</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ObservePoint — Web Journeys]]></title>
            <link>https://medium.com/station10/observepoint-web-journeys-091f55842860?source=rss-301fdd4969b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/091f55842860</guid>
            <category><![CDATA[digital-analytics]]></category>
            <category><![CDATA[adobe-analytics]]></category>
            <dc:creator><![CDATA[Liam Giles]]></dc:creator>
            <pubDate>Fri, 24 Nov 2023 16:11:56 GMT</pubDate>
            <atom:updated>2023-11-24T16:11:56.321Z</atom:updated>
            <content:encoded><![CDATA[<h3>ObservePoint — Web Journeys</h3><h3>Introduction to ObservePoint Web Journeys</h3><p>ObservePoint Journeys are a great tool that can be used to simulate a user interacting with your website. They can be used to report on marketing or analytics tags, cookies, console errors, and much more. So, they are great for testing critical paths on a website, such as:</p><ul><li>Testing a long loan application journey</li><li>Validating your checkout funnel analytics is working correctly</li><li>Confirming that your marketing tags are collecting the right data</li></ul><p>The tool itself is quite simple but has some particularly useful features that allow for automated testing and auditing. We’ll look at some of those features in this blog!</p><h3>Journeys Snapshot</h3><p>Journeys can give you a snapshot of what appears in the data layer throughout the journey, giving you a full picture of what is being captured and what is available to capture in any analytics or marketing tags.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pOHvF2ZxCOZMJtkY.png" /><figcaption>Screenshots of a typical journey</figcaption></figure><p>The screenshot above depicts a typical running web journey. On the left-hand side, you have the actions listed, which you can select. Upon selection, you can see snapshots of the firing tags, the variables within those tags, their values, cookies, and whether a rule (condition) has failed or succeeded.</p><p>This can be really helpful to run through and test a journey every time you make a change on the website to ensure all analytics and marketing tags are functioning correctly.</p><h3>Setting Up Journeys:</h3><p>To set up a web journey, actions must be manually configured at the outset. These actions serve as steps guiding ObservePoint to the desired checkpoints. For instance, the process might be: Navigate to website -&gt; Fill in form -&gt; Click the ‘Continue’ button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6p_KE6Z8FgqZkeRp.png" /></figure><h3>Output of a Web Journey:</h3><p>Once the journey is run for the first time, you can view the output. This can be seen in the following tabs:</p><ul><li>Tag Presence shows what tags have sent network requests when the action happened</li><li>Variable Summary shows all the different network requests, any data layer updates, and variables and their values.</li><li>Cookies tab shows all cookies and their attributes.</li></ul><p>Screenshots of all tabs can be seen below. A link explaining each of these in more detail can be found on the ObservePoint website here: <a href="https://help.observepoint.com/article/224-journey-report">https://help.observepoint.com/article/224-journey-report</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*B-wlVumQB-Rscurz.png" /><figcaption>Tag Presence</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ubiGSVoFjV7gijzz.png" /><figcaption>Variable Summary</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bWsfC9dTYIDQi7fx.png" /><figcaption>Tags</figcaption></figure><h3>Rules and Rule Application</h3><p>Lastly, the Rules tab shows whether a rule has failed or passed.</p><p>Rules are applied to either the journey or the steps themselves. These rules are a list of conditions which flag either the whole journey or the step itself. For example, if you want to make sure the data layer exists throughout the journey you can have a rule applied to the whole journey which has the condition “does the data layer exist?” If the rules are not matched, then it will flag the journey with an error.</p><p>As mentioned, you can also apply these rules to the individual step as well. This is to enable the rule to check for a specific value within a tag at the step it is applied to. For example, on the conversion page, a Facebook tag needs to fire with the revenue in it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*puLDsK1dmhWA2wD2.png" /><figcaption>A rule on an action</figcaption></figure><h3>Journeys as a Testing Tool</h3><p>Hopefully, this demonstrates how Web Journey can be a particularly useful tool within ObservePoint, for when you need quick testing after making a change to either the website or any implemented tags. Rules allow you to see if a journey is behaving as expected, and the other information provided by the web journey also allows you to deep dive into what is potentially available to track in other tags going forward.</p><p>For more information, check out ObservePoint’s documetation on the feature: <a href="https://help.observepoint.com/article/248-creating-journeys">https://help.observepoint.com/article/248-creating-journeys</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=091f55842860" width="1" height="1" alt=""><hr><p><a href="https://medium.com/station10/observepoint-web-journeys-091f55842860">ObservePoint — Web Journeys</a> was originally published in <a href="https://medium.com/station10">Station10</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>