System updates

We’re experiencing issues that may affect your Square services. We’ll continue to update our status page with more information.

Home>Site and eCommerce Setup

Add Custom Tracking Code to Square Online

With Square Online, you can add tracking and custom header codes to your site for analytics, and customising the online experience for visitors and customers.

Note: This article describes how to insert certain types of code that aren’t intended to be visible and need to be inserted into the header of your website (e.g. Google Analytics or Meta Pixel). This is in contrast to embedded code that’ll display on your website (e.g. an event calendar or reservation widget). Learn more about adding embed code to your website for details on how to use the embed code section in the site editor.

Add Custom Tracking Code with Built-in Options

From your Square Online Overview page, go to Settings > Tracking Tools. There are several built-in options here that allow you to paste in your code or ID, and have it automatically added to your website after publishing it from the site editor.

Google Analytics

Use this to add Google Analytics tracking to monitor traffic, products, transactions, checkout data and other statistics for your Square Online site. Find your tracking ID in your Analytics account, paste it in here, then publish your site.

Learn more about setting up your Google Analytics account and finding your Tracking ID in Google’s support centre.

Google Verification

Use this when you want to verify your website with Google. Get the verification meta tag from Google, paste it here and publish your site. You can then complete the verification process with Google.

Learn more about how to verify your site with search engines like Google.

Pinterest Verification and Conversion Tag

Use this option to verify your domain with Pinterest and add a tag to track conversions from Promoted Pins. Once you paste your code, publish your site.

Facebook Pixel

Use this to enter your Facebook pixel ID from Facebook Ads, then publish your site and complete the process through Facebook.

You can also learn more about how to connect Square Online to Facebook and Instagram.

Bing Verification

Use this when you want to verify your website with Bing. Get the verification meta tag from Bing, paste it here and publish your site.

Learn more about how to verify your site with search engines like Bing.

Add Your Own Custom Tracking Code

Square-Online-Add-Custom-Header-Code-EN

To add your own header or footer code to your Square Online site for third-party integrations and tracking:

  1. From your Square Online Overview page, go to Settings > Tracking Tools.

  2. Select Add new code.

  3. In the pop-up window, enter in the code’s name and the code itself into the corresponding fields.

  4. To place the code in the header, select head. To place the code in the footer, select End of body.

  5. Select Save when finished.

  6. Publish your site from the Square Online site editor to see the changes live.

Note: Unless you’ve been instructed to do so, it’s okay to leave these fields blank. Never use them for keywords or generic text, as doing so could have an adverse effect on your website.


Disclaimer: Since the Square Online site editor is a ‘what-you-see-is-what-you-get’ type of software and no custom-coding is necessary to create a website with Square, we’re unable to assist with custom code of any kind. This means that we can guide you on where custom code can be used throughout the Square Online platform, but we’re unable to assist with the code itself.

With this in mind, using any code associated with your website must be done with the knowledge and understanding of how the code could affect your website and its function. All custom code you associate with your site is optional, and not necessary to make it work or appear online.

Should you need assistance with custom code associated with your site at any time, we recommend consulting a coding expert.

Can't find what you need?