<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Erman Küplü</title>
    <description>The latest articles on Forem by Erman Küplü (@ekuplu).</description>
    <link>https://forem.com/ekuplu</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F533597%2Fe9056572-7e24-41ff-a238-86900fa5612f.jpg</url>
      <title>Forem: Erman Küplü</title>
      <link>https://forem.com/ekuplu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/ekuplu"/>
    <language>en</language>
    <item>
      <title>Shopify Checkout Extensibility &amp; GA4 - Google Ads Tracking</title>
      <dc:creator>Erman Küplü</dc:creator>
      <pubDate>Mon, 04 Mar 2024 15:07:30 +0000</pubDate>
      <link>https://forem.com/analyzify/shopify-checkout-extensibility-ga4-google-ads-tracking-5812</link>
      <guid>https://forem.com/analyzify/shopify-checkout-extensibility-ga4-google-ads-tracking-5812</guid>
      <description>&lt;p&gt;Shopify announced that the checkout.liquid &lt;em&gt;&lt;a href="https://changelog.shopify.com/posts/the-checkout-liquid-theme-file-is-being-deprecated" rel="noopener noreferrer"&gt;will be depreciated on August 13, 2024&lt;/a&gt;&lt;/em&gt; - so not much left. Shopify Plus support team already stopped enabling this file for merchants. So &lt;strong&gt;Shopify Checkout Extensibility becomes the only option&lt;/strong&gt; - if you ever want to edit your checkout steps &amp;amp; add tracking scripts (and of course you want to!)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg1gxjeo3jj87z9hd44fj.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg1gxjeo3jj87z9hd44fj.jpg" alt="Shopify Checkout.liquid depreciation announcement"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Between keeping up with the relentless updates from Google, Meta, Shopify, Facebook and ensuring our tools like Analyzify stay ahead of the curve, I’ve barely had a moment to catch my breath, let alone share my thoughts here. But, here I am, finally making the time to talk about something that’s been a hot topic among our community: &lt;strong&gt;Shopify’s checkout extensibility feature - and its affects to conversion tracking.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;At Analyzify, we received hundreds of questions about this topic - especially from Shopify developers, agencies - who have to do the migration. And yes, here is your old friend to help you out.&lt;/p&gt;

&lt;h2&gt;
  
  
  TLDR:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;You will &lt;u&gt;lose the tracking scripts&lt;/u&gt; (GA4, Google Ads, etc) on checkout.liquid once you upgrade to checkout.liquid. Don’t do the upgrade before you are ready with the scripts.&lt;/li&gt;
&lt;li&gt;You will &lt;u&gt;lose the Order Status Page - Additional Scripts&lt;/u&gt; - which holds 80% of merchant’s conversion tracking tags if you upgrade to the new Checkout thank you page.&lt;/li&gt;
&lt;li&gt;It is possible to revert the changes; but your scripts won’t come back! So, make sure to take a backup of all your scripts.&lt;/li&gt;
&lt;li&gt;You need to use the &lt;strong&gt;Shopify Customer Events&lt;/strong&gt; section, Web Pixels API or an app like Analyzify (well, definitely Analyzify) as a replacement.&lt;/li&gt;
&lt;li&gt;You will be &lt;strong&gt;unable to track the events&lt;/strong&gt; as before because you no longer have direct access to the codes. Shopify Customer Events lives in a Sandbox environment on browsers - so we are quite limited here. (Ssh, don’t worry - we got you covered!)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Navigating Conversion Tracking with Shopify Checkout Extensibility
&lt;/h2&gt;

&lt;p&gt;Transitioning to Shopify's Checkout Extensibility can significantly impact the functionality of your conversion tracking mechanisms for platforms like Google Ads, GA4, and Facebook.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu7jc88psgmp7dlgydlxu.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu7jc88psgmp7dlgydlxu.jpg" alt="Checkout Extensibility on Shopify Admin"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Traditionally, integration codes for tools such as Google Tag Manager, Google Analytics, or Google Ads have been embedded within the checkout.liquid file or directly through Shopify's settings. However, this upgrade might render some codes ineffective, especially if their placement was within these now-altered locations.&lt;/p&gt;

&lt;p&gt;To help with the process, Shopify Admin offers the following analysis of your existing structure and highlights what you should be careful with.&lt;br&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fety92en3yabheywpfq5s.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fety92en3yabheywpfq5s.jpg" alt="Checkout Extensibility Detailed Report"&gt;&lt;/a&gt;&lt;br&gt;
In the example above, Shopify found the Analyzify script on the checkout.liquid file and asks you to be careful with this and upgrade to &lt;a href="https://analyzify.com/hub/shopify-checkout-extensibility-with-analyzify" rel="noopener noreferrer"&gt;Analyzify's latest version that supports checkout extensibility.&lt;/a&gt; &lt;/p&gt;

&lt;h3&gt;
  
  
  Leveraging Shopify Customer Events
&lt;/h3&gt;

&lt;p&gt;As a workaround to the challenges presented by Checkout Extensibility, &lt;a href="https://changelog.shopify.com/posts/central-and-secure-customer-behavior-analysis-with-pixels" rel="noopener noreferrer"&gt;Shopify introduced its alternative solution: Shopify Customer Events&lt;/a&gt;. Think of it as Shopify's rendition of Google Tag Manager—albeit with its own set of limitations, it remains a viable option. This feature (sadly!) operates &lt;strong&gt;within a sandbox environment&lt;/strong&gt;, providing a controlled space for tracking implementations. Shopify does this way to secure the storefront checkout from risks of code insertions. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiobxpc4ayo1v9792a824.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiobxpc4ayo1v9792a824.jpg" alt="Shopify Customer Events - App Pixels"&gt;&lt;/a&gt;&lt;br&gt;
Above you see the App Pixels section on Shopify Customer Events. You will see here the scripts that programmatically added by apps using &lt;a href="https://shopify.dev/docs/api/web-pixels-api" rel="noopener noreferrer"&gt;Shopify Web Pixels API&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;Considering diving deeper into Shopify Customer Events? It might be worth your while to explore a detailed discussion on this topic. (And yes, crafting an extensive post could be incredibly beneficial for many!)&lt;/p&gt;

&lt;p&gt;For those looking to navigate these waters, we recommend consulting the comprehensive guides available on Shopify and Analyzify. These resources offer invaluable insights into making the most out of Shopify's Customer Events and adjusting your tracking strategies accordingly.&lt;/p&gt;

&lt;p&gt;Learn more from Shopify's official guide: &lt;a href="https://help.shopify.com/en/manual/promoting-marketing/pixels" rel="noopener noreferrer"&gt;Shopify Help Center on Pixels&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Check out our relevant guide: &lt;a href="https://analyzify.com/hub/shopify-pixels-customer-events" rel="noopener noreferrer"&gt;Analyzify on Shopify Pixels &amp;amp; Customer Events&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3fwlbcrwa9pbii3dm0je.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3fwlbcrwa9pbii3dm0je.jpg" alt="Shopify Customer Events - Google Tag Manager Checkout Module"&gt;&lt;/a&gt;&lt;br&gt;
In the screenshot above, you will see Analyzify's custom script enabling checkout events tracking and Google Tag Manager on Shopify's new checkout flow. &lt;/p&gt;

&lt;h3&gt;
  
  
  Prioritizing Crucial Tracking Events
&lt;/h3&gt;

&lt;p&gt;It’s essential to underline that the most critical events to track, such as purchases, beginning the checkout process, and navigating through checkout steps, are the most affected by the shift towards checkout extensibility. This necessitates a focused effort to ensure the collection of accurate data during these key e-commerce moments.&lt;/p&gt;

&lt;p&gt;So what could break: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Google Ads Conversion tracking&lt;/li&gt;
&lt;li&gt;Google Ads Dynamic Remarketing Events - Checkout Steps&lt;/li&gt;
&lt;li&gt;Google Analytics 4 Checkout Events &lt;/li&gt;
&lt;li&gt;&lt;a href="https://ga4.com/important-ga4-e-commerce-reports" rel="noopener noreferrer"&gt;Google Analytics 4 E-commerce Reports&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;All other tracking pixels you manually added (such as affiliate tracking) &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You need to move all of these scripts into either Shopify Customer Events (manually) or use an app like Analyzify that uses Shopify Web Pixels API. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmlw58d8z5oo8dfwo52kb.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmlw58d8z5oo8dfwo52kb.jpg" alt="Shopify App Pixels"&gt;&lt;/a&gt;&lt;br&gt;
You will find this section on Shopify Admin &amp;gt; Customer Events &amp;gt; App Pixels. &lt;/p&gt;

&lt;h3&gt;
  
  
  Professional Guidance Through Tracking Adjustments
&lt;/h3&gt;

&lt;p&gt;Our team at Analyzify is ready to guide you through this evolution, ensuring your tracking remains precise and reliable.&lt;/p&gt;

&lt;p&gt;With Analyzify, you gain access to comprehensive setup and review services, all for a one-time fee, ensuring your e-commerce tracking doesn’t skip a beat during this transition.&lt;/p&gt;

&lt;p&gt;We offer a managed migration service at no extra cost for our new clients. &lt;/p&gt;

&lt;h2&gt;
  
  
  Setting up Google Tag Manager with Shopify Checkout Extensibility (2024)
&lt;/h2&gt;

&lt;p&gt;As I mentioned, we no longer have direct access to the codes. Shopify Customer Events section works in a sandbox environment so it works on its little word with many limitations. &lt;/p&gt;

&lt;p&gt;Shopify &lt;a href="https://help.shopify.com/en/manual/promoting-marketing/pixels/custom-pixels/gtm-tutorial" rel="noopener noreferrer"&gt;has an excellent tutorial&lt;/a&gt; on this topic but it doesn't cover all the needs. I will soon create an open source solution this matter as well. But for now, I will explain how we handle this issue for Analyzify clients. &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Data Transformation:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Identify data that is inaccessible due to the sandboxed checkout environment.&lt;/li&gt;
&lt;li&gt;Transform this data into a format suitable for analysis and tracking.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Data Layer Integration:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Relay the transformed data to the dataLayer.&lt;/li&gt;
&lt;li&gt;This creates a bridge for information transfer, making data accessible for tracking purposes.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Data Transmission via GTM:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Utilize Google Tag Manager (GTM) to send the data from the dataLayer to various destinations.&lt;/li&gt;
&lt;li&gt;These destinations include analytics and marketing platforms such as GA4, Google Ads, and Facebook.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3fwlbcrwa9pbii3dm0je.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3fwlbcrwa9pbii3dm0je.jpg" alt="Shopify Customer Events - Google Tag Manager Checkout Module"&gt;&lt;/a&gt;&lt;br&gt;
In the screenshot above, you will see Analyzify's custom script enabling checkout events tracking and Google Tag Manager on Shopify's new checkout flow. &lt;/p&gt;

&lt;h3&gt;
  
  
  Benefits of Our Approach:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Efficient Data Utilization:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Leverage GTM to manage and transmit checkout data efficiently.&lt;/li&gt;
&lt;li&gt;Ensure comprehensive tracking of checkout events and customer behaviors.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Detailed Checkout Tracking:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Monitor crucial checkout events like “add_shipping_info”, “add_contact_info”, and “add_payment_info”.&lt;/li&gt;
&lt;li&gt;Gain clear insights into the customer journey throughout the checkout process.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Constant Updates and Compliance:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Stay updated with the latest Shopify enhancements, including checkout extensibility and custom pixels.&lt;/li&gt;
&lt;li&gt;Ensure codes are continually refreshed to maintain compatibility and functionality.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Easy Debugging and Documentation:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Benefit from a user-friendly system designed for easy debugging and problem resolution.&lt;/li&gt;
&lt;li&gt;Access comprehensive documentation effortlessly, ensuring smooth operation and utilization of our services.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Data Privacy Assurance:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Adhere to GDPR and other data privacy regulations through full compatibility with Shopify's customer privacy API and consent management tools.&lt;/li&gt;
&lt;li&gt;Maintain the highest standards of data privacy and security for your customers' information.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;h3&gt;
  
  
  FAQ
&lt;/h3&gt;

&lt;h4&gt;
  
  
  1. &lt;strong&gt;What is Shopify Checkout Extensibility?&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;Shopify Checkout Extensibility offers a comprehensive solution for customizing the checkout experience, including the design and functionality of checkout, thank you pages, order status, and customer accounts. This feature provides a dedicated environment for enhancing brand consistency and integrating advanced functionalities, all separate from the theme editor.&lt;/p&gt;

&lt;h4&gt;
  
  
  2. &lt;strong&gt;Why should I use Shopify Checkout Extensibility?&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;The primary advantage of utilizing Shopify Checkout Extensibility lies in its user-friendly sandbox environment, which enables significant customization without the need for coding expertise. This facilitates effortless checkout modifications, ensuring a seamless integration without affecting the existing theme structure.&lt;/p&gt;

&lt;h4&gt;
  
  
  3. &lt;strong&gt;How can I activate Shopify Checkout Extensibility?&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;To enable this feature, navigate to Settings &amp;gt; Checkout within your Shopify admin. Shopify Checkout Extensibility can be activated for various checkout stages including contact information, shipping details, payment information, and the thank you/order status page, catering to diverse customization needs.&lt;/p&gt;

&lt;h4&gt;
  
  
  4. &lt;strong&gt;How can you use Checkout Extensibility with Analyzify?&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;Shopify's Web Pixels feature offers a coding-free alternative for embedding tracking scripts, which is fully supported by Analyzify. This integration ensures accurate tracking across checkout steps, thank you pages, and order status, leveraging Web Pixels to facilitate comprehensive analytics.&lt;/p&gt;

&lt;h4&gt;
  
  
  5. &lt;strong&gt;Can I use GTM with Checkout Extensibility?&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;Analyzify enhances Shopify Checkout Extensibility by enabling the use of Google Tag Manager (GTM) functionalities, ensuring a robust and flexible tracking setup across the checkout process.&lt;/p&gt;

&lt;h4&gt;
  
  
  6. &lt;strong&gt;Impact on checkout.liquid File Post-Activation&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;Upon activating Shopify Checkout Extensibility, the traditional checkout.liquid file becomes redundant. However, Analyzify provides alternative tracking solutions that compensate for this change, ensuring continuous and precise analytics without relying on checkout.liquid.&lt;/p&gt;

&lt;h4&gt;
  
  
  7. &lt;strong&gt;What are the limitations and advantages of Web Pixels?&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;&lt;strong&gt;Advantages:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Universal Access:&lt;/strong&gt; Web Pixels is accessible across all Shopify plans, removing the exclusivity of checkout data collection to Shopify Plus users.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Isolation from Theme Changes:&lt;/strong&gt; Tracking remains unaffected by alterations in the theme, offering stability in analytics.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  8. &lt;strong&gt;How can I set up Google Tag Manager on Shopify's Checkout Extensibility?&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;As explained above, you can use an app like &lt;a href="https://apps.shopify.com/analyzify" rel="noopener noreferrer"&gt;Analyzify&lt;/a&gt; or use Shopify's guided tutorials. Please note that there are many limitations with the Do-It-Yourself option as it the Shopify Customer Events section lives on a sandbox environment. You can also check &lt;a href="https://www.youtube.com/watch?v=m2lw2ET9Uf4&amp;amp;t=2s&amp;amp;ab_channel=Analyzify-PowerfulShopifyAnalytics" rel="noopener noreferrer"&gt;this video on YouTube&lt;/a&gt; to get a better idea of how the Shopify Customer Events section works. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Limitations:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Event Tracking Constraints:&lt;/strong&gt; The scope of events that can be tracked via Web Pixels is limited.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Restricted Data Transmission:&lt;/strong&gt; The granularity of information that can be sent with each event is limited, potentially impacting the depth of analytics.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In summary, Shopify Checkout Extensibility significantly advances e-commerce customization and analytics. By leveraging tools like Analyzify and the functionalities of Google Tag Manager, merchants can achieve a highly customized checkout experience that aligns with brand identity, enhances user engagement, and maintains rigorous analytics integrity, all while ensuring compliance with data privacy regulations.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Any questions? Hit me in the comments, and I'll do my best to respond. &lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>shopify</category>
      <category>ga4</category>
      <category>tracking</category>
      <category>ads</category>
    </item>
    <item>
      <title>How to set up Google Tag Manager on Shopify (+data layers)</title>
      <dc:creator>Erman Küplü</dc:creator>
      <pubDate>Thu, 17 Nov 2022 12:47:07 +0000</pubDate>
      <link>https://forem.com/ekuplu/how-to-set-up-google-tag-manager-on-shopify-data-layers-16j5</link>
      <guid>https://forem.com/ekuplu/how-to-set-up-google-tag-manager-on-shopify-data-layers-16j5</guid>
      <description>&lt;p&gt;This will be your go-to guide for understanding and setting up Google Tag Manager on on Shopify. We will be talking about Shopify but you can also apply these learnings to other platforms such as WordPress, Webflow, etc. You will just need to tweak some settings by yourself.&lt;/p&gt;

&lt;p&gt;My team and I have completed Google Tag Manager setups for over 2000 Shopify stores. We have created a couple of open-source solutions used by 5000+ merchants. All of it to prove that - we know the drill. You are in the right place.&lt;/p&gt;

&lt;p&gt;Google Tag Manager is a powerful tool and offers too much value - especially for e-commerce stores. I have created tons of content on this matter. You might be trying this first time (hey, new friend!), or you have used other tutorials of mine before, and you’re looking to upgrade your setup (welcome, again!).&lt;/p&gt;

&lt;p&gt;This complete guide on Shopify Google Tag Manager Integration has 3 main sections, 9 steps and 24 sub-steps. I know it sounds like a lot! But I promise you that it is not exhausting. Each section is designed to teach you something important; they are interconnected. It will be too easy to follow.&lt;/p&gt;

