Before you begin
The instructions for setting up the Google tag are different for different tag IDs, so you’ll need to follow the instructions that correspond with your tag.
If you have a tag starting with "AW-"
Tags that start with “AW-” are generally associated with Google Ads accounts.
- Sign in to your Square account.
- On the left panel menu, click Online, then select Online in the popup menu.
- On the “Online” page, click Settings, then select Tracking Tools from the dropdown.
- Under the “Add custom header code” row, click Add new code.
- 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://webproxy.poorya-velaei-d67.workers.dev/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> - Under “Where would you like to place this code?” confirm that the code is placed at the
<head>. - Click Save.
If you have a tag starting with "G-"
Tags that start with “G-” are generally associated with Google Analytics accounts.
- Sign in to your Square account.
- On the left panel menu, click Online, then select Online in the popup menu.
- On the “Online” page, click Settings, then select Tracking Tools from the dropdown.
- Under “Google Analytics”, enter your tag ID. Your changes will be saved automatically.