Notification

The Google Analytics: GA4 Configuration tag is now the Google tag. GA4 Configuration tags in a web container will be automatically migrated starting in September. There are no changes to your existing measurement and there is no action required from you. Learn more

Square Online: Set up your Google tag

You can measure behavioral data about your site with Google Ads and Google Analytics. Follow the steps in this article to set up a tag for your Google Ads or Google Analytics account. Learn more about Installing your tag with a website builder or CMS.

Before you begin

You’ll need to have your Google tag ID.
 
The instructions for setting up the Google tag are different for tag IDs starting with "AW-" (usually, Google Ads accounts) and tag IDs starting with "G-" (usually, Google Analytics properties). Follow the instructions below that correspond with your tag.

If you have a tag starting with "AW-"

An animation showing how to add new code using Square Online.
  1. Sign in to your Square account.
  2. On the left panel menu, click Online, then select Online in the popup menu.
  3. On the “Online” page, click Settings, then select Tracking Tools from the dropdown.
  4. Under the “Add custom header code” row, click Add new code.
  5. In the “Add customer header code” popup window, enter a name for your custom code, then paste your Google tag into the “Custom code” box.

    <!-- 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>

  6. Under “Where would you like to place this code?” confirm that the code is placed at the <head>.
    An illustration showing how to add custom header code using Square Online.
  7. Click Save.

If you have a tag starting with "G-"

An animation showing how to add new code using Square Online.
  1. Sign in to your Square account.
  2. On the left panel menu, click Online, then select Online in the popup menu.
  3. On the “Online” page, click Settings, then select Tracking Tools from the dropdown.
  4. Under “Google Analytics”, enter your tag ID. Your changes will be saved automatically.
    A screenshot showing the tracking tools in Square Online.

Was this helpful?

How can we improve it?
Search
Clear search
Close search
Main menu
898549316525753539
true
Search Help Center
true
true
true
true
true
102259
false
false