&lt;p&gt;Some are small things you will almost automatically do or have already done. So once again, 17 shouldn’t scare you. It will work like a charm; you’ll enjoy it.&lt;/p&gt;

&lt;p&gt;Here is how we will set up Google Tag Manager on Shopify:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Section 1: Setting up GTM on Shopify&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Step 1: Add the GTM script to the Shopify theme files.
&lt;/li&gt;
&lt;li&gt;Step 1.1: Copy GTM Script&lt;/li&gt;
&lt;li&gt;Step 1.2: Shopify Theme &amp;gt; Edit Code &lt;/li&gt;
&lt;li&gt;Step 1.3: Paste the script in theme.liquid&lt;/li&gt;
&lt;li&gt;Step 2: Add the GTM script to thank you page &amp;gt; “Additional Scripts” &lt;/li&gt;
&lt;li&gt;Step 3: Create a GA4 tag on GTM and validate the GTM setup &lt;/li&gt;
&lt;li&gt;Step 3.1 Create a GA4 Global tag on GTM&lt;/li&gt;
&lt;li&gt;Step 3.2 Verify with GTM’s Preview Mode&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Section 2: Setting up data layers on Shopify&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Step 4: Add product view data layer into the Shopify theme &lt;/li&gt;
&lt;li&gt;Step 4.1: Create a new snippet &lt;/li&gt;
&lt;li&gt;Step 4.2: Paste the Product View Data layer into the snippet&lt;/li&gt;
&lt;li&gt;Step 4.3: Include the snippet&lt;/li&gt;
&lt;li&gt;Step 5: Add purchase data layer on Shopify&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Section 3: Set up Google Tag Manager Tags &amp;amp; Triggers &amp;amp; Variables&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Step 6: Set up e-commerce variables &lt;/li&gt;
&lt;li&gt;Step 6.1: Add new variable &lt;/li&gt;
&lt;li&gt;Step 6.2: Name and choose the Data layer variable&lt;/li&gt;
&lt;li&gt;Step 6.3: Add the DLV name &amp;amp; parameters&lt;/li&gt;
&lt;li&gt;Step 6.4: Create all the variables&lt;/li&gt;
&lt;li&gt;Step 7: Create GTM triggers for Shopify&lt;/li&gt;
&lt;li&gt;Step 8: Create the GA4 - View Item e-commerce event&lt;/li&gt;
&lt;li&gt;Step 8.1: Create a GA4 Event&lt;/li&gt;
&lt;li&gt;Step 8.2: Add event parameters.&lt;/li&gt;
&lt;li&gt;Step 9: Validate the Shopify GTM setup using Google Tag Manager debug mode.&lt;/li&gt;
&lt;li&gt;Step 9.1: Test GA4 View Item - Debug Mode&lt;/li&gt;
&lt;li&gt;Step 9.2: Test GA4 View Item - Tag details&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let’s get started, shall we?!&lt;/p&gt;

&lt;h2&gt;
  
  
  Section 1: Setting up GTM on Shopify
&lt;/h2&gt;

&lt;p&gt;In this section, we will add the GTM container scripts into Shopify theme files and additional scripts to be triggered in the thank you pages. Once again, this will work for both Shopify Plus and Shopify non-Plus. (Yes, you can set up Google Tag Manager also on Shopify non-Plus plans.)&lt;/p&gt;

&lt;p&gt;Feel free to skip Step 1 and Step 2 if you are sure you set up GTM on your Shopify store and it is working well. I would strongly recommend taking the Ste3 action and validating the GTM working correctly on the store.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Add the GTM script to the Shopify theme files.
&lt;/h3&gt;

&lt;p&gt;It is quite classic. We will copy the GTM container’s script from your Google Tag Manager account and then paste it into theme.liquid file and checkout.liquid file. Checkout.liquid is only for Shopify Plus merchants.&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 1.1: Copy GTM Script
&lt;/h4&gt;

&lt;p&gt;Go to your Google Tag Manager account. You can easily create a new account or a new container within an account if you don’t have one. When you click the GTM ID (such as GTM-KL4TS23) on the right top of the menu section, it will show you the full code block.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx0uqvymy8vsseofdfrdr.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx0uqvymy8vsseofdfrdr.jpeg" alt="Copy GTM Script"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Just copy it. We can ignore the second code block. It doesn’t have much use in our case. If you are curious why we ignore it, ask the question in the comments and I will answer.&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 1.2: Shopify Theme &amp;gt; Edit Code
&lt;/h4&gt;

&lt;p&gt;We have to edit the theme files. You can use a duplicated theme or production theme. It is totally up to you.&lt;/p&gt;

&lt;p&gt;Shopify Admin &amp;gt; Sales Channels &amp;gt; Online Store &amp;gt; Themes &amp;gt; Choose theme &amp;gt; Edit Code&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpp1yh9xx2zdrlyjt4vca.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpp1yh9xx2zdrlyjt4vca.jpeg" alt="Edit Shopify theme files - theme liquid"&gt;&lt;/a&gt;  &lt;/p&gt;

&lt;h4&gt;
  
  
  Step 1.3: Paste the script in theme.liquid
&lt;/h4&gt;

&lt;p&gt;It is time to add this GTM script to Shopify’s theme liquid. This script will reflect in all pages except for the checkout steps. Shopify Plus merchants should also add the code into the checkout.liquid file.&lt;/p&gt;

&lt;p&gt;Just make sure to paste the code block above  in the file. This is the best place for a Google Tag Manager script.&lt;/p&gt;

&lt;p&gt;SAVE the code change. If you are using a duplicated theme, you will need to either PUBLISH or PREVIEW the theme while doing tests. We have had lots of merchants who complain that the solution is not working - yet they just test out the wrong theme.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4nxxrb3aivg9xaozxn49.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4nxxrb3aivg9xaozxn49.jpeg" alt="Install the GTM script in Shopify theme"&gt;&lt;/a&gt;  &lt;/p&gt;

&lt;p&gt;And once again, the Google Tag Manager setup on Shopify works for non-Shopify plus merchants as well. You are just missing out on the checkout events. The purchase will still be covered in the next step. The great news is that I will soon publish another tutorial where you can also track the checkout events using Shopify’s new features Shopify Customer Events and Shopify Pixels.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Add the GTM script to thank you page &amp;gt; “Additional Scripts”
&lt;/h3&gt;

&lt;p&gt;You must be familiar with this section as well. Shopify allows you to manage the scripts on your “Order status page (aka thank you)” page.&lt;/p&gt;

&lt;p&gt;Visit Shopify Admin &amp;gt; Settings &amp;gt; Checkout &amp;gt; Order status page &amp;gt; Additional Scripts&lt;/p&gt;

&lt;p&gt;Just paste the GTM code here as well. Ideally, it should be at the top. As you are here, you can also clean up this section if there are redundant scripts. Don’t delete anything you are not aware of.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F86dld7vncdeadzs1qc79.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F86dld7vncdeadzs1qc79.jpeg" alt="Add the GTM script to Shopify thank you page"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now it is time to test our GTM installation.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Create a GA4 tag on GTM and validate the GTM setup
&lt;/h3&gt;

&lt;p&gt;This step has two purposes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Creating a Google Analytics 4 configuration tag. This will track all the page views and also help us with the next events.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Testing out the GTM integration. Yes, even though you are sure your GTM is up and running on your store; we never move on without testing so that we know where the problem is.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Step 3.1 Create a GA4 Global tag on GTM
&lt;/h4&gt;

&lt;p&gt;Now we will create a Google Analytics 4 configuration tag (aka global tag).&lt;/p&gt;

&lt;p&gt;Google Tag Manager &amp;gt; Tags (Left menu) &amp;gt; Add New &amp;gt; Name it as: “GA4 - Global”.&lt;/p&gt;

&lt;p&gt;Add your GA4 measurement ID. It should look like this: G-Y5VMTEWR8V. You can create a new Google Analytics property if you don’t have one.&lt;/p&gt;

&lt;p&gt;Then choose ALL PAGES from the Triggering section and then SAVE the Tag.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnsx1hvw12wpctrcxwm5l.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnsx1hvw12wpctrcxwm5l.gif" alt="Create a GA4 Global tag on GTM"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 3.2 Verify with GTM’s Preview Mode
&lt;/h4&gt;

&lt;p&gt;Go back to GTM and click PREVIEW on the right top corner. Type your store URL and click CONNECT. It should show the GA4 Global tag on the debugging screen.&lt;/p&gt;

&lt;p&gt;If you have installed the GTM container script into a duplicated Shopify theme; then you will need to use a theme preview link here.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsvjfaqhisyalvel5g8gu.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsvjfaqhisyalvel5g8gu.gif" alt="Verify Shopify Google Tag Manager installation"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We can safely move to the next phases if we have seen Google Tag Manager and Google Analytics 4’s Global tag worked on your Shopify store.&lt;/p&gt;

&lt;h2&gt;
  
  
  Section 2: Setting up data layers on Shopify
&lt;/h2&gt;

&lt;p&gt;We need data layers to properly process and send the data through Google Tag Manager. We will set up data layers for the product page and purchase on your store.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Oh, gosh - I love data layers. &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Data layers carry out the data in a standardized, structured format so that GTM can read and process it correctly.&lt;/p&gt;

&lt;p&gt;As an example, in the single product page; we need to send:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Product ID
&lt;/li&gt;
&lt;li&gt;Product Name
&lt;/li&gt;
&lt;li&gt;Product Price
&lt;/li&gt;
&lt;li&gt;Currency&lt;/li&gt;
&lt;li&gt;Product Category, etc&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So, all these will be formatted within the Product View data layer. The same will apply the Shopify’s Order Status page. We will add the purchase data layers.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;I will, of course, share the code blocks, as well as most of you, are here for that purpose, huh?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Step 4: Add product view data layer into the Shopify theme
&lt;/h3&gt;

&lt;p&gt;We will now add a new snippet on your theme files and put the data layers there.&lt;/p&gt;

&lt;p&gt;It is possible to add the data layers directly on your theme.liquid file but I choose more organized method. We will create a new snippet for this.&lt;/p&gt;

&lt;p&gt;As you will see in the code blocks, we will have the following events on the Shopify Product data layers:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Product ID
&lt;/li&gt;
&lt;li&gt;Product Name
&lt;/li&gt;
&lt;li&gt;Product Price
&lt;/li&gt;
&lt;li&gt;Product Brand
&lt;/li&gt;
&lt;li&gt;Product Collection
&lt;/li&gt;
&lt;li&gt;Product Type
&lt;/li&gt;
&lt;li&gt;Product SKU
&lt;/li&gt;
&lt;li&gt;Variant ID
&lt;/li&gt;
&lt;li&gt;Variant Title
&lt;/li&gt;
&lt;li&gt;Currency&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;All of these Shopify product data layers will be available on Google Tag Manager after we set this up correctly.&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 4.1: Create a new snippet
&lt;/h4&gt;

&lt;p&gt;Just like in Step 1.2, go to your Shopify Theme’s “Edit Code” page. This time, we will do something differently. Scroll down and find the section called “Snippets”.&lt;/p&gt;

&lt;p&gt;Click “Add New Snippet” and then name it as: “analyzify-product-datalayer”. You can name it however you like but it is better to name it this way to be able to track the changes later on.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5wpz9d6l6bz07gxtq8p5.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5wpz9d6l6bz07gxtq8p5.jpeg" alt="Create a data layer snippet in Shopify theme"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;h4&gt;
  
  
  Step 4.2: Paste the Product View Data layer into the snippet
&lt;/h4&gt;

&lt;p&gt;You got the point! We will use Analyzify’s open-source Product data layer script. Just copy the code below, paste it into the new snippet, and then SAVE it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnw64ynoevc3rxb2q8ckw.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnw64ynoevc3rxb2q8ckw.jpeg" alt="Analyzify Product View Data layer into Shopify snippet"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

{% comment %} Product view data layer v2.1 - part of "Shopify GA4 Kit" by Analyzify
Visit https://analyzify.com/shopify-google-analytics/ga4 for complete tutorial 
{% endcomment %}

{% assign template_name = template.name %}

&amp;lt;script type="text/javascript"&amp;gt;
window.dataLayer = window.dataLayer || [];

window.appStart = function(){
  window.productPageHandle = function(){

    var productName = "{{ product.title | remove: "'" | remove: '"' }}";
    var productId = "{{ product.id }}";
    var productPrice = "{{ product.price | money_without_currency }}";
    var productBrand = "{{ product.vendor | remove: "'" | remove: '"' }}";
    var productCollection = "{{ product.collections.first.title | remove: "'" | remove: '"' }}";
    var productType = "{{ product.type | remove: "'" | remove: '"' }}";
    var productSku = "{{ product.selected_or_first_available_variant.sku | remove: "'" | remove: '"' }}";
    var productVariantId = "{{ product.selected_variant.id | default: product.variants[0].id }}";
    var productVariantTitle = "{{ product.selected_variant.title | default: product.variants[0].title }}";

    window.dataLayer.push({
      event: "analyzify_productDetail",
      productId: productId,
      productName: productName,
      productPrice: productPrice,
      productBrand: productBrand,
      productCategory: productCollection,
      productType: productType,
      productSku: productSku,
      productVariantId: productVariantId,
      productVariantTitle: productVariantTitle,
      currency: "{{ shop.currency }}",
    });
  };


  {% case template_name %}
  {% when "product" %}
    productPageHandle();
  {% endcase %}

}
appStart();
&amp;lt;/script&amp;gt;


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Make sure to SAVE the snippet.&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 4.3: Include the snippet
&lt;/h4&gt;

&lt;p&gt;Now we will include (render) the snippet using the theme.liquid file. Again open the theme edit section.&lt;/p&gt;

&lt;p&gt;Find theme.liquid file under the “Layout” section on the left bar. Open the theme.liquid file and search "/head" in the file. Paste the following code just above it:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

{% render 'analyzify-product-datalayer.liquid' %}



&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;At final, it should look like in the screenshot. We are ready to move on setting up the purchase data layer.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftjnahm3u3osv6lw4seqg.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftjnahm3u3osv6lw4seqg.jpeg" alt="Render product data layer snippet"&gt;&lt;/a&gt;  &lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5: Add purchase data layer on Shopify
&lt;/h3&gt;

&lt;p&gt;We will now add the Purchase data layer into the Order Processing &amp;gt; Additional scripts - just like we have done in Step 2.&lt;/p&gt;

&lt;p&gt;Go to your Shopify Admin &amp;gt; Settings (Left bottom) &amp;gt; Checkout and then Navigate to Order Processing &amp;gt; Additional Scripts.&lt;/p&gt;

&lt;p&gt;Copy the code below and then paste it right under the Google Tag Manager script that we have recently added.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

{% comment %} Purchase data layer v2.1 - part of "Shopify GA4 Kit" by Analyzify
Visit https://analyzify.com/shopify-google-analytics/ga4 for complete tutorial 
{% endcomment %}

{% assign template_name = template.name %}

&amp;lt;script type="text/javascript"&amp;gt;
window.dataLayer = window.dataLayer || [];

{% if first_time_accessed and post_purchase_page_accessed != true %}

  var shippingPrice = "{{shipping_price | money_without_currency }}".replace(",", ".");
  var totalPrice = "{{checkout.total_price | money_without_currency }}".replace(",", ".");
  var taxPrice = "{{tax_price | money_without_currency }}".replace(",", ".");
  var orderItemsName = [];
  var orderItemsId = [];
  var orderItemsCategory = [];
  var orderItemsBrand = [];
  var orderItemsType = [];
  var orderItemsPrice = [];
  var orderItemsSku = [];
  var orderItemsvariantId = [];
  var orderItemsQuantity = [];
  var orderItemsvariantTitle = [];
  var totalQuantity = 0;

  {% for line_item in checkout.line_items %}  
      orderItemsName.push("{{ line_item.product.title | remove: "'" | remove: '"'}}");
      orderItemsId.push("{{ line_item.product_id }}");
      orderItemsPrice.push("{{ line_item.price | times: 0.01 }}");
      orderItemsSku.push("{{ line_item.sku | remove: "'" | remove: '"' }}");
      orderItemsQuantity.push("{{ line_item.quantity }}");
      orderItemsvariantId.push("{{ line_item.variant_id }}");
      orderItemsvariantTitle.push("{{ line_item.variant.title }}");
      orderItemsCategory.push("{{ line_item.product.collections.last.title | remove: "'" | remove: '"' }}");
      orderItemsBrand.push("{{ line_item.vendor | remove: "'" | remove: '"' }}");
      orderItemsType.push("{{ line_item.product.type | remove: "'" | remove: '"' }}");
      totalQuantity += {{ line_item.quantity }};
  {% endfor %}

  window.dataLayer.push({  
      page_type: "purchase",
      event: "analyzify_purchase",
      currency: "{{ shop.currency }}",
      totalValue: totalPrice,
      totalValueStatic: totalPrice,
      currencyRate: window.Shopify.currency.rate,
      shipping: shippingPrice,
      tax: taxPrice,
      payment_type: "{{order.transactions[0].gateway}}",
      {% if order.name %}
      transaction_id: "{{order.name | remove: "'" | remove: '"'}}",
      {% else %}
      transaction_id: "{{checkout.id | remove: "'" | remove: '"'}}",
      {% endif %}
      productName: orderItemsName,
      productId: orderItemsId,
      productBrand: orderItemsBrand,
      productCategory: orderItemsCategory,
      productVariantId: orderItemsvariantId,
      productVariantTitle: orderItemsvariantTitle,
      productSku: orderItemsSku,
      productType: orderItemsSku,
      productPrice: orderItemsPrice,
      productQuantity: orderItemsQuantity,
  });

{% endif %}

}
appStart();
&amp;lt;/script&amp;gt;


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Now our data layers are ready and already should be sending the data pieces and events. The fun part is about to begin!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiqerxz9njbrhsymddcby.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiqerxz9njbrhsymddcby.jpeg" alt="Shopify purchase data layer"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Section 3: Set up Google Tag Manager Tags &amp;amp; Triggers &amp;amp; Variables
&lt;/h2&gt;

