How To Setup The Google Analytics Global Site Tag?

How To Setup The Google Analytics Global Site Tag?

How To Setup The Google Analytics Global Site Tag?

To setup the 'Google Analytics Global Site Tag', please follow the steps below.


  1. If you have not already done so, create a Google Analytics property for each website you want to collect data from.

    Creating a property generates a unique Tracking ID and a global site tag that includes the Tracking ID for that property. See the following section for information about finding your Tracking ID and global site tag.

2. Copy and paste the global site tag after the opening <head> tag on each page you want to measure.


Find your Tracking ID and global site tag

  1. Sign in to your Analytics account.
  2. Click Admin.
  3. Select an account from the menu in the ACCOUNT column.
  4. Select a property from the menu in the PROPERTY column.
  5. Under PROPERTY, click Tracking Info > Tracking Code.

    Your Tracking ID is displayed at the top of the page.

    Your global site tag is displayed farther down the page in a text box under Website Tracking > Global Site Tag (gtag.js)

The global site tag

The global site tag is several lines of code that you need to paste into each webpage you want to measure:

<!-- Global Site Tag (gtag.js) - Google Analytics -->

... (several lines of code) ...

</script>

To add the global site tag to your webpages:

  1. Copy the entire contents of the text box.
  2. Visit the following location in your store backend: > Store Settings > Cookies & Scripts > Standard Scripts
  3. Paste the code in the top text box labelled 'Non-intrusive (always added)'. 
  4. Click 'Save Changes' at the bottom of the page. 


    • Related Articles

    • How To Setup Google Ads Conversion Tracking?

      How To Setup Google Ads Conversion Tracking? To setup the 'Google Ads Conversion Tracking Tag', please follow the steps below. Step 1: Create a conversion action Sign in to your Google Ads account. In the top right-hand corner, click the tools icon , ...
    • How to Integrate Google Analytics

      How to Integrate Google Analytics Sign in to your Google Analytics account. Click Admin at the bottom of the page. Go to the Property section => Tracking Info. Click Tracking Code in the drop-down menu. Copy the script below Global Site Tag. Go to ...
    • How To Create A Google Analytics Account

      How To Create A Google Analytics Account 1. How to create Google Analytics account. Click here to access Google Analytics. If you have a Google account, and are not signed in, click Sign in to Analytics. If you do not have a Google account, choose ...
    • How To Set Up Google Analytics Traffic Reports

      How To Set Up Google Analytics Traffic Reports How to make Google Analytics live stats show on your dashboard. Go to the Google Developer Console. 2. In the Google Developers Console, click the Projects Menu: 3. Enter your Project Name and click the ...
    • Setting up Google Chrome Extension

      Setting up Google Chrome Extension To make AliDropship plugin work properly, you need to install and activate AliDropship Google Chrome extension. It allows you to: add products and reviews to your site directly from AliExpress edit product before ...