Google Analytics - Shopify #dxSEO (디엑스에스이오) Blog 블로그

#dxSEO (디엑스에스이오) Blog 블로그

 Google Analytics - Shopify


Set up your Google tag integration with Shopify

You can measure behavioral data about your site with Google Analytics. If you have a tag ID starting with “G-”, follow the steps below to set up your Google Analytics account with Shopify.

Instructions

The easiest and fastest way to set up tracking through Google Analytics is to use the Google & YouTube app. Note that this integration is native to Shopify. To set up your Google Analytics tracking through Shopify, follow the steps below.

  1. Sign in to your Shopify account.
  2. On the left panel menu, open the Online store dropdown menu, then choose Preferences from the list.
  3. Navigate to the “Google Analytics account” section. Click Manage pixel here.
    1. If the Shopify app isn’t installed, review the list of permissions required, then press Add sales channel at the bottom to continue.
    2. If the app isn’t connected to Google, click Connect, then choose the Google account that owns your Analytics property.
  4. Choose your Google tag ID from the dropdown list, and click Connect your Google Analytics 4 property.
Note: If you plan on using Google Analytics to track free listings and ads conversions, check How to avoid duplicating tracking events to ensure that you do not duplicate conversion tracking.

Add your Google tag manually

If you do not want to use the Google & YouTube app on Shopify, you can set up Google Analytics tracking manually. Manual set up is only recommended for advanced users as it can be complicated, and can increase the likelihood of error, resulting in inaccurate tracking data.

If you prefer to set up tracking through Google Analytics manually, follow the steps below.

  1. In Google Analytics, go to the Admin screen.
  2. In Data Streams, click on a stream to see details.
    Your screen should show you the Google Analytics settings and the Google tag settings.
  3. In the “Your Google tag” section at the bottom of the page, click Installation instructions.
  4. On the "Installation instructions" page, select “Install manually”.
  5. In Shopify, select the "Online Store" > Themes option from the panel on the left and then select the button with three dots on your active theme > "Edit Code" dropdown.
  6. Under "Layout", choose {/}theme.liquid.
  7. In the theme.liquid file, confirm that Google tracking tags are not present. If you have code on this page that resembles the block below, you likely already have Google products installed, so double-check before replacing the existing code block.
  8. To establish a connection between your website and Google Ads, copy and paste the Google tag code below. After the <head> element, paste the code below beginning with: <!-- Google tag (gtag.js) --> and ending with </script>. Click Save to finish.
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=Tag_ID"></script>
<script>
 window.dataLayer = window.dataLayer || [];
 function gtag(){dataLayer.push(arguments);}
 gtag('js', new Date());
 gtag('config', 'Tag_ID');
</script>
 

Comments

Popular posts from this blog

Google for Retail - Google을 선택해야 하는 이유

@dxSEO - Google Analytics - Typo3 #dxSEO (디엑스에스이오) Blog 블로그

@dxSEO - Google Analytics - Wix #dxSEO (디엑스에스이오) Blog 블로그