&lt;p&gt;Google Tag Manager is my favorite tool and I am happy to show you around. We will create Tags, Triggers, and Variables. In this section, we will make the variables and events ready on your GTM account.&lt;/p&gt;

&lt;p&gt;We will set up GA4 E-commerce events through GTM for your Shopify store. You can use this knowledge and set up other tags as well.&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 6: Set up e-commerce variables
&lt;/h4&gt;

&lt;p&gt;Do you remember the data layers we added above? Now we will take their variables one by one and then define them into GTM. In this way, your Shopify store data will flow into GTM.&lt;/p&gt;

&lt;p&gt;There are too many variables to set. I will do this for one of them, and you will repeat the process for all others.&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 6.1: Add new variable
&lt;/h4&gt;

&lt;p&gt;Visit Google Tag Manager, Click VARIABLES from the left menu and then ADD NEW.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa38hnwmq213bwdco7ec2.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa38hnwmq213bwdco7ec2.jpeg" alt="Shopify Google Tag Manager - Add new variable"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 6.2: Name and choose the Data layer variable
&lt;/h4&gt;

&lt;p&gt;The naming convention is quite important here as we will have too many data layer variables. Name the first variable as: dlv - productId&lt;/p&gt;

&lt;p&gt;You can actually choose the name you like - but I strongly recommend following this practice:  &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

“dlv - variable-name”



&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnlkjg95hhta1onit4xl7.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnlkjg95hhta1onit4xl7.jpeg" alt="Shopify Google Tag Manager - create data layer variable"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 6.3: Add the DLV name &amp;amp; parameters
&lt;/h4&gt;

&lt;p&gt;So in this case, the variable name will be: dlv - productId, and we will add productId in the Data Layer Variable Name section.&lt;/p&gt;

&lt;p&gt;This section is case-sensitive, so make sure to add it totally matching your data layer variables from the code blocks. You can refer to the image below to make sure.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdg5eego9mhnjgy6ht3oz.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdg5eego9mhnjgy6ht3oz.jpeg" alt="Shopify Google Tag Manager - Add the DLV name &amp;amp; parameters"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;SAVE this one and then move on to create all the rest.&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 6.4: Create all the variables
&lt;/h4&gt;

&lt;p&gt;Now it is time to create all the variables. You can check your data layer codes to make sure about the variable names. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fftii3tl5ekltx7swshaj.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fftii3tl5ekltx7swshaj.jpeg" alt="Shopify GTM all data layer variables"&gt;&lt;/a&gt;&lt;br&gt;
These are the ones that we should be creating:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  totalValue
&lt;/li&gt;
&lt;li&gt;  totalValueStatic
&lt;/li&gt;
&lt;li&gt;  currencyRate
&lt;/li&gt;
&lt;li&gt;  shipping
&lt;/li&gt;
&lt;li&gt;  tax
&lt;/li&gt;
&lt;li&gt;  payment_type
&lt;/li&gt;
&lt;li&gt;  transaction_id
&lt;/li&gt;
&lt;li&gt;  productName
&lt;/li&gt;
&lt;li&gt;  productId
&lt;/li&gt;
&lt;li&gt;  productBrand
&lt;/li&gt;
&lt;li&gt;  productCategory
&lt;/li&gt;
&lt;li&gt;  productVariantId
&lt;/li&gt;
&lt;li&gt;  productVariantTitle
&lt;/li&gt;
&lt;li&gt;  productSku
&lt;/li&gt;
&lt;li&gt;  productType
&lt;/li&gt;
&lt;li&gt;  productPrice&lt;/li&gt;
&lt;li&gt;  productQuantity&lt;/li&gt;
&lt;li&gt;  productVariantId&lt;/li&gt;
&lt;li&gt;  productVariantTitle&lt;/li&gt;
&lt;li&gt;  currency&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The bad news is that you have to create all of them one by one. I could provide you with a pre-built file. I have only created the ones that I will use in the next steps. &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Feel free to create the ones that you want to use as well. But I really want you to practice and learn, sorry about it :)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw4zdqvy1dt44e6u129s0.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw4zdqvy1dt44e6u129s0.jpeg" alt="GTM data layer variable example: Shopify currency"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is how I do it:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1wpv606bshwskrotwhhy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1wpv606bshwskrotwhhy.gif" alt="Create GTM variables"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And the final result should look like this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fip65m0geiigkakihshfn.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fip65m0geiigkakihshfn.jpeg" alt="Shopify GTM enhanced e-commerce variables"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 7: Create GTM triggers for Shopify
&lt;/h3&gt;

&lt;p&gt;We will create the following custom events as triggers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Product View&lt;/li&gt;
&lt;li&gt;Purchase&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The triggers will get the data from the custom data layer events that we have recently added on Shopify themes &amp;amp; order processing scripts.&lt;/p&gt;

&lt;p&gt;The event section, right under dataLayer.push on our code block refers to the custom event I mention above.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

