Home

Add Custom Tracking Code to Square Online

Who is this article for?
  • Sellers with online permissions. Set permissions in Square Dashboard.
  • Square Online Plus or Premium subscribers.
  • About custom tracking codes

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

    Before you begin

    Custom tracking code isn’t intended to be visible and needs to be inserted into the header of your website (like Google Analytics or Meta Pixel). This code is different from embedded code that displays on your website (like an event calendar or reservation widget). Learn how to add external content to your Square Online site with embedded code.

    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. If you need assistance with custom code associated with your site at any time, we recommend consulting a coding expert.

    Understand custom tracking code options

    Google Analytics

    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 Google Analytics account.

    Learn more about how to set up your Google Analytics account and find your Tracking ID in Google’s support centre.

    Google Verification

    Use Google Verification to verify your website with Google. Find your verification meta tag from Google, and you can then complete the verification process with Google. Learn more about how to verify your Square Online 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.

    Facebook Pixel

    Enter your Facebook pixel ID from Facebook Ads, then complete the process through Facebook.

    Bing Verification

    Verify your website with Bing. Get the verification meta tag from Bing and publish your site.

    Add Your Own Custom Tracking Code

    You can add your own header or footer code to your Square Online site for third-party integrations and tracking from your Square Dashboard.

    1. Sign in to your Square Dashboard and go to Sales channels > Online > Settings > Tracking Tools.

    2. Select Add new code.

    3. In the pop-up window, enter the code's name and the code itself in 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 site editor to see the changes live.

    Related articles

    Can't find what you need?