window.dataLayer.push({
page_type: "purchase",
event: "analyzify_purchase"


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;So our triggers will be custom events named as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Analyzify Shopify Purchase: &lt;strong&gt;analyzify_purchase&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Analyzify Shopify Product View: &lt;strong&gt;analyzify_productDetail&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here is how you should create the &lt;strong&gt;Purchase&lt;/strong&gt; trigger. &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frxp6sdih1pmzvulbn4ps.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frxp6sdih1pmzvulbn4ps.jpeg" alt="GTM Custom Event Trigger 1"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And here is how it should look like in the final: &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjyz4646lyqiv6oaettwn.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjyz4646lyqiv6oaettwn.jpeg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 8: Create the GA4 - View Item e-commerce event
&lt;/h3&gt;

&lt;p&gt;It is time to use the variables and triggers in action. We will create a Google Analytics 4 - View Item event for Shopify.&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 8.1: Create a GA4 Event
&lt;/h4&gt;

&lt;p&gt;Click Tags &amp;gt; Create a New Tag (Just like in Step 3). Name the tag as GA4 - View Item. This time, choose GA4 Event from the Tag types.&lt;/p&gt;

&lt;p&gt;The event name should match GA4’s guideline, so it should be view_item&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6jg4xkwxn02j6b5l7kq4.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6jg4xkwxn02j6b5l7kq4.jpeg" alt="Create a GA4 Event"&gt;&lt;/a&gt;  &lt;/p&gt;

&lt;h4&gt;
  
  
  Step 8.2: Add event parameters
&lt;/h4&gt;

&lt;p&gt;Now we have to attach event parameters. The parameter name should match GA4’s documentation again so it will be item_name instead of product_name.&lt;/p&gt;

&lt;p&gt;And the second field is where we will choose the VARIABLES that we have recently added. The brackets refer to variables.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbrn4co19o5kqhmt14hml.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbrn4co19o5kqhmt14hml.jpeg" alt="GA4 GTM Product View Event Variables"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is the full list I have used in the image.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

'item_name': {{dlv - productName}},
'item_id': {{dlv - productId}},
'item_brand': {{dlv - productBrand}},
'item_category': {{dlv - productCategory}},
'item_variant': {{dlv - productVariantTitle}},
'price': {{dlv - productPrice}},
'quantity': {{dlv - productQuantity}},


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;We have now completed the Product View event. You can do the same with “Purchase” event if you are seeking a GA4 E-commerce setup. As the topic here is &lt;strong&gt;installing GTM on Shopify&lt;/strong&gt;; I will not lose more time with GA4.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 9: Validate the Shopify GTM setup using Google Tag Manager debug mode.
&lt;/h3&gt;

&lt;p&gt;Now we will use Google Tag Manager’s debug mode - just like we have done in Step 3.2. We will try the product view event.&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 9.1: Test GA4 View Item - Debug Mode
&lt;/h4&gt;

&lt;p&gt;Follow the steps same as Step 3.2 and this time type a product URL instead of the homepage. Once again, make sure to use a theme preview link if you are not using your production theme.&lt;/p&gt;

&lt;p&gt;The GTM Debug mode should show the events on the left, and the tags on the right. If you are seeing analyzify_product detail and GA4 View Item tag; it is correctly done and time to celebrate.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl9d1jg6pbxns0edfwms1.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl9d1jg6pbxns0edfwms1.jpeg" alt="Shopify GTM setup validation test 1"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 9.1: Test GA4 View Item - Tag details
&lt;/h4&gt;

&lt;p&gt;Let’s deep dive here for those who want to understand and debug more. Click the event name on the left and then the tag name on the right. You will not see the details if you don’t click the event name first.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe5ld9fgm3sqd0ltalpcq.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe5ld9fgm3sqd0ltalpcq.jpeg" alt="Test GA4 View Item - Tag details"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You should be seeing all the parameters that are sent along with this event.&lt;/p&gt;

&lt;p&gt;It looks like we are all set. If something went wrong, make sure to double-check your data layers and GTM container. You must have done something wrong while connecting your Shopify store with data layers or the GTM. &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This is a bulletproof tutorial. Feel free to challenge me in the comments - and I’m happy to answer and make edits if needed.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  FAQ on Shopify &amp;amp; Google Tag Manager Integration
&lt;/h2&gt;

&lt;p&gt;Well, you can imagine we receive tens of questions every day on this topic. I will try to cover the commonly asked questions and answers here. Feel free to ask if you have an additional question on Shopify &amp;amp; GTM topics.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I use GTM on Shopify without the Shopify Plus plan?
&lt;/h3&gt;

&lt;p&gt;Yes, you can definitely set up GTM on Shopify with a Shopify Basic or Advanced plan as well. Shopify Plus offers you additional checkout.liquid file - where you can also add the Google Tag Manager snippet on your Shopify Checkout steps. However, checkout.liquid is also now going away with Shopify’s recently launched Shopify Checkout Extensions.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I install Google Tag Manager on Shopify Checkout?
&lt;/h3&gt;

&lt;p&gt;Yes but it requires a Shopify Plus plan. While you can set up GTM on Shoify with all plans; editing the checkout process is only available for the Shopify Plus plan - using the checkout.liquid file.&lt;br&gt;
However, Shopify announced that it won’t be possible adding scripts including GTM with the latest Shopify Checkout Extensions updates.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need Shopify data layers for Google Tag Manager?
&lt;/h3&gt;

&lt;p&gt;You can install Google Tag Manager on Shopify without data layers as well but you can not use it much. You need data layers if you want to pass any specific data such as Product ID, name, price, Order ID, etc. The data layers will allow you to pass the parameters with specific tags. You can check the article above to find the full answer with examples.&lt;/p&gt;

&lt;h3&gt;
  
  
  How can I set up enhanced e-commerce on Shopify using Google Tag Manager?
&lt;/h3&gt;

&lt;p&gt;Enhanced E-commerce is a Universal Analytics feature. You don’t need to install Google Tag Manager on Shopify to use enhanced e-commerce. Shopify’s native Universal Analytics integration already covers it. You can use the tutorial above and Shopify GA4 Kit to set up Google Analytics 4 e-commerce events on Shopify.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is the difference between Google Tag Manager vs Google Analytics?
&lt;/h3&gt;

&lt;p&gt;Google Analytics is a tracking and reporting tool. You can see your visitor and user behavior data in Google Analytics. Google Tag Manager is a connector between your website and the tracking tools. GTM allows you to set up the tracking scripts easily on your website and pass the relevant data along with them.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need a Shopify app to set up Google Tag Manager?
&lt;/h3&gt;

&lt;p&gt;Technically no. You can install the GTM scripts on Shopify without using an app. This in-depth tutorial is all about setting up GTM without using an app. However, apps like Analyzify offers you more in-depth tracking. The Analyzify data layers cover many other parameters and it offers full e-commerce tracking. Shopify GTM Apps also offer many built-in integrations. So you don’t have to tweak the code and play around with GTM to set up the complete tracking.&lt;/p&gt;

&lt;p&gt;I hope it was all helpful! More questions? Send them along through the comments.&lt;/p&gt;

</description>
      <category>shopify</category>
      <category>webdev</category>
      <category>tutorial</category>
      <category>googletagmanager</category>
    </item>
    <item>
      <title>Introducing Shopify GA4 Kit - Setup GA4 on Shopify</title>
      <dc:creator>Erman Küplü</dc:creator>
      <pubDate>Mon, 04 Apr 2022 09:15:07 +0000</pubDate>
      <link>https://forem.com/analyzify/introducing-shopify-ga4-kit-setup-ga4-on-shopify-1l6a</link>
      <guid>https://forem.com/analyzify/introducing-shopify-ga4-kit-setup-ga4-on-shopify-1l6a</guid>
      <description>&lt;p&gt;We have prepared an open-source &amp;amp; completely free toolset for Shopify merchants to help them set up GA4 using data layers, Google Tag Manager, and GA4. &lt;/p&gt;

&lt;p&gt;This beginner-friendly toolset also provides a downloadable pre-built GTM container that includes the major Google Analytics 4 tags. &lt;/p&gt;

&lt;p&gt;Change the GA4 measurement ID and kick things off right away. &lt;/p&gt;

&lt;p&gt;Note: This is the updated and enhanced version of &lt;a href="https://dev.to/analyzify/how-to-setup-google-analytics-4-on-shopify-without-an-app-1e3n"&gt;our tutorial &amp;amp; code blocks from last year&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2023 August Update&lt;/strong&gt;&lt;br&gt;
Here are the latest sources about Shopify &amp;lt;&amp;gt; GA4 Integration: &lt;br&gt;
&lt;a href="https://www.youtube.com/watch?v=KvRHhOY1ffQ&amp;amp;ab_channel=Analyzify-PowerfulShopifyAnalytics" rel="noopener noreferrer"&gt;Set up Google Analytics 4 on Shopify with the Official Integration [2023] on Youtube&lt;br&gt;
&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.youtube.com/watch?v=0bt35Mfjalw&amp;amp;ab_channel=Analyzify-PowerfulShopifyAnalytics" rel="noopener noreferrer"&gt;Set up GA4 on Shopify in 5-mins using Analyzify [Complete Ecommerce Integration] on Youtube&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What will Shopify GA4 Kit do?
&lt;/h2&gt;

&lt;p&gt;Shopify GA4 will help you set up GA4 including all the e-commerce features you need for your store. &lt;/p&gt;

&lt;p&gt;You don’t need to use any app to secure all that: Just use the code blocks, tutorials, and step-by-step guides we provide and get:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Google Analytics 4 main reports,&lt;/li&gt;
&lt;li&gt;Product-level ecommerce reports,&lt;/li&gt;
&lt;li&gt;Transactions with the product-level data &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How does the Shopify GA4 Kit work?
&lt;/h2&gt;

&lt;p&gt;We have prepared a list of assets for you to set up GA4 on your Shopify store without any app or professional support. &lt;/p&gt;

&lt;p&gt;You will see many step-by-step tutorials and video guides to get everything done with ease.&lt;/p&gt;

&lt;p&gt;At this point, we should kindly remind you that this is a Do-It-Yourself process which means you will need to get involved with codes. &lt;/p&gt;

&lt;p&gt;That’s nothing to worry about, though. It’ll be all about copy-pasting, uploading the assets we provide, and doing the adjustments.&lt;/p&gt;

&lt;p&gt;Simply put, you will be:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Creating GTM &amp;amp; GA4 accounts if you don't have any,&lt;/li&gt;
&lt;li&gt;Setting up GTM,&lt;/li&gt;
&lt;li&gt;Adding data layers (product + purchase),&lt;/li&gt;
&lt;li&gt;Downloading the Shopify GA4 Kit's GTM container,&lt;/li&gt;
&lt;li&gt;Importing the GTM container into your GTM account,&lt;/li&gt;
&lt;li&gt;Changing the GA4 measurement ID on the GTM container,&lt;/li&gt;
&lt;li&gt;Activating e-commerce reports on GA4,&lt;/li&gt;
&lt;li&gt;Validating the whole setup.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The Shopify GA4 kit will provide you with a GTM &amp;amp; GA4 setup that is decked out with many important reports and capabilities.&lt;/p&gt;

&lt;h2&gt;
  
  
  Steps to set up GA4 on Shopify using Shopify GA4 Kit
&lt;/h2&gt;

&lt;p&gt;There are several potential methods to set up Google Analytics on Shopify. We prefer executing a setup through GTM because that will give you a great amount of flexibility allowing you to use the triggers and variables for other tags as well. &lt;/p&gt;

&lt;p&gt;Here are the steps to follow during the installation. You can also follow our related, in-depth tutorial on Youtube: link &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Add GTM on Shopify&lt;/strong&gt;&lt;br&gt;
Our setup works through Google Tag Manager. So, you need to set up GTM on your Shopify store first. You can see how &lt;a href="https://analyzify.com/google-tag-manager-shopify/setup" rel="noopener noreferrer"&gt;through a separate tutorial here&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Get Shopify Purchase data layer (inc. product-level data)&lt;/strong&gt;&lt;br&gt;
Copy the data layer code to paste it into the checkout scripts on the next page later on.&lt;/p&gt;

&lt;p&gt;Visit the following page and get the most up-to-date &lt;a href="https://analyzify.com/google-tag-manager-shopify/datalayer#shopify-purchase-datalayer" rel="noopener noreferrer"&gt;Shopify purchase data layer&lt;/a&gt;. Make sure to copy it properly and move to the next step.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: Add the data layer to the Shopify checkout page&lt;/strong&gt;&lt;br&gt;
Paste the code right below your GTM container on Shopify Admin &amp;gt; Checkout &amp;gt; Additional Scripts. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.analyzify.app%2Fimg%2FPaste-the-code-into-Shopify-Checkout.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.analyzify.app%2Fimg%2FPaste-the-code-into-Shopify-Checkout.jpg" title="Shopify Additional Scripts Section" alt="Add the data layer to the Shopify checkout page"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4: Add the product data layer to the Shopify product pages&lt;/strong&gt;&lt;br&gt;
It is a multi-layered step. You need to&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create a new, empty snippet on your theme&lt;/li&gt;
&lt;li&gt;Render that snippet in your theme liquid file&lt;/li&gt;
&lt;li&gt;Copy &amp;amp; paste the code block that you see below and SAVE.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Copy the the data layer from the following page: &lt;a href="https://analyzify.com/google-tag-manager-shopify/datalayer#product_detail_view_datalayer" rel="noopener noreferrer"&gt;Shopify product data layer&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The data layers are perfectly ready for the GTM container. You can check &lt;a href="https://analyzify.com/ga4-kit/shopify-ga4-kit-step4.mp4" rel="noopener noreferrer"&gt;this short video-tutorial&lt;/a&gt; if you need a hand here. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 5: Download Shopify GA4 Kit's GTM Container(Free)&lt;/strong&gt;&lt;br&gt;
Download our pre-built Google Tag Manager that includes the following tags: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;GA4.01 - All Pages: Google Analytics 4 global configuration tag. It also functions as the "Page View" tag.&lt;/li&gt;
&lt;li&gt;GA4.02 - Event - View Item: E-commerce event for product page views. It sends the product-level data into GA4 and allows product-level reports to function.&lt;/li&gt;
&lt;li&gt;GA4.03 - Event - Purchase: Core of all e-commerce reports. It sends order-level and product-level data into GA4 and helps with the attribution.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It also includes all related triggers and variables. &lt;/p&gt;

&lt;p&gt;Visit &lt;a href="https://analyzify.com/shopify-ga4-kit" rel="noopener noreferrer"&gt;the Shopify GA4 Kit page&lt;/a&gt; and download the most up-to-date container there. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 6: Import GTM Container&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now navigate to Google Tag Manager &amp;gt; Admin &amp;gt; Import and then import the container. You should choose the following options just like you see in the screenshot: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmckbd8mgi8we7uvfa31t.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmckbd8mgi8we7uvfa31t.jpg" alt="Import Shopify GA4 GTM Container"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 7: Add your GA4 measurement ID&lt;/strong&gt;&lt;br&gt;
Now get your GA4 measurement ID from your Google Analytics 4 &amp;gt; Admin &amp;gt; Data Streams and then update it in the GTM container. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Furnim4xqo54qlgfg07yo.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Furnim4xqo54qlgfg07yo.jpg" alt="Update Shopify GA4 measurement ID"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Note: You can see the complete Youtube video tutorial starting from for the following steps &lt;a href="https://youtu.be/hag6ucGxj5E?t=1036" rel="noopener noreferrer"&gt;17:15 - How to Set up Google Analytics 4 on Shopify&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 8: Pause other GA4 tags on GTM&lt;/strong&gt;&lt;br&gt;
If you tried to do a GA4 setup earlier, you should pause the previous GA4 tags that you added earlier so as not to cause any double counting. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 9: Validate your GA4 setup using GTM's preview mode&lt;/strong&gt;&lt;br&gt;
A double-check is always a great idea in the world of data analytics. Follow the video below and double-check your setup using both GTM’s preview mode and GA4’s Debug View. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 10: Complete your tests and publish&lt;/strong&gt;&lt;br&gt;
If you pass all the tests, you are ready to publish the GTM container and make the setup live. You can run a test purchase just like we have done on the following video. &lt;/p&gt;

&lt;p&gt;I hope all went well for you and you could set up Google Analytics 4 on your Shopify store. &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This post is created for Dev.to community as a shorter and more simplified version of our complete tutorial. Sources: &lt;a href="https://analyzify.com/shopify-google-analytics/ga4" rel="noopener noreferrer"&gt;GA4 on Shopify&lt;/a&gt; - &lt;a href="https://www.youtube.com/watch?v=hag6ucGxj5E" rel="noopener noreferrer"&gt;Complete Youtube Video Tutorial&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We have also uploaded the tutorial to Vimeo Pro for the ones who want to have an Youtube-free experience: &lt;a href="https://vimeo.com/695986583" rel="noopener noreferrer"&gt;Watch on Vimeo: Shopify GA4 Kit Tutorial&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>tutorial</category>
      <category>shopify</category>
      <category>ga4</category>
      <category>analytics</category>
    </item>
    <item>
      <title>Good-bye Universal Analytics 👋 Next-steps on Google Analytics</title>
      <dc:creator>Erman Küplü</dc:creator>
      <pubDate>Mon, 21 Mar 2022 14:28:51 +0000</pubDate>
      <link>https://forem.com/analyzify/good-bye-universal-analytics-next-steps-on-google-analytics-5f33</link>
      <guid>https://forem.com/analyzify/good-bye-universal-analytics-next-steps-on-google-analytics-5f33</guid>
      <description>&lt;p&gt;Not too many people knew the term Universal Analytics a year ago. It has always been known as Google Analytics among all of us, until last year when Google announced the new version: GA4. Universal Analytics (aka. UA) was now a thing of the past! &lt;/p&gt;

&lt;p&gt;Not long after, Google even made GA4 the default version - and you now had to make some tweaks to be able to create a Universal Analytics account properly. &lt;/p&gt;

&lt;p&gt;Just last week, &lt;strong&gt;Google announced that they will be retiring Universal Analytics by July 2023.&lt;/strong&gt; We all knew this day would come - but it surely arrived a little bit faster than we all thought. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzfkqdnf0riotmyr76363.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzfkqdnf0riotmyr76363.jpg" alt="Google UA announcement"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Many people, including professionals, aren’t into GA4 at all - and they keep saying “Where are the standard reports?!”. On the other hand, GA4 offers some exciting new features - and a completely different approach to data collecting. &lt;/p&gt;

&lt;p&gt;In this post, I will try to help you understand how GA4 works, how it differs from UA, and what you should do with your own (or your clients’) website and more. &lt;/p&gt;

&lt;p&gt;Type your &lt;em&gt;questions in the comments section&lt;/em&gt; and I'll either answer them or add them into the post as well! &lt;/p&gt;

&lt;h2&gt;
  
  
  The differences between GA4 vs. UA
&lt;/h2&gt;

&lt;p&gt;I don’t want this post to be too technical. I will quickly mention the core differences between UA and GA4, and provide you with some links, in case you want to do some more research on your own.&lt;/p&gt;

&lt;h3&gt;
  
  
  Hit-Based &amp;amp; Event-Based
&lt;/h3&gt;

&lt;p&gt;This is probably the main difference between GA4 and UA - and we can also blame this feature as the reason why your data hasn’t been carried over to GA4. Yes, you heard it right. The data on your UA property won’t be carried over.&lt;/p&gt;

&lt;p&gt;UA worked on a hit-based data collection method. There were hit types such as hits, events, social, transactions.&lt;/p&gt;

&lt;p&gt;On the other hand, &lt;strong&gt;GA4 works on a totally event-based logic&lt;/strong&gt;. A page-view is an event, a transaction is another event, and the same goes for scroll_depth, form_tracking, etc. &lt;/p&gt;

&lt;h3&gt;
  
  
  Automatically Collected Events
&lt;/h3&gt;

&lt;p&gt;Another exciting feature: Your Global Site Tag (gtag.js) can now detect and collect some events without having to set up additional tracking through codes or GTM. Some examples for this are: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Form submissions, &lt;/li&gt;
&lt;li&gt;Scroll trackings,&lt;/li&gt;
&lt;li&gt;Video interactions,&lt;/li&gt;
&lt;li&gt;File downloads, &lt;/li&gt;
&lt;li&gt;Outbound link clicks, 
and many others. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In UA, you cannot track these events by default, and you needed to set up additional custom events using custom Global Site Tag codes or through GTM. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Whereas with GA4, you can automatically collect some events by just enabling them from the settings&lt;/strong&gt;, without touching any code or meddling with GTM. &lt;/p&gt;

&lt;h3&gt;
  
  
  BigQuery Integration
&lt;/h3&gt;

&lt;p&gt;This may be not the most exciting feature for end-users, but it’s certainly a huge thing for developers and enterprises. GA4 comes with a native BigQuery integration, which means you can import the full data to BigQuery without any limitation. &lt;/p&gt;

&lt;p&gt;In UA, you need to have UA-360 to have this feature (which costs $150K/year). In GA4 however, there is not only BigQuery, but a few other UA-360 features that come by default and free as well.&lt;/p&gt;

&lt;h3&gt;
  
  
  AI &amp;amp; Machine Learning Powered
&lt;/h3&gt;

&lt;p&gt;It is always hard for small business owners to follow and understand their data properly within a sea of reports. &lt;/p&gt;

&lt;p&gt;Google Analytics 4 will help business owners to understand their data and give them actionable insights. The AI and ML-powered “Insights” section is visible almost on every page in GA4 and might get more and more useful when you collect more data. &lt;/p&gt;

&lt;h3&gt;
  
  
  Customization Capabilities
&lt;/h3&gt;

&lt;p&gt;UA was the standard for almost every use case. You could make custom reports and dashboards, but it wasn’t quite likely for an average user to use these features. &lt;/p&gt;

&lt;p&gt;GA4 focuses on customization a lot - and allows users to edit almost every piece, including the main menu elements and standard reports. Even the homepage gets more unique every time you view different reports. Here is a rough summary of customization features that GA4 has:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Edit homepage,&lt;/li&gt;
&lt;li&gt;Explore section,&lt;/li&gt;
&lt;li&gt;Edit left menu &amp;amp; navigation,&lt;/li&gt;
&lt;li&gt;Customize events, data, goals.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Many Other new &amp;amp; cool features
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Predictive - ML-powered Audiences &lt;/li&gt;
&lt;li&gt;Deeper audience integration with Google Ads&lt;/li&gt;
&lt;li&gt;Customer lifecycle-framed reporting&lt;/li&gt;
&lt;li&gt;Insights and predications powered by artificial intelligence&lt;/li&gt;
&lt;li&gt;Explorer - report builders to build all types of custom reports&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Action &amp;amp; Migration Plan from UA to GA4
&lt;/h2&gt;

&lt;p&gt;I know you are used to UA - but let’s admit it has run its course. We should start using GA4 immediately, collect data, enable all possible features, and take advantage. Here is the action plan that we suggest: &lt;/p&gt;

&lt;h3&gt;
  
  
  Parallel tracking (UA &amp;amp; GA4 together)
&lt;/h3&gt;

&lt;p&gt;You don’t need to (and shouldn’t, even) leave UA immediately. You should keep using them together until the moment that GA4 covers all of UA’s features, and you’ve gotten comfortable using it. &lt;br&gt;
So, start using GA4, and don’t touch your existing UA setup. &lt;/p&gt;

&lt;h3&gt;
  
  
  Create your GA4 property
&lt;/h3&gt;

&lt;p&gt;You don’t need to wait another day for this: Create your GA4 property right now. You can use the GA4 setup assistant so that your UA &amp;amp; GA4 properties will be connected with each other. &lt;br&gt;
Just another kind reminder: &lt;strong&gt;Your UA data won’t be carried over&lt;/strong&gt;, but only some simple settings.&lt;/p&gt;

&lt;h3&gt;
  
  
  Basic GA4 setup
&lt;/h3&gt;

&lt;p&gt;This is quite easy - we advise that you should just do it now and start collecting some basic data. Add the code for GA4 Global Site Tag directly on your website - to all pages. Alternatively, you can use Google Tag Manager and set up GA4 through GTM as well. &lt;br&gt;
The basic setup will only provide you the default tracking options: page view and a few other automatically collected data. However, the most important piece of your tracking is already there: visitors! &lt;/p&gt;

&lt;h3&gt;
  
  
  A few quick important settings
&lt;/h3&gt;

&lt;p&gt;Simple yet quick wins to improve your first data:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Activate Google Signals (&lt;a href="https://docs.analyzify.com/suggested-ga4-settings/#enable-google-signals" rel="noopener noreferrer"&gt;tutorial&lt;/a&gt;),&lt;/li&gt;
&lt;li&gt;Set event retention to 14-months(&lt;a href="https://docs.analyzify.com/suggested-ga4-settings/#set-data-retention-to-14-months" rel="noopener noreferrer"&gt;tutorial&lt;/a&gt;), &lt;/li&gt;
&lt;li&gt;Integrate with Google Ads, Search Console, Google Optimize and Merchant Center if applicable. For data sharing &amp;amp; collecting - earlier is always better. &lt;/li&gt;
&lt;li&gt;Mark automatically collected events.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Start learning &amp;amp; customizing GA4
&lt;/h3&gt;

&lt;p&gt;GA4 is a relatively new tool, and it keeps changing every day. I wouldn’t recommend heavily investing in GA4 from day one. Slowly moving your pieces and learning GA4 is a much sounder approach. In the meantime, the product keeps getting better and receives constant updates from the Google team. &lt;br&gt;
You can set a few custom events - that matters the most to you. Such as: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;E-commerce tracking for online stores,&lt;/li&gt;
&lt;li&gt;Form/conversion tracking for B2B lead focused websites,&lt;/li&gt;
&lt;li&gt;Newsletter sign-ups for blogs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Mark these custom events as conversions, and start tracking important KPIs on your GA4. &lt;/p&gt;

&lt;p&gt;Set up your favorite UA reports in GA4 and start using them on a regular basis. &lt;/p&gt;

&lt;p&gt;Here is how Google announced the change: &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fitak65ehhrcj09kez783.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fitak65ehhrcj09kez783.jpg" alt="Google Product Update on GA4"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Set Up GA4
&lt;/h2&gt;

&lt;p&gt;I can write a whole new article series on this topic if there is a demand, but right now this will just be a quick wrap-up. Let me know in the comments if you wish to have more in-depth tutorials on setting up GA4. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Method 1: Set up GA4 using Global Site Tag&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is the most common way of setting up Google Analytics. It was the same with Universal Analytics - just the code block is different this time. &lt;/p&gt;

&lt;p&gt;Go to Google Analytics 4 &amp;gt; “Admin” &amp;gt; “Data Streams”, and click your data stream. Find “Tag Installation”, and you can copy the global site tag code from there. &lt;/p&gt;

&lt;p&gt;You will need to paste this code to each page of your website. You can use the header.php code on WordPress, theme.liquid on Shopify, or custom header scripts on your own CMS solution. &lt;/p&gt;

&lt;p&gt;Make sure to validate your setup using the RealTime report in GA4. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Method 2: GA4 setup using Google Tag Manager&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I have a detailed tutorial on this topic: &lt;a href="https://analyzify.com/shopify-google-analytics/ga4#set_up_google_analytics" rel="noopener noreferrer"&gt;Tutorial: Setup GA4 on Shopify using GTM&lt;/a&gt;. The tutorial is for Shopify, but it will also be applicable to your case if you already have GTM installed on your website. &lt;/p&gt;

&lt;h2&gt;
  
  
  What will happen to Universal Analytics
&lt;/h2&gt;

&lt;p&gt;The UA will stop processing on July, 2023 but you will still have a change to access your existing data for another 6-months. You can learn more about this on &lt;a href="https://blog.google/products/marketingplatform/analytics/prepare-for-future-with-google-analytics-4/" rel="noopener noreferrer"&gt;Google's related announcement&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqm97hravmqll6jvutfw3.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqm97hravmqll6jvutfw3.jpg" alt="Universal Analytics"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Do you have any questions? Feel free to add to the comments and I'll try my best to answer!&lt;/p&gt;

&lt;p&gt;I'm also happy to share some additional resources on this topic: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://blog.google/products/marketingplatform/analytics/new-way-unify-app-and-website-measurement-google-analytics/" rel="noopener noreferrer"&gt;Google Analytics 4 official announcement&lt;/a&gt; &lt;/li&gt;
&lt;li&gt;&lt;a href="https://analyzify.com/hub/google-shutting-down-ua/" rel="noopener noreferrer"&gt;Google Shutting Down Universal Analytics. Ready for GA4?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://9to5google.com/2022/03/16/google-universal-analytics-2023/" rel="noopener noreferrer"&gt;Google Analytics ending support for Universal Analytics in 2023 after over a decade&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>googleanalytics</category>
      <category>ga4</category>
      <category>universalanalytics</category>
      <category>tracking</category>
    </item>
    <item>
      <title>Why should you build for the Shopify App Store? (+How to Start)</title>
      <dc:creator>Erman Küplü</dc:creator>
      <pubDate>Wed, 15 Dec 2021 12:37:25 +0000</pubDate>
      <link>https://forem.com/analyzify/why-should-you-build-for-the-shopify-app-store-how-to-start-1k18</link>
      <guid>https://forem.com/analyzify/why-should-you-build-for-the-shopify-app-store-how-to-start-1k18</guid>
      <description>&lt;p&gt;I realize more and more that the Shopify market is being overlooked by developer communities. Whereas we have been active on the platform for almost a year now and &lt;strong&gt;can’t be happier&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;In this post, I will try to give you some reasons why you should give Shopify's App Store a chance and shortly share our story and gainings. Feel free to ask your questions in the comments section, I will do my best to answer. &lt;/p&gt;

&lt;p&gt;Here is a quick summary of why this is a great market: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A rapidly growing market with over &lt;strong&gt;1.7 million stores&lt;/strong&gt;, &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;%0 commission&lt;/strong&gt; on Shopify App Store, &lt;/li&gt;
&lt;li&gt;84% Shopify Partners revenue growth (a 84% increase year-over-year)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;$12.5 billion&lt;/strong&gt; in revenue in 2020 and that is 4x the revenue of Shopify’s own platform. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let’s now get into the details. &lt;/p&gt;

&lt;h2&gt;
  
  
  Shopify Partners’ Ecosystem
&lt;/h2&gt;

&lt;p&gt;It is no secret that Shopify became Shopify because of its partner ecosystem. It is one of the first companies who has an understanding of the value of partners and built an amazing API infrastructure. &lt;/p&gt;

&lt;p&gt;There are countless needs in the e-commerce field for merchants. But Shopify didn’t opt for   building everything, and Instead, they focused on the core business and left the rest for the partners. &lt;/p&gt;

&lt;p&gt;As an example, it is hard to believe that Shopify’s core product is missing too many important features, one of them being “Subscriptions”. You can not add a subscription feature to your e-commerce store if you are not using one of the apps. &lt;/p&gt;

&lt;p&gt;Shopify partners’ ecosystem includes the following elements: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://apps.shopify.com/" rel="noopener noreferrer"&gt;Shopify Apps&lt;/a&gt; &lt;/li&gt;
&lt;li&gt;&lt;a href="https://themes.shopify.com/" rel="noopener noreferrer"&gt;Shopify Themes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://experts.shopify.com/" rel="noopener noreferrer"&gt;Shopify Experts&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://help.shopify.com/en/affiliates" rel="noopener noreferrer"&gt;Shopify Affiliates&lt;/a&gt; &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And there are many other professionals or agencies that are not officially included in the ecosystem but still work as a “Shopify Developer” or “Shopify Agency”. This helps Shopify grow even more - and make merchants happy because there are 1000’s of professionals or resources available when they need help. &lt;/p&gt;

&lt;h2&gt;
  
  
  Shopify App Store as a Market
&lt;/h2&gt;

&lt;p&gt;Merchants have a lot of needs - and they constantly search for apps to solve their problems and make their store better. &lt;/p&gt;

&lt;p&gt;At the moment, there are 13000+ apps in the app store. And a merchant uses 6 apps on average. It is not hard to build an app - or to be accepted to the app store. &lt;/p&gt;

&lt;p&gt;As far as I know, it is one of the rare “app stores” in the world that &lt;strong&gt;has 0% commission&lt;/strong&gt;. Shopify removed its 20% commission this summer. You don’t have to pay any commission if your annual revenue is under $1M. &lt;/p&gt;

&lt;p&gt;There are some giant players in the app store as well: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Klaviyo - recently valued at $4B+&lt;/li&gt;
&lt;li&gt;Privy - with over $2B+ valuation&lt;/li&gt;
&lt;li&gt;Bold Commerce - received $40M+ investment&lt;/li&gt;
&lt;li&gt;Oberlo - acquired by Shopify for $15m&lt;/li&gt;
&lt;li&gt;and many others. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Of course, the Shopify app store is not only for big players. There are hundreds of independent developers who build on Shopify and achieve double-digit MRRs in such a short amount of time such as &lt;a href="https://twitter.com/gilgNYC/status/1470378485667483650?s=20" rel="noopener noreferrer"&gt;Gil&lt;/a&gt; and &lt;a href="https://www.indiehackers.com/post/bootstrapped-a-shopify-app-to-500-paying-clients-with-an-mvp-ama-7dbaf8084e" rel="noopener noreferrer"&gt;myself&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Shopify Partners Ecosystem Stats  - 2024 Update
&lt;/h2&gt;

&lt;p&gt;A lot change since I wrote this post - so I wanted to provide a quick update with the latest information &amp;amp; stats. &lt;/p&gt;

&lt;p&gt;The ecosystem kept growing with these impressive numbers: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Shopify reported a total revenue of $7.1 billion for the year 2023, a 26% increase from the previous year.&lt;/li&gt;
&lt;li&gt;Shopify’s MRR saw a significant increase to $149 million from $110 million the previous year.&lt;/li&gt;
&lt;li&gt;Gross profit dollars grew 28% to  &lt;strong&gt;$3.5 billion&lt;/strong&gt;  in 2023, compared with $2.8 billion for 2022.&lt;/li&gt;
&lt;li&gt;Shopify serves over 700 million buyers in 2024, contributing $319 billion to global ecommerce.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Sources: &lt;a href="https://analyzify.com/hub/shopify-stats" rel="noopener noreferrer"&gt;Shopify Stats 2024&lt;/a&gt; - &lt;a href="https://analyzify.com/wp-content/uploads/2024/03/Shopify-Quarterly-Report-Q4-2023.pdf" rel="noopener noreferrer"&gt;Shopify Q4 - 2023 Report&lt;/a&gt; - &lt;a href="https://www.linkedin.com/pulse/shopify-stats-2024-key-insights-trends-analyzify-fgwnf/" rel="noopener noreferrer"&gt;Insights from Shopify Annual Reports&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Shopify grows, so do partners. There are many more app in the app store. Here is the quote from &lt;a href="https://analyzify.com/wp-content/uploads/2024/03/Shopify-Annual-Report-2023.pdf" rel="noopener noreferrer"&gt;Shopify's 2023 Annual Report.&lt;/a&gt; &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Our partner ecosystem helps drive the growth of our merchant base by&lt;br&gt;
extending both the reach and the functionality of the Shopify&lt;br&gt;
platform. As of December 31, 2023, more than &lt;strong&gt;13,000 apps&lt;/strong&gt; were&lt;br&gt;
available in the Shopify App Store. The partner ecosystem helps drive&lt;br&gt;
the growth of our merchant base, which in turn further accelerates&lt;br&gt;
growth of the ecosystem.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You heard right, there are now 13.000 app on &lt;a href="https://apps.shopify.com/" rel="noopener noreferrer"&gt;Shopify app store.&lt;/a&gt; In my humble opinion, growing competition shouldn't scare you if you are planning to develop apps. Because the opportunities grow with the same speed. &lt;/p&gt;

&lt;p&gt;Shopify keeps updating the platform in a lighthing speed. That means lots of new opportunities for partners and developers. As an example, Shopify released &lt;a href="https://www.shopify.com/partners/blog/checkout-extensibility" rel="noopener noreferrer"&gt;Checkout Extensibility feature&lt;/a&gt;. It means now the app developers can develop apps that can edit the checkout pages. &lt;/p&gt;

&lt;p&gt;Now there are 10s of &lt;a href="https://analyzify.com/shopify-apps/cat/checkout-customization" rel="noopener noreferrer"&gt;Checkout Customization Shopify Apps&lt;/a&gt; - with more to come. &lt;/p&gt;

&lt;p&gt;Most of these apps are new to the Shopify app store and they are still quite successful. &lt;/p&gt;

&lt;p&gt;These types of updates also offer a great opportunity for the existing apps. As explained &lt;a href="https://dev.to/analyzify/shopify-checkout-extensibility-ga4-google-ads-tracking-5812"&gt;on my latest dev.to post&lt;/a&gt;; we made lots of updates on our app, Analyzify - thanks to this wonderful opportunity. &lt;/p&gt;

&lt;p&gt;Want to get inspired by some successfull apps? Check out these resources: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;[ ] &lt;a href="https://www.shopify.com/blog/9-top-apps-in-the-shopify-app-store" rel="noopener noreferrer"&gt;Top 11 Shopify Apps - Shopify Blog&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;[ ] &lt;a href="https://analyzify.com/shopify-apps" rel="noopener noreferrer"&gt;Best Shopify Apps&lt;/a&gt;  - Analyzify
&lt;/li&gt;
&lt;li&gt;[ ] &lt;a href="https://apps.shopify.com/categories/marketing-and-conversion" rel="noopener noreferrer"&gt;Best Marketing Apps - Shopify App Store&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  How to build Shopify apps?
&lt;/h3&gt;

&lt;p&gt;I am not a developer myself. However, I have only heard great things about Shopify’s API and how easy it is to build things for Shopify. They don’t have tech-stack requirements. &lt;/p&gt;

&lt;p&gt;You can literally build with any programming language and host your app anywhere you like. You will have to use Shopify’s API to authenticate and charge users. Shopify apps can work in an EMBEDDED or INDEPENDENT format that opens in a new tab. &lt;/p&gt;

&lt;p&gt;Here’s a GIF for you to see how it looks 👇&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4ixn4oodxharjsxtlqzg.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4ixn4oodxharjsxtlqzg.gif" alt="Shopify App Store Embedded Apps"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As you see on the example, our app Analyzify works in the EMBEDDED format while the other app opens in the new tab. Most apps choose the “New Tab” solution. &lt;/p&gt;

&lt;p&gt;We firstly built Analyzify with Ruby &amp;amp; Rails - now we are switching to No-Code &amp;amp; Low-Code stack. I have seen many apps that use the Laravel framework. It is just about your t&lt;br&gt;
aste and capabilities. &lt;/p&gt;

&lt;h3&gt;
  
  
  Approval Process &amp;amp; Going to Production:
&lt;/h3&gt;

&lt;p&gt;Our app was approved within 5 days. We initially received a rejection because of the wrong use of the payment gateway. We have made the asked changes and it got immediately approved. &lt;/p&gt;

&lt;p&gt;I can only say good things about Shopify Partners’ support. They are very helpful and willing to answer the questions you should have. We have also got some support from Shopify developers’ Slack group. &lt;/p&gt;

&lt;h3&gt;
  
  
  Getting Sales on the Shopify App Store:
&lt;/h3&gt;

&lt;p&gt;The app developers keep giving the same suggestion: “Don’t rely on the app store for the sales”. That’s true: while there are too many searches happening on the app store,you should still look for alternative customer acquisition channels. &lt;/p&gt;

&lt;p&gt;At Analyzify, we have only gone for organic channels such as content marketing, video marketing, SEO, and Shopify community forums. Many app developers are using Shopify App Store Ads that work with the PPC model. &lt;/p&gt;

&lt;p&gt;Merchants don’t really rely on the App Store, but instead, they search Google. You will find a lot of listicles like “The Best Shopify Apps for X”. You will need to make yourself visible there - and probably make your own list just like we did: &lt;strong&gt;&lt;a href="https://analyzify.com/google-tag-manager-shopify/apps" rel="noopener noreferrer"&gt;Shopify Google Tag Manager Apps&lt;/a&gt;&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;I also see a lot of app developers who rely on merchants’ communities such as Facebook &amp;amp; Slack Groups, Twitter conversations, Discord Channels, and so on. &lt;/p&gt;

&lt;p&gt;Depending on your competition, you might have to be a bit more creative and hard-working here. All will work if you create a &lt;strong&gt;good product&lt;/strong&gt; and make your &lt;strong&gt;clients happy&lt;/strong&gt;. Simple as that. &lt;/p&gt;

&lt;p&gt;As in almost every app store, &lt;strong&gt;reviews are crucial&lt;/strong&gt; on the Shopify app store as well. The merchants don’t tend to give reviews for regular apps and experiences. You need to provide exceptional customer support to get proper reviews. The sales will go way higher once you pass 10+ positive reviews. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpxrus7x6dwbswco63haw.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpxrus7x6dwbswco63haw.jpeg" alt="Analyzify - Shopify Analytics App Reviews"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  What kind of apps should you build for Shopify?
&lt;/h3&gt;

&lt;p&gt;Well, that’s a great question that everybody asks. There are several methods to start with: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Serve to Shopify clients&lt;/strong&gt;. Provide services to them on your domain. That’ll help you understand and get to know them. They will immediately start telling you “Only if I had an app for X”, etc. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Hang out in the &lt;strong&gt;Shopify community forums&lt;/strong&gt; &amp;amp; Reddit &amp;amp; Twitter. Merchants keep asking “Is there an app for X?” or complaining about the apps that they are using. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Study the app store. &lt;strong&gt;Check the apps with negative reviews&lt;/strong&gt; and try to understand if you can make that negative experience better. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Keep reading below - I’ll mention some latest updates from the Shopify ecosystem. &lt;/p&gt;

&lt;p&gt;I would also recommend not to fear the competition. Of course, don’t go and create a “Page Builder App” where top developers have 2000+ reviews. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fupgz4f6qju9h2az2v9c6.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fupgz4f6qju9h2az2v9c6.jpg" alt="Shopify App Store - Page Builders"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Find a smaller competition and make things better. You will have the advantage of building from scratch and building the things the competitors are too busy to do. &lt;/p&gt;

&lt;h2&gt;
  
  
  Latest Updates &amp;amp; Opportunities on Shopify World
&lt;/h2&gt;

&lt;p&gt;Shopify keeps opening new developer spaces for partners. They announced a few major upcoming changes in the latest Shopify unite event. You might want to take a closer look at that  because the existing Shopify partners are always too busy with their roadmap and clients. &lt;/p&gt;

&lt;p&gt;*&lt;em&gt;&lt;a href="https://www.shopify.com/partners/blog/shopify-online-store" rel="noopener noreferrer"&gt;Online Store 2.0&lt;/a&gt;: *&lt;/em&gt;&lt;br&gt;
They released a large update on how to build themes. &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Online Store 2.0 opens up massive opportunities for developers building themes and apps for Shopify merchants. We’ve rebuilt the online store experience from the ground up, and are introducing a new set of developer tools to help you create amazing experiences for merchants and shoppers. &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://themes.shopify.com/" rel="noopener noreferrer"&gt;Theme Store is back again&lt;/a&gt;: &lt;br&gt;
Shopify had closed their theme stores but now it is reopened. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://hydrogen.shopify.dev/" rel="noopener noreferrer"&gt;Headless Shopify (React!)&lt;/a&gt;: &lt;br&gt;
Well, of course, they are going after the headless market. They announced Shopify Hydrogen. &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Hydrogen's React-based framework for building custom storefronts on Shopify gives you everything you need to start fast, build fast, and deliver the best-personalized shopping experiences.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;NFTs: &lt;br&gt;
Shopify is also looking to integrate with the NFT market. They recently released &lt;a href="https://help.shopify.com/en/manual/products/digital-service-product/nfts" rel="noopener noreferrer"&gt;a BETA program for this&lt;/a&gt; - only available in the US for now. &lt;/p&gt;

&lt;p&gt;Final Words: &lt;/p&gt;

&lt;p&gt;I strongly recommend you build something on Shopify depending on your skills. Create an MVP version, watch the market closely and enter when you feel ready. &lt;/p&gt;

&lt;p&gt;We have reached 500+ merchants and over $15K MRR only in 8 months. This is huge for us considering it was our first attempt on the Shopify app store. Now we started building more apps and new features for our existing app. &lt;/p&gt;

&lt;p&gt;I am more than willing to answer your questions. Leave it in the comments section! &lt;/p&gt;

</description>
      <category>shopify</category>
      <category>shopifyapp</category>
      <category>shopifypartners</category>
      <category>analzify</category>
    </item>
    <item>
      <title>dataLayers &amp; Google Tag Manager &amp; GA4 for Developers</title>
      <dc:creator>Erman Küplü</dc:creator>
      <pubDate>Tue, 30 Mar 2021 10:05:20 +0000</pubDate>
      <link>https://forem.com/analyzify/datalayers-google-tag-manager-ga4-for-developers-2b55</link>
      <guid>https://forem.com/analyzify/datalayers-google-tag-manager-ga4-for-developers-2b55</guid>
      <description>&lt;p&gt;I am always amazed by the full-stack developer's knowledge, experience, and learning habits. They use too many tools at the same time and know most of them easy as winking.&lt;/p&gt;

&lt;p&gt;One topic I am surprised though is &lt;strong&gt;not many developers know about dataLayers&lt;/strong&gt;, Google Tag Manager; and how they can be a great combination to track the key metrics, funnels and gather a valuable amount of information. &lt;/p&gt;

&lt;p&gt;We use dataLayers and Google Tag Manager mostly for analysis, reporting - but even for debugging purposes by tracking user behavior in-depth. &lt;/p&gt;

&lt;p&gt;In this post, I will give you a high-level overview of how dataLayers, GTM, and GA4 can be used to track important user metrics and even find the problems! &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Have any questions? Ask in the comments and I'll do my best to answer!&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h4&gt;
  
  
  Case Study on dataLayers &amp;amp; Google Tag Manager
&lt;/h4&gt;

&lt;p&gt;We have created a complex web application that would take users eight steps to complete their orders because the purchase process required a lot of customization. &lt;/p&gt;

&lt;h5&gt;
  
  
  The Problem
&lt;/h5&gt;

&lt;p&gt;We had a serious problem. The conversion rate was quite low. We were losing a lot of clients in the funnel. &lt;/p&gt;

&lt;h5&gt;
  
  
  What We Did
&lt;/h5&gt;

&lt;p&gt;The classic funnel tracking wasn't working for us because the URL wasn't changing at every step. Also, the classic funnel tracking doesn't allow you to pass extra data. So we needed to set up advanced dataLayers and send relevant data on each step. I will walk you through in this case study on: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How we used dataLayers to track important events and collect important information, &lt;/li&gt;
&lt;li&gt;How we processed the dataLayers through Google Tag Manager, &lt;/li&gt;
&lt;li&gt;How we passed the data into Google Analytics 4, &lt;/li&gt;
&lt;li&gt;How we make meaningful FUNNELS to clearly understand bottleneck and user behavior on Google Analytics 4. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let's get started! &lt;/p&gt;

&lt;h2&gt;
  
  
  What is a Data Layer?
&lt;/h2&gt;

&lt;p&gt;Data Layer is one of the most essential concepts in the data-analytics world. It is like the main storage for certain events and relevant data where you, developers, or 3rd-party-tools tools can temporarily store data (about user, page content, etc.). You can also watch this video - where I demonstrate &lt;a href="https://www.youtube.com/watch?v=XHDjkrXVgFU&amp;amp;t=3s&amp;amp;ab_channel=Analyzify-PowerfulShopifyAnalytics" rel="noopener noreferrer"&gt;what a dataLayer is and how it works&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;Let's immediately jump into the example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;script&amp;gt;
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
 'event': 'form_submitted',
 'formLocation': 'footer'
 });
&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This could be a simple example of a form-submission event. You could push this dataLayer code once the form is successfully submitted. Nothing will happen if you only do this. You will need to listen &amp;amp; process this data using Google Tag Manager. We will visit in the next steps. &lt;/p&gt;

&lt;p&gt;DataLayers can include more complex data as well. Check the example below for Google Analytics 4's addToCart event.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// Measure when a product is added to a shopping cart
dataLayer.push({
  'event': 'add_to_cart',
  'ecommerce': {
    'items': [{
      'item_name': 'Donut Friday Scented T-Shirt', // Name or ID is required.
      'item_id': '67890',
      'price': '33.75',
      'item_brand': 'Google',
      'item_category': 'Apparel',
      'item_category2': 'Mens',
      'item_category3': 'Shirts',
      'item_category4': 'Tshirts',
      'item_variant': 'Black',
      'item_list_name': 'Search Results',
      'item_list_id': 'SR123',
      'index': 1,
      'quantity': '2'
    }]
  }
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you want to see another example, you can check out &lt;a href="https://analyzify.com/shopify-datalayer/" rel="noopener noreferrer"&gt;Analyzify Shopify DataLayers&lt;/a&gt;. &lt;/p&gt;

&lt;h3&gt;
  
  
  How we used dataLayers to track complex funnels
&lt;/h3&gt;

&lt;p&gt;Our application has an 8-step complex, multilayered purchase process. That's why we added dataLayers on each step - and also included the relevant information. &lt;/p&gt;

&lt;p&gt;Always make sure to create/open a window dataLayer object before you push any data.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;script&amp;gt;
window.dataLayer = window.dataLayer || [];
&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;1st Step:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dataLayer.push({
            'event': 'signup-steps',
            'step': '1',
            'stepname' : 'GetStarted'
        });
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;2nd Step:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dataLayer.push({
            'event': 'signup-steps',
            'step': '2',
            'stepname' : 'Address',
                        'client-type':'Personal' //here we are passing the information that we received in the previous step
        });
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;7th Step:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dataLayer.push({
            'event': 'signup-steps',
            'step': '7',
            'stepname' : 'Payment',
                        'uid': '12345', //the system generated a user ID in the 3rd step and we are now pushing it at each step
                        'payment-type' :'iFrame' // the user chose the payment type in the previous step
        });
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;8th Step:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dataLayer.push({
            'event': 'signup-steps',
            'step': '8',
            'stepname' : 'iFrame',
                        'uid': '12345',
                        'iFrame-ID' :'iFrame-ID' // the user chose the payment type in the previous step
        });
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Final Step:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dataLayer.push({
            'event': 'signup-steps',
            'step': '9',
            'stepname' : 'ThankYou',
                        'uid': '12345',
                        'order-ID' :'order-ID'
        });
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We have now pushed all the relevant information and user actions to dataLayer. It is time to process them using Google Tag Manager. &lt;/p&gt;

&lt;h2&gt;
  
  
  Data Layer &amp;amp; Google Tag Manager
&lt;/h2&gt;

&lt;p&gt;You need to have a Google Tag Manager account and the GTM snippet should be inserted into your application to achieve this result. To understand the process better, you can check out this article where we &lt;a href="https://dev.to/analyzify/how-to-set-up-google-tag-manager-on-shopify-2021-tutorial-p19"&gt;set up GTM on Shopify&lt;/a&gt;. You will see there how to add and debug a GTM container. &lt;/p&gt;

&lt;h3&gt;
  
  
  Create a custom event trigger on GTM
&lt;/h3&gt;

&lt;p&gt;We first need to create an event trigger in GTM. We named our event as &lt;code&gt;'event': 'signup-steps'&lt;/code&gt; in the dataLayer. So follow along: &lt;/p&gt;

&lt;p&gt;Go to Google Tag Manager &amp;gt; Triggers (Left) &amp;gt; Create New &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fabkk23z94w2uprnmooiw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fabkk23z94w2uprnmooiw.png" alt="GTM create trigger"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Name the Trigger nicely, and choose CUSTOM EVENT from the Event Types: &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6vyqnyvfi3po7b71bngw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6vyqnyvfi3po7b71bngw.png" alt="GTM event types"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Use the exact same name as you pushed into the dataLayer &amp;gt; &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcx52nq79sk1das3x1knc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcx52nq79sk1das3x1knc.png" alt="GTM custom event"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we have the trigger. So the GTM will listen to this event carefully. &lt;/p&gt;

&lt;h3&gt;
  
  
  Create Custom Variables on GTM
&lt;/h3&gt;

&lt;p&gt;Now it is time to create variables for the data that we are passing with the dataLayers. In the example above, we have step, stepName, uid, order-ID, iFrame-ID. Each of them should be created a separate custom variable - if we want to pass this data into Google Analytics or another platform. &lt;/p&gt;

&lt;p&gt;Go to Google Tag Manager &amp;gt; Variables (Left) &amp;gt; New  (Scroll down to see User-Defined Variables)&lt;/p&gt;

&lt;p&gt;Similar to the above, we need to choose the Variable type. Choose DATA LAYER VARIABLE and name it correctly. We usually use a prefix dlv - so it looks like this &lt;strong&gt;dlv - user ID&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmtp5yif4ng5qzjtbduya.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmtp5yif4ng5qzjtbduya.png" alt="GTM dataLayer variable"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Make sure to use the exact same name as in the dataLayer: &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0cwhvdpusxrhe6jtmght.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0cwhvdpusxrhe6jtmght.png" alt="GTM create custom variable"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the example here, I have only created one variable. You should create all of them one-by-one. &lt;/p&gt;

&lt;h3&gt;
  
  
  Google Tag Manager Debug DataLayers &amp;amp; Variables
&lt;/h3&gt;

&lt;p&gt;Only a few times in my career, I could complete and publish the data setup without needing to change it. It never works in the first place :) That's why the debug process is crucial and needs to be done after every data implementation. &lt;/p&gt;

&lt;p&gt;Once you are sure the GTM installed on your website &amp;gt; &lt;/p&gt;

&lt;p&gt;Go to Google Tag Manager &amp;gt; Click Preview &amp;gt; Enter Your URL&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fota5k23ls5nttdl9qzxq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fota5k23ls5nttdl9qzxq.png" alt="GTM Debug Mode 1"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Enter your URL and click START. The window should open your website in the new tab and the "Debugger Connected" should be visible at the right-bottom corner. &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frxl9vii2v3rst3d0jek8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frxl9vii2v3rst3d0jek8.png" alt="GTM Debugger Connected"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once you see this, go back to the Tag Assistant tab on your browser and you should be seeing something like this &amp;gt; &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxj5hp0nqjpdsp3ypfr9t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxj5hp0nqjpdsp3ypfr9t.png" alt="GTM Tag Assistant"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now go back to your site and take a few of the actions that you are pushing the dataLayer for. Once you are back to the Tag Assistant, you should be seeing the event names and dataLayer details in the screen &amp;gt; &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftlbh0jgwfyuc4995eowu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftlbh0jgwfyuc4995eowu.png" alt="GTM - Event dataLayer debug"&gt;&lt;/a&gt;&lt;br&gt;
 These are dataLayers, now let's check if the variables we created are in place. Click the event name from the left, and then choose "Variables" from the tabs. You should be seeing the values. &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn3sva46elwconwqpeqse.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn3sva46elwconwqpeqse.png" alt="GTM custom variables debug"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you are not seeing it this way, most probably you have just misspelled the names. Make sure to double-check with the names in your dataLayers. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8msxne52wfyzrpscfrdz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8msxne52wfyzrpscfrdz.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Using Variables in GTM
&lt;/h3&gt;

&lt;p&gt;As we have the events and variables, it is time to use them. We can pass that data to other parties such as Google Analytics, Facebook Pixel, and many others. In this example, I will create a Google Analytics 4 Custom Event and pass some of the data we collected. &lt;/p&gt;

&lt;p&gt;We will now CREATE a NEW TAG. Go to GTM &amp;gt; Tags &amp;gt; Add New &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgt2at4fsfrmxaf2kkhv1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgt2at4fsfrmxaf2kkhv1.png" alt="GA4 Event Tag - GTM"&gt;&lt;/a&gt;&lt;br&gt;
Choose Google Analytics 4 Event and name the tag properly. If you didn't add the GA4 tag before, you need to configure it first. Very easy, so I will skip that one. You can check this video if you don't know &lt;a href="https://www.youtube.com/watch?v=h8o7CBqa-C4&amp;amp;t=3s&amp;amp;ab_channel=Analyzify-PowerfulShopifyAnalytics" rel="noopener noreferrer"&gt;how to add GA4 with GTM&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;Choose your configuration and name the event properly. &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi1mn1uvfcim7wxj4e22q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi1mn1uvfcim7wxj4e22q.png" alt="GA4 Event Tag - GTM - 2"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we will add custom variables. We will use EVENT PARAMETERS for event-based data and USER PARAMETERS for user-based data. Make sure to do something similar with the screenshot. A quick tip - when you write &lt;code&gt;{{&lt;/code&gt; on the right side - the variables will be listed so that you can choose the ones that you just created. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffbkar0kb7piksc8pgfg5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffbkar0kb7piksc8pgfg5.png" alt="GTM - GA4 Custom Parameters"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Make sure that it looks like this. The parameters name on the left and variable names on the right &amp;gt; &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl3133ad0x9o6ksa354u8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl3133ad0x9o6ksa354u8.png" alt="GTM - GA4 Custom Parameters - 2"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It is not done yet! We need to choose the trigger. We should choose the custom event we have created above so that this event will only be triggered when the expected action happens. &lt;/p&gt;

&lt;p&gt;Click this &amp;gt; &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkfp6rap0leb7qx0amhkz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkfp6rap0leb7qx0amhkz.png" alt="GTM Tag Triggers"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And then choose the trigger you recently created &amp;gt; &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fafg759sk4s3h915r5h8g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fafg759sk4s3h915r5h8g.png" alt="GTM Tag Triggers 2"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now all should be set, SAVE and then Publish the container. Submit from the right-top corner and then Publish. &lt;/p&gt;

&lt;h3&gt;
  
  
  Debug One Last Time!
&lt;/h3&gt;

&lt;p&gt;I mentioned above. Data setup mostly doesn't work the first time. After you publish the changes, click PREVIEW mode again and type your URL. Do the desired actions and then you should be seeing tags, triggers, variables just like below &amp;gt; &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5jdl2ngmfl6g4x0mg65p.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5jdl2ngmfl6g4x0mg65p.gif" alt="GTM - GA4 Events Debug"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Google Analytics 4 Custom Events &amp;amp; Funnels
&lt;/h2&gt;

&lt;p&gt;Even though GA4 is quite new, I have been fortunate to work with Google Analytics 4 intensely because of our &lt;a href="https://analyzify.com/" rel="noopener noreferrer"&gt;GTM App for Shopify&lt;/a&gt;. GA4 is still under development and has some bugs but I love it and every day even more. &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;GA4 has many great features, and I mentioned &lt;a href="https://analyzify.com/exciting-features-google-analytics-4/" rel="noopener noreferrer"&gt;the most important GA4 qualities&lt;/a&gt; in a blog post. &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Now I will show you how to add custom events, parameters, data to GA4 and make funnels. &lt;/p&gt;

&lt;h3&gt;
  
  
  GA4 Custom Event Parameters
&lt;/h3&gt;

&lt;p&gt;Make sure to register GA4 and add the global tag through GTM first. If you are not seeing a similar screen as below, you are probably not in Google Analytics 4 - but in the old one.&lt;br&gt;
Click Custom Definitions &amp;gt; Create Custom Dimensions&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm4gu76f534xfkiat78k6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm4gu76f534xfkiat78k6.png" alt="Custom Definitions - GA4"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To be able to achieve this, you need to run some test user interaction so that GA4 receives your event data. If you don't see your new data-name here; wait for some time and try again. It can also be visible the next day.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwgs3gl4iigbt7thyd0au.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwgs3gl4iigbt7thyd0au.png" alt="GA4 Event Parameters"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once you complete this step, you are sending all the data to GA4 perfectly and you are ready to create your amazing funnels. I will have another article on that so stay tuned! &lt;/p&gt;

&lt;p&gt;Any questions? Did you face any problems? More than happy to answer. &lt;/p&gt;

</description>
      <category>datalayer</category>
      <category>googletagmanager</category>
      <category>tutorial</category>
      <category>ga4</category>
    </item>
    <item>
      <title>How to set up Google Tag Manager on Shopify (+2022 Updates)</title>
      <dc:creator>Erman Küplü</dc:creator>
      <pubDate>Tue, 02 Mar 2021 09:23:06 +0000</pubDate>
      <link>https://forem.com/analyzify/how-to-set-up-google-tag-manager-on-shopify-2021-tutorial-p19</link>
      <guid>https://forem.com/analyzify/how-to-set-up-google-tag-manager-on-shopify-2021-tutorial-p19</guid>
      <description>&lt;p&gt;Google Tag Manager(also known as GTM) is one of the most influential and useful tools for marketers, entrepreneurs, developers, and many others. However, Shopify doesn't have a native integration for GTM and it is a little tricky to set it up. &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Update (11.12.2022) 🎉 We are excited to announce the release of our updated guide on setting up Google Tag Manager on Shopify. This new version includes the latest updates and improved methods for setting up Google Tag Manager on your Shopify store. To access the guide, please visit the following link: &lt;a href="https://dev.to/ekuplu/how-to-set-up-google-tag-manager-on-shopify-data-layers-16j5"&gt;How to set up Google Tag Manager on Shopify&lt;/a&gt;. &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;We hope this guide will help you easily implement Tag Manager on your store and improve your tracking and analysis capabilities. &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Update (17.04.2022) We have made an in-depth update on our tutorial series and also included data layers for product - purchase pages, GTM container and more. Check out our latest tutorial: &lt;a href="https://analyzify.app/google-tag-manager-shopify/setup" rel="noopener noreferrer"&gt;Set up GTM on Shopify [2022 Edition]&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;Update (23.03.2021) This tutorial explains how to add GTM into Shopify directly. We have made a new - free &lt;a href="https://www.youtube.com/watch?v=S-Nz8dOxgE8&amp;amp;list=PL92pEp_0XVLpEse3d2i-zv034Vyi64gmF&amp;amp;index=2" rel="noopener noreferrer"&gt;Shopify - Google Tag Manager video course series&lt;/a&gt; on Youtube. Check out the video series if you want to further expand your data-analytics setup.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Why use Google Tag Manager on Shopify
&lt;/h2&gt;

&lt;p&gt;Google Tag Manager allows us to manage all the marketing and tracking tags from one place, deploy and test quickly. Without using the GTM, marketers need developers to set up the tags - and even it isn't very easy for developers to set up certain tags in certain conditions. As a concrete example, you need to add the Google Analytics Global tag to all pages, the purchase event to thank you page, the form submission event to be triggered once the form is submitted correctly. All of them can be done quickly in GTM within minutes. I can count the benefits of GTM for hours, but the topic is now how to add the Google Tag Manager into your Shopify store. &lt;/p&gt;

&lt;h2&gt;
  
  
  Shopify - Google Tag Manager Integration
&lt;/h2&gt;

&lt;p&gt;Shopify doesn't have a native integration with the GTM. There are two methods to add the Google Tag Manager container (code) into the Shopify stores. We will add the code manually into your Shopify store's theme and checkout files in the first method. In the second method, we will review a few Shopify apps that do the integration for you. &lt;/p&gt;

&lt;h3&gt;
  
  
  Method 1: Adding GTM into the Shopify Theme
&lt;/h3&gt;

&lt;p&gt;It might not sound effortless, but it is actually quite applicable. We will walk you through the steps, and you will easily be able to add Google Tag Manager to your Shopify store. Follow the steps below, and don't miss the last step. Otherwise, the code won't be triggered on your thank you page, which is very important. &lt;/p&gt;

&lt;h4&gt;
  
  
  Step 1: Get your GTM Container Code
&lt;/h4&gt;

&lt;p&gt;Register for Google Tag Manager if you are not registered already. You can follow this &lt;a href="https://www.youtube.com/watch?v=R4UQLtHrebo&amp;amp;t=9s&amp;amp;ab_channel=Analyzify-PowerfulShopifyAnalytics" rel="noopener noreferrer"&gt;simple tutorial&lt;/a&gt; if you don't have an account yet. Once you are logged in to your account, click your GTM ID at the top of the screen and copy the given code below. &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fesxl2n97lzd8x8pu4x47.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fesxl2n97lzd8x8pu4x47.jpg" alt="Google Tag Manager Code for Shopify"&gt;&lt;/a&gt;&lt;br&gt;
Copy the first code. Don't mind about the second code. That's rarely needed, and it will complicate the setup of your store. Once you make sure to copy the first container code - move to the second code. &lt;/p&gt;

&lt;h4&gt;
  
  
  Step 2: Insert GTM code into Your Theme Files
&lt;/h4&gt;

&lt;p&gt;As we have your Google Tag Manager Container code in place, it is now time to place it into your Shopify store. You need to be logged in to your Shopify admin to do so. &lt;br&gt;
Shopify Admin &amp;gt; Online Store (Left Menu) &amp;gt; Actions (Near your theme name) &amp;gt; Edit Code&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff3urvvjk7dgu8etszv2y.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff3urvvjk7dgu8etszv2y.jpg" alt="Add GTM into Shopify theme Files - 1"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Search "theme.liquid" on the left search bar and find &lt;/p&gt; tag within the file. Paste the GTM container right below the  tag. &lt;br&gt;
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fih7f6x9dt434nsmkfy1c.jpg" alt="Add GTM into Shopify theme Files - 2"&gt;

&lt;p&gt;Now the GTM code will be shown on every page in your store except for the checkout processing and thank-you pages. &lt;/p&gt;

&lt;p&gt;An important note: If you are using a page builder plugin, you need to paste the code within those liquid files. &lt;/p&gt;

&lt;h4&gt;
  
  
  Step 3: Insert GTM code into Your Checkout Processing Page
&lt;/h4&gt;

&lt;p&gt;Shopify's basic plans won't allow you to edit the checkout process and add codes there. But you can still add codes on the "order completed" page. This is a crucial step because you want to track purchases in your Shopify store. &lt;br&gt;
Follow the steps below to find the Order Processing section.&lt;br&gt;
Shopify Admin &amp;gt; Settings &amp;gt; Checkout &amp;gt; Order Processing Section&lt;br&gt;
and then paste your GTM container code there. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fposbqva64mv91w5atwb9.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fposbqva64mv91w5atwb9.jpg" alt="Add GTM into Shopify Checkout"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we are set. The GTM will work on your store pages and also on the thank you page. Let us remind you again that it won't work in the checkout steps (where the user enters their credit card and address information) - but it will still work on the order completed page. &lt;/p&gt;

&lt;h4&gt;
  
  
  Step 4: Validate if the GTM is working
&lt;/h4&gt;

&lt;p&gt;With the data-related works, you always have to double-check and validate. GTM has a great tool called Debugger (also known as Preview &amp;amp; Debug Tool or Google Tag Assistant) to show you if the GTM works on your store and which tags/triggers are working. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Go back to your Google Tag Manager interface and find PREVIEW from the right-top corner. 
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1ikv0ej99ff8y5edv21p.jpg" alt="GTM Preview Mode Button"&gt;
&lt;/li&gt;
&lt;li&gt;Enter your store's URL and click Start
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnwnlxy3lg0owehwh3rfb.jpg" alt="GTM Tag Assistant"&gt;
&lt;/li&gt;
&lt;li&gt;It should open your store in a new window. Make sure that your browser is not blocking the pop-up. If yes, firstly allow it. You should see DEBUGGER CONNECTED at the right-bottom of the screen. 
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcsk3bf902iyo95cu952k.jpg" alt="GTM Debugger Connected"&gt;
&lt;/li&gt;
&lt;li&gt;Go back to Tag Assistant, and you should be seeing the "CONNECTED" message here and the TAGS in your GTM account. 
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhlw8u0245ifzpka267cy.jpg" alt="Tag Assistant Connected"&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Method 2: Using a Shopify App for Google Tag Manager
&lt;/h3&gt;

&lt;p&gt;The second option is using an app to add Google Tag Manager into your Shopify store. There are several apps in the market. &lt;/p&gt;

&lt;p&gt;If you only need the GTM container, you do not need to use an app. Method 1 will work great for you. The apps are doing the same steps that we walked you through to make the GTM working on your store. If you are looking for an in-depth tracking setup, then we definitely recommend using an app. Because the apps will also insert dataLayers into your store, allowing you to track more actions such as product impressions, add-to-cart events, search listing actions, checkout process, remove from cart, user ID, and many others.  &lt;/p&gt;

&lt;p&gt;The app we developed, &lt;a href="https://analyzify.app" rel="noopener noreferrer"&gt;Analyzify&lt;/a&gt; does the following (and even more) for your store: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Add advanced dataLayers to track all essential actions&lt;/li&gt;
&lt;li&gt;Provides you a complete GTM container that has all the triggers, tags, and many others,&lt;/li&gt;
&lt;li&gt;Sets up Google Analytics 4 with all-important e-commerce features store (Learn more about &lt;a href="https://analyzify.app/shopify-google-analytics/ga4" rel="noopener noreferrer"&gt;GA4 for Shopify&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;Provides custom setup support(at no extra cost), &lt;/li&gt;
&lt;li&gt;Creates precious user metrics such as User ID, User Recency, User Type, User Lifetime value, and many others, &lt;/li&gt;
&lt;li&gt;Sets up Facebook Pixel and all related events, &lt;/li&gt;
&lt;li&gt;Sets up Google Ads conversion tracking and all related remarketing events&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Analyzify is not the only solution in the Shopify app store. There are other cool apps as well. Make sure to check each of them before you make your decision!&lt;/p&gt;

&lt;h2&gt;
  
  
  Google Tag Manager without Shopify Plus
&lt;/h2&gt;

&lt;p&gt;We keep receiving this question from Shopify community: "Can I use Google Tag Manager without Shopify Plus plan?" The answer is short: &lt;strong&gt;you definitely can&lt;/strong&gt; - and 1000s of Shopify merchants are already using GTM with regular Shopify plans. There will only be a limitation: &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You will not be able to add your GTM container into checkout pages as you don't have the checkout.liquid file. However, your GTM setup will still work on all other pages + order complete pages. That means you can still track 95% of your page visits including the most important e-commerce events. &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;In other words, if you are running a Shopify Plus store; your GTM script will be running during the visitor's checkout process as well. Without the Shopify Plus plan, it will be interrupted during the checkout steps (where the user enters their credit card, address, etc information) and then be loaded back on the thank you page. &lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ on Shopify &amp;amp; Google Tag Manager Integration
&lt;/h2&gt;

&lt;p&gt;I wanted to collect here some of the most commonly asked questions on Shopify &amp;amp; GTM topic. &lt;/p&gt;

&lt;h3&gt;
  
  
  How can I set up enhanced e-commmerce on Shopify using Google Tag Manager?
&lt;/h3&gt;

&lt;p&gt;Shopify merchants are often confused about the enhanced e-commmerce (aka EEC) topic. EEC is actually a feature of Google Universal Analytics and it doesn't mean a full e-commerce tracking. Google Ads or Google Analytics 4 doesn't have enhanced e-commerce tracking; they have their own terms for the same reports. As for the question, you can not do a complete enhanced e-commerce setup without a Shopify Plus plan because you will miss the checkout steps. For a complete e-commerce tracking using Google Tag Manager; we would strongly recommend using: &lt;a href="https://apps.shopify.com/analyzify" rel="noopener noreferrer"&gt;Analyzify: GTM &amp;amp; GA4 App for Shopify&lt;/a&gt;. &lt;/p&gt;

&lt;h3&gt;
  
  
  How to track Shopify checkout steps using GTM?
&lt;/h3&gt;

&lt;p&gt;Well, this is only possible if you are on a Shopify Plus plan as explained in-depth above. You won't be able to add a code to the checkout steps on Shopify without having to access to checkout.liquid file. &lt;/p&gt;

&lt;h3&gt;
  
  
  How to track Add To Cart event with Google Tag Manager?
&lt;/h3&gt;

&lt;p&gt;It is relatively a complex setup as "Add to Cart" scripts differ from store to store. We recommend using an app to have an accurate solution on this. As Analyzify, we provide a custom development support to make &lt;a href="https://docs.analyzify.app/add-to-cart-event-not-working-as-expected" rel="noopener noreferrer"&gt;"Add to Cart" tracking work properly on Shopify stores&lt;/a&gt;. &lt;/p&gt;

&lt;h3&gt;
  
  
  Does Shopify have GTM data layers?
&lt;/h3&gt;

&lt;p&gt;Shopify doesn't have the data layers by default. However, there are open-source solutions like &lt;a href="https://github.com/analyzify/shopify-google-tag-manager" rel="noopener noreferrer"&gt;Analyzify Shopify data layers&lt;/a&gt; that you can use. &lt;/p&gt;

&lt;h3&gt;
  
  
  What about Shopify Google Tag Manager apps?
&lt;/h3&gt;

&lt;p&gt;The apps will provide you a more in-depth setup, data layers, pre-built Google Tag Manager container, and support. We would strongly recommend using &lt;a href="https://analyzify.app/google-tag-manager-shopify/apps" rel="noopener noreferrer"&gt;one of the Shopify GTM apps&lt;/a&gt; especially if you are spending good amount of marketing dollars. Your reporting and tracking will get better and it should help with your ROI. &lt;/p&gt;

&lt;h3&gt;
  
  
  Final Words on Usage of GTM on Shopify
&lt;/h3&gt;

&lt;p&gt;We only walked through the installation and setup process in this tutorial. GTM is powerful and beneficial. You should research more and learn better to take advantage of it in the best possible way. &lt;/p&gt;

</description>
      <category>googletagmanager</category>
      <category>shopify</category>
      <category>tutorial</category>
      <category>analytics</category>
    </item>
    <item>
      <title>How to set up Google Analytics 4 on Shopify</title>
      <dc:creator>Erman Küplü</dc:creator>
      <pubDate>Tue, 02 Feb 2021 11:59:39 +0000</pubDate>
      <link>https://forem.com/analyzify/how-to-setup-google-analytics-4-on-shopify-without-an-app-1e3n</link>
      <guid>https://forem.com/analyzify/how-to-setup-google-analytics-4-on-shopify-without-an-app-1e3n</guid>
      <description>&lt;p&gt;In today's data-driven world, e-commerce businesses rely heavily on analytics to make informed decisions, optimize user experience, and drive sales. &lt;/p&gt;

&lt;p&gt;Shopify merchants invest significant resources in digital ads to attract customers and drive sales. &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;However, without accurate measurement and data analytics, optimizing ad performance and maximizing return on investment (ROI) is impossible. GA4 offers quite important features for Ads measurements and integrations. &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;2023 August Update&lt;/strong&gt;&lt;br&gt;
Here are the latest sources about Shopify &amp;lt;&amp;gt; GA4 Integration: &lt;br&gt;
&lt;a href="https://www.youtube.com/watch?v=KvRHhOY1ffQ&amp;amp;ab_channel=Analyzify-PowerfulShopifyAnalytics" rel="noopener noreferrer"&gt;Set up Google Analytics 4 on Shopify with the Official Integration [2023] on Youtube&lt;br&gt;
&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.youtube.com/watch?v=0bt35Mfjalw&amp;amp;ab_channel=Analyzify-PowerfulShopifyAnalytics" rel="noopener noreferrer"&gt;Set up GA4 on Shopify in 5-mins using Analyzify [Complete Ecommerce Integration] on Youtube&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Google Analytics has long been a go-to tool for website owners and digital marketers to gain insights into user behavior and website performance. With the introduction of Google Analytics 4 (GA4), a new era of data analytics has begun, bringing many new features and opportunities for e-commerce businesses.&lt;/p&gt;

&lt;p&gt;As a Shopify merchant, you may know that integrating GA4 with your online store is essential for &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;tracking key e-commerce events, &lt;/li&gt;
&lt;li&gt;understanding customer behavior,&lt;/li&gt;
&lt;li&gt;optimizing your marketing efforts,&lt;/li&gt;
&lt;li&gt;analyzing your product and collection performances. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;However, the transition to GA4 and its integration with Shopify has not been without challenges.&lt;/p&gt;

&lt;p&gt;In this comprehensive guide, we'll explore the ins and outs of Shopify GA4 integration, discuss the challenges merchants face, and provide solutions to help you make the most of GA4's powerful analytics capabilities. Whether you're new to GA4 or looking to enhance your existing setup, this guide will equip you with the knowledge you need to succeed in the competitive e-commerce landscape.&lt;/p&gt;
&lt;h2&gt;
  
  
  Importance of Proper GA4 Setup
&lt;/h2&gt;

&lt;p&gt;Setting up GA4 properly is the cornerstone of successful ad optimization. It provides valuable insights into customer preferences, ad engagement, and conversion rates, enabling merchants to optimize their marketing campaigns and allocate ad spending effectively.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;With GA4, you can access a wealth of data&lt;/strong&gt;, including real-time user interactions, conversion tracking, and detailed audience segmentation. By leveraging these insights and ensuring proper GA4 setup, you can tailor your ads to target the right audience, improve ad creatives, and ultimately increase ROI.&lt;/p&gt;

&lt;p&gt;In the following chapters, we'll delve deeper into GA4, explore its features, and guide you through the various methods of setting up GA4 integration with Shopify. We'll also discuss your challenges and provide solutions to ensure seamless and accurate data tracking.&lt;/p&gt;

&lt;p&gt;Let's begin our journey into &lt;strong&gt;Shopify GA4 integration&lt;/strong&gt; and unlock the potential of data-driven ad optimization through proper setup!&lt;/p&gt;
&lt;h2&gt;
  
  
  Overview of Google Analytics 4 (GA4)
&lt;/h2&gt;
&lt;h3&gt;
  
  
  What is GA4?
&lt;/h3&gt;

&lt;p&gt;Google Analytics 4, also known as GA4, is the new and default version of Google Analytics. It represents a significant update to the platform, introducing new features and capabilities designed to help businesses better understand user behavior, track key e-commerce events, and optimize marketing efforts.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa0gp9qo959rvmo8h08sz.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa0gp9qo959rvmo8h08sz.jpg" alt="GA4 Dashboard"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;GA4 was introduced as a response to the evolving needs of businesses in the digital age. It offers a more holistic view of the customer journey, integrating data from multiple touchpoints, including websites and mobile apps. With GA4, businesses can access real-time insights, advanced audience segmentation, and powerful automation features.&lt;/p&gt;
&lt;h3&gt;
  
  
  Key Features and Benefits for E-Commerce
&lt;/h3&gt;

&lt;p&gt;GA4 brings several key features and benefits that are particularly valuable for e-commerce businesses:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Event Tracking: GA4 allows for more flexible and detailed event tracking, enabling businesses to measure interactions such as "add to cart," "view item list," "purchase item," and more. Custom events can also be defined to track specific actions unique to the business.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Enhanced Reporting: GA4 provides comprehensive and customizable reports that offer valuable insights into user behavior, conversion paths, and marketing campaign performance. These reports help businesses identify trends, opportunities, and areas for improvement.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2p9o9j1acoeytaoq6qc8.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2p9o9j1acoeytaoq6qc8.jpg" alt="GA4 Detailed Dashboard"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Audience Segmentation: GA4 enables businesses to create and analyze audience segments based on various criteria, such as demographics, behavior, and interests. This allows for more targeted marketing and personalized experiences.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Predictive Analytics: GA4 uses machine learning to provide predictive analytics, helping businesses forecast customer behavior and identify potential growth opportunities.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Cross-Platform Tracking: GA4 allows seamless tracking across websites and mobile apps, providing a unified view of the customer journey across different devices and platforms.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;While GA4 brings exciting new possibilities, it also comes with challenges for Shopify merchants looking to integrate GA4 with their online stores. In the next chapter, we'll delve into setting up GA4 integration with Shopify, discuss various integration methods, and address the challenges and limitations merchants may encounter.&lt;/p&gt;
&lt;h2&gt;
  
  
  Setting Up GA4 Integration with Shopify
&lt;/h2&gt;

&lt;p&gt;Let's continue our journey into Shopify GA4 integration and explore how to set up GA4 to unlock its full potential for your e-commerce business!&lt;/p&gt;
&lt;h3&gt;
  
  
  Shopify GA4 Setup Methods
&lt;/h3&gt;

&lt;p&gt;We will try to cover all possible Shopify GA4 setup methods so that you can make your own mind. &lt;/p&gt;
&lt;h4&gt;
  
  
  Manual Integration with GA4 Kit
&lt;/h4&gt;

&lt;p&gt;For merchants who prefer a hands-on approach, GA4 can be integrated manually using the GA4 Kit, an open-source solution developed by the Analyzify team for the Shopify community. The GA4 Kit provides data layers, a Google Tag Manager container, and other resources to facilitate GA4 integration. It has already been used by over 10,000 merchants. This method requires technical knowledge and careful implementation to ensure accurate tracking of e-commerce events.&lt;/p&gt;

&lt;p&gt;It includes data layers, pre-built and ready-to-go GTM container and in-depth tutorials. Visit the following link to get most up-to-date information: &lt;a href="https://analyzify.com/shopify-google-analytics/ga4" rel="noopener noreferrer"&gt;GA4 Setup on Shopify&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can also follow the step-by-step tutorial through the following video: &lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/hag6ucGxj5E"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h4&gt;
  
  
  Shopify GA4 Apps
&lt;/h4&gt;

&lt;p&gt;To simplify the integration process, there are various Shopify GA4 Apps available, each with its own set of features and benefits. Merchants are encouraged to explore different options to find the app that best meets their needs.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjk8a7pro8h0wfgzcey4w.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjk8a7pro8h0wfgzcey4w.jpg" alt="Analyzify Shopify GA4 App"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One standout app is &lt;a href="https://apps.shopify.com/analyzify" rel="noopener noreferrer"&gt;Analyzify&lt;/a&gt;, which offers comprehensive GA4 integration with Shopify. Analyzify has received nearly 200 positive reviews with a 5.0 average score on the Shopify App Store. Merchants love Analyzify not only because of its perfect software but also because of its great support. The Analyzify team doesn't only provide support for their own software but also goes above and beyond to help merchants with Google Ads, Google Analytics, Google Tag Manager, data layers, and many other specific problems.&lt;/p&gt;

&lt;p&gt;Pros of Analyzify:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Professional support&lt;/li&gt;
&lt;li&gt;In-depth data tracking and reporting&lt;/li&gt;
&lt;li&gt;Professional implementation support&lt;/li&gt;
&lt;li&gt;GA4 education resources&lt;/li&gt;
&lt;li&gt;Google Ads integration&lt;/li&gt;
&lt;li&gt;High review count and positive feedback \&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Cons of Analyzify:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cost (paid solution)&lt;/li&gt;
&lt;li&gt;Using an extra software&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Shopify's Native GA4 Integration
&lt;/h4&gt;

&lt;p&gt;In March 2023, Shopify introduced native GA4 integration through the Google Sales Channel. While this integration simplifies the setup process, it has limitations and does not cover all important e-commerce events.&lt;/p&gt;

&lt;p&gt;Pros of Native Integration:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Free to use&lt;/li&gt;
&lt;li&gt;Easy to integrate&lt;/li&gt;
&lt;li&gt;No additional software required&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Cons of Native Integration:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Missing some major events and parameters&lt;/li&gt;
&lt;li&gt;No customization opportunity&lt;/li&gt;
&lt;li&gt;No data layers&lt;/li&gt;
&lt;li&gt;No professional support&lt;/li&gt;
&lt;li&gt;Reported inaccuracy for some events&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Making the Right GA4 Integration Choice for Your Shopify Store
&lt;/h3&gt;

&lt;p&gt;Ultimately, the choice between manual integration with GA4 Kit, Shopify GA4 Apps, and native integration depends on your business needs and technical expertise. Professional support, customization, and accurate data collection are key considerations when selecting a GA4 integration method.&lt;/p&gt;

&lt;p&gt;In the next chapter, we'll discuss how to leverage GA4 reports to optimize user experience and ad ROI, and how tools like Analyzify can simplify reporting and provide valuable insights.&lt;/p&gt;

&lt;p&gt;Let's continue our journey into the world of Shopify GA4 integration and explore how to make the most of GA4's powerful analytics capabilities!&lt;/p&gt;

&lt;h2&gt;
  
  
  GA4 Ecommerce Reports for Shopify Merchants
&lt;/h2&gt;

&lt;p&gt;GA4 reports provide a wealth of data that can be used to make strategic decisions for your e-commerce business. By analyzing these reports, you can gain insights into your audience demographics, product performance, purchase behavior, revenue sources, user retention, and technological preferences.&lt;/p&gt;

&lt;p&gt;The key to success is using this data to inform your marketing and advertising efforts, optimize user experience, and drive revenue growth. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F93npldbxrgpok3ziqjk9.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F93npldbxrgpok3ziqjk9.jpg" alt="GA4 ecommerce monetization dashboard"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As a Shopify merchant, you have the opportunity to leverage GA4's powerful analytics capabilities to better understand your customers and optimize your business. By setting up GA4 integration properly and utilizing the available reports, you can gain a competitive edge in the e-commerce landscape and achieve your business goals.&lt;/p&gt;

&lt;p&gt;Constantly analyzing your store's data is essential to making informed decisions and optimizing your marketing efforts. Google Analytics 4 (GA4) offers a suite of important and useful reports for e-commerce stores, providing insights that can help answer critical questions about your business.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs7a323uvmbpdjhgpbhne.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs7a323uvmbpdjhgpbhne.jpg" alt="GA4 Shopify Products Dashboard"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this section, we'll take a closer look at some of the most significant Google Analytics 4 e-commerce reports and how they can provide valuable insights to Shopify merchants.&lt;/p&gt;

&lt;h3&gt;
  
  
  GA4 Demographics: Understanding Your Audience
&lt;/h3&gt;

&lt;p&gt;The GA4 Demographics report provides insights into your customers' country, region, city, language, age, and gender. Understanding the demographics of your audience is key to engaging with the most important segments effectively.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7scmc4gj0rpcqax0am27.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7scmc4gj0rpcqax0am27.jpg" alt="GA4 Demographics Dashboard"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Key Questions Answered:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Who are my website visitors?&lt;/li&gt;
&lt;li&gt;What are their age, gender, and interests?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Strategic Decisions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Compare your audience demographics with your target audience for advertising.&lt;/li&gt;
&lt;li&gt;Tailor your marketing efforts to engage the most important audience segments.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  GA4 E-commerce Product Performance: Evaluating Product Success
&lt;/h3&gt;

&lt;p&gt;The GA4 E-commerce Product Performance report offers detailed information about how your products are performing, including sales, revenue, and cart addition rate.&lt;/p&gt;

&lt;p&gt;Key Questions Answered:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How are my products performing?&lt;/li&gt;
&lt;li&gt;Which products/categories are most popular or underperforming?&lt;/li&gt;
&lt;li&gt;Which products should I consider adjusting the price for?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Strategic Decisions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Analyze product performance metrics and make changes to product mix and pricing strategy.&lt;/li&gt;
&lt;li&gt;Identify opportunities to promote popular products and address underperforming ones.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  GA4 E-commerce Purchases: Tracking Transactions and Behavior
&lt;/h3&gt;

&lt;p&gt;The GA4 E-commerce Purchases report tracks e-commerce transactions, including add-to-carts, purchase-to-view rate, items purchased, purchase revenue, and session conversion rate.&lt;/p&gt;

&lt;p&gt;Key Questions Answered:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What is the purchase behavior of my customers?&lt;/li&gt;
&lt;li&gt;Which products are my customers buying, and how often?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Strategic Decisions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Understand customer purchase behavior and adjust e-commerce strategy accordingly.&lt;/li&gt;
&lt;li&gt;Identify patterns in customer behavior to inform marketing and promotional efforts.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  GA4 Monetization: Analyzing Revenue Sources
&lt;/h3&gt;

&lt;p&gt;The GA4 Monetization report shows revenue from e-commerce, subscription, and ad sources, helping you understand what is driving revenue for your brand.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzv24j1pc8oo7v67enxgj.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzv24j1pc8oo7v67enxgj.jpg" alt="GA4 Traffic resources"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Key Questions Answered:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How much revenue do I get from my website?&lt;/li&gt;
&lt;li&gt;Which products or sources generate the most revenue?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Strategic Decisions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Optimize monetization strategy based on revenue sources and performance.&lt;/li&gt;
&lt;li&gt;Evaluate ad campaigns and adjust marketing efforts to maximize revenue.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  GA4 Retention: Measuring User Engagement Over Time
&lt;/h3&gt;

&lt;p&gt;The GA4 Retention report tracks user behavior and engagement over time, providing data on the number of users who return to your website or app after their initial visit.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm1u4oxkkgaj84dakqvwt.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm1u4oxkkgaj84dakqvwt.jpg" alt="GA4 retention"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Key Questions Answered:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How many users are returning after their first visit?&lt;/li&gt;
&lt;li&gt;How often do customers return, and how long do they stay on the pages?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Strategic Decisions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Identify areas for improvement in customer experience to increase user engagement and retention.&lt;/li&gt;
&lt;li&gt;Evaluate the effectiveness of user acquisition strategies and adjust as needed.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  GA4 Tech Overview: Assessing Technological Preferences
&lt;/h3&gt;

&lt;p&gt;The GA4 Tech Overview report provides insights into your audience's technological preferences, including browser, device type, operating system, and more. It also shows engagement sessions and engagement rate.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvqav6nwe353z0kgmyxi4.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvqav6nwe353z0kgmyxi4.jpg" alt="GA4 Tech Overview"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Key Questions Answered:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Is my website user-friendly across different platforms and devices?&lt;/li&gt;
&lt;li&gt;What are the operating systems, browsers, and device categories used by my visitors?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Strategic Decisions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Improve website performance and compatibility across different browsers and devices.&lt;/li&gt;
&lt;li&gt;Address&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;technical issues that may be impacting user engagement and conversion rates.&lt;/p&gt;

&lt;h3&gt;
  
  
  Simplified Reporting Interface and Educational Resources
&lt;/h3&gt;

&lt;p&gt;Tools like Analyzify simplify the reporting process by providing a user-friendly interface that displays the most important GA4 and Google Ads reports in one screen. Analyzify also offers educational videos to help you learn how to use GA4 and Google Ads reports to better understand user behavior and optimize your ads.&lt;/p&gt;

&lt;h2&gt;
  
  
  Setting Up GA4 Property
&lt;/h2&gt;

&lt;p&gt;If you don't have a GA4 property, you can follow the steps below and set it up. &lt;/p&gt;

&lt;h3&gt;
  
  
  For the new accounts:
&lt;/h3&gt;

&lt;p&gt;You will see Google Analytics 4 as a default option if you want to create an account now. However, there is an &lt;em&gt;Advanced Setting&lt;/em&gt; that allows you to create both GA4 and Universal Analytics. Go to the "Create Google Analytics Account" screen and find the "Advanced" setting - kindly check the GIF below: &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F3ifuqeuiy5lg97cj528j.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F3ifuqeuiy5lg97cj528j.gif" alt="Creating Google Analytics 4 and UA accounts together"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  For the existing accounts:
&lt;/h3&gt;

&lt;p&gt;Upgrade your current account. It won't make you lose any data, don't worry about it. It is actually not "an upgrade"; it will just create a new GA4 account attached to your existing UA account. &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fn76q0kkvqxgqhn5gs2gn.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fn76q0kkvqxgqhn5gs2gn.gif" alt="Upgrading your current account"&gt;&lt;/a&gt;&lt;br&gt;
After you do this, you will find your new GA4 account; under your properties at the top menu. &lt;/p&gt;

&lt;h3&gt;
  
  
  Get the GA4 Global Tag
&lt;/h3&gt;

&lt;p&gt;As you have the account now, it is time to get the new global tag and insert it into your Shopify store. &lt;br&gt;
Find your new GA account in your Google Analytics, and then &amp;gt;  Click Admin &amp;gt; Data Streams &amp;gt; Click the Tag &amp;gt; And then find Global Tag and copy the full code&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fc60u35qqw4al73mfe8o6.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fc60u35qqw4al73mfe8o6.gif" alt="Copy GA4 Global Tag"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Technical Overview of Shopify GA4 Integration
&lt;/h2&gt;

&lt;p&gt;In this section, we'll provide a technical overview of Shopify GA4 integration, covering key components such as data layers, GA4 e-commerce tracking, and GA4 events. Understanding these technical aspects is essential for ensuring accurate data tracking and making the most of GA4's powerful analytics capabilities.&lt;/p&gt;

&lt;h3&gt;
  
  
  Data Layers
&lt;/h3&gt;

&lt;p&gt;Data layers are a fundamental component of GA4 integration, serving as a structured way to pass information from your Shopify store to Google Analytics. Data layers act as an intermediary, allowing you to collect and organize data about user interactions, e-commerce events, and other important information. By defining and configuring data layers, you can customize the data you send to GA4 and gain deeper insights into user behavior.&lt;/p&gt;

&lt;h3&gt;
  
  
  GA4 E-commerce Tracking
&lt;/h3&gt;

&lt;p&gt;GA4 e-commerce tracking enables you to monitor and analyze e-commerce activities on your Shopify store. With GA4 e-commerce tracking, you can track key metrics such as revenue, transactions, product performance, and conversion rates. GA4 provides a comprehensive view of the customer journey, from product discovery to purchase, helping you optimize the shopping experience and drive sales.&lt;/p&gt;

&lt;h3&gt;
  
  
  GA4 Events
&lt;/h3&gt;

&lt;p&gt;GA4 events are user interactions or activities that you can track on your Shopify store. These events provide valuable information about how users engage with your website and products. Some of the main GA4 events relevant to e-commerce businesses include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Purchase: Tracks completed transactions and captures details such as revenue, quantity, and product information.&lt;/li&gt;
&lt;li&gt;Add to Cart: Monitors when users add products to their shopping carts, providing insights into product interest and potential sales.&lt;/li&gt;
&lt;li&gt;View Item: Records when users view product detail pages, helping you understand product visibility and engagement.&lt;/li&gt;
&lt;li&gt;Begin Checkout: Captures when users initiate the checkout process, allowing you to analyze checkout behavior and identify potential barriers to purchase.&lt;/li&gt;
&lt;li&gt;View Item List: Tracks when users view a list of products, such as a category or collection page, providing insights into product discovery.&lt;/li&gt;
&lt;li&gt;Select Item: Monitors when users select a product from a list, capturing user interactions with product listings.&lt;/li&gt;
&lt;li&gt;Add Payment Info: Records when users enter payment information during the checkout process, helping you analyze payment behavior.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These events, along with other custom events you define, provide a wealth of data that you can use to analyze user behavior, optimize the shopping experience, and improve e-commerce performance.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What is GA4, and how is it different from Universal Analytics (UA)?
&lt;/h3&gt;

&lt;p&gt;GA4, or Google Analytics 4, is the latest version of Google Analytics. Unlike UA (Universal Analytics), GA4 offers event-based tracking, cross-platform tracking, improved AI-powered insights, and enhanced privacy features. GA4 does not have a dedicated "Enhanced E-commerce" section like UA but provides powerful e-commerce reports.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I set up GA4 integration with my Shopify store?
&lt;/h3&gt;

&lt;p&gt;You can set up GA4 integration with your Shopify store using manual integration with GA4 Kit, a Shopify GA4 App like Analyzify, or Shopify's native GA4 integration. Each method has its own advantages and considerations, so choose the one that best fits your needs.&lt;/p&gt;

&lt;h3&gt;
  
  
  What are data layers in GA4?
&lt;/h3&gt;

&lt;p&gt;Data layers are a structured way to pass information from your Shopify store to Google Analytics. They act as an intermediary for collecting and organizing data about user interactions and e-commerce events, allowing you to customize the data sent to GA4.&lt;/p&gt;

&lt;h3&gt;
  
  
  What are the key GA4 events I should track for my e-commerce store?
&lt;/h3&gt;

&lt;p&gt;Key GA4 events for e-commerce stores include Purchase, Add to Cart, View Item, Begin Checkout, View Item List, Select Item, and Add Payment Info. These events provide insights into user behavior, product performance, and the customer journey.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I track customer demographics with GA4?
&lt;/h3&gt;

&lt;p&gt;Yes, GA4 provides a Demographics report that offers insights into your customers' country, region, city, language, age, and gender. This information helps you understand your audience and tailor your marketing efforts.&lt;/p&gt;

&lt;h3&gt;
  
  
  How can I use GA4 reports to optimize my marketing campaigns?
&lt;/h3&gt;

&lt;p&gt;GA4 reports provide data on user behavior, product performance, conversion rates, and more. By analyzing these reports, you can identify trends, optimize user experience, tailor your marketing campaigns, and improve advertising ROI.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I track revenue and transactions with GA4?
&lt;/h3&gt;

&lt;p&gt;Yes, GA4 e-commerce tracking enables you to monitor revenue, transactions, product performance, and other key metrics. This information helps you evaluate sales performance and make informed business decisions.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can GA4 help me improve user retention?
&lt;/h3&gt;

&lt;p&gt;Yes, GA4's Retention report tracks user engagement over time, providing data on returning users and the duration of their engagement. By analyzing this report, you can identify areas for improvement in customer experience and increase user retention.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is GA4 compatible with different devices and browsers?
&lt;/h3&gt;

&lt;p&gt;GA4 is designed to be compatible with different devices (desktop, mobile, tablet) and browsers. The GA4 Tech Overview report provides insights into your audience's technological preferences, allowing you to optimize your website's performance across platforms.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is GA4 integration with Shopify free?
&lt;/h3&gt;

&lt;p&gt;Shopify's native GA4 integration is free, but third-party Shopify GA4 Apps like Analyzify may have associated costs. Manual integration with GA4 Kit is an open-source solution developed by the Analyzify team and is free to use.&lt;/p&gt;

&lt;h2&gt;
  
  
  What are the advantages of using Analyzify over Shopify's native GA4 integration?
&lt;/h2&gt;

&lt;p&gt;Analyzify offers several advantages over Shopify's native GA4 integration, including:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Professional support: Analyzify provides dedicated support for their software and helps merchants with Google Ads, Google Analytics, Google Tag Manager, data layers, and more.&lt;/li&gt;
&lt;li&gt;In-depth data: Analyzify offers super in-depth data tracking, including additional events and parameters not covered by the native integration.&lt;/li&gt;
&lt;li&gt;Customization: Analyzify allows for customization and professional implementation support, catering to merchants' specific needs.&lt;/li&gt;
&lt;li&gt;GA4 education: Analyzify offers educational resources to help merchants understand and utilize GA4 effectively.&lt;/li&gt;
&lt;li&gt;Google Ads integration: Analyzify provides integration with Google Ads, including enhanced conversions through Google Tag Manager.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  12. Are there any downsides to using Analyzify instead of Shopify's native GA4 integration?
&lt;/h3&gt;

&lt;p&gt;While Analyzify offers many advantages, there are a few considerations to keep in mind:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cost: Analyzify is a paid solution, whereas Shopify's native GA4 integration is free.&lt;/li&gt;
&lt;li&gt;Additional software: Using Analyzify requires installing an additional app on your Shopify store.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It's important to weigh the pros and cons of each option and choose the one that best aligns with your business needs and goals.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;In this guide, we explored the importance of proper GA4 integration with Shopify, the various setup methods available, and the challenges and considerations merchants may face. We highlighted the benefits of using GA4 for data tracking and reporting and discussed how tools like Analyzify can enhance the integration process.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Accurate and actionable data is essential for success in the competitive e-commerce landscape.&lt;/li&gt;
&lt;li&gt;Google Analytics 4 (GA4) offers valuable insights through powerful reports on audience, product performance, purchase behavior, revenue sources, and user retention.&lt;/li&gt;
&lt;li&gt;Proper setup of GA4 integration with your Shopify store is crucial for accurate data tracking.&lt;/li&gt;
&lt;li&gt;Merchants can choose between manual integration with GA4 Kit, Shopify GA4 Apps (e.g., Analyzify), or Shopify's native GA4 integration.&lt;/li&gt;
&lt;li&gt;GA4 reports empower merchants to:

&lt;ul&gt;
&lt;li&gt;Optimize marketing and advertising efforts.&lt;/li&gt;
&lt;li&gt;Tailor campaigns to reach the right audience segments.&lt;/li&gt;
&lt;li&gt;Evaluate product performance and uncover growth opportunities.&lt;/li&gt;
&lt;li&gt;Enhance user experience and improve customer retention.&lt;/li&gt;
&lt;li&gt;Maximize advertising ROI.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;You can't optimize what you don't measure correctly—GA4 provides the tools to measure, analyze, and optimize with confidence.&lt;/li&gt;

&lt;li&gt;Leveraging GA4's analytics capabilities can help merchants navigate challenges and achieve their business goals.&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;Thank you for joining us on this journey into the world of Shopify GA4 integration. We hope this guide has equipped you with the knowledge and resources you need to unlock the full potential of GA4 and drive success for your business.&lt;/p&gt;

</description>
      <category>googleanalytics4</category>
      <category>googleanalytics</category>
      <category>shopify</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
