I am trying to add a conversion tracking tag to my squarespace site (7.0), to replace a phone number with a Google Forwarding number.
Google Provided the steps below, but they don't quite align with how Squarespace handles code injection. Where am I going wrong? I have a previous tag installed, which I amended with the gtag config highlighted in green below, (and screenshot attached).
Do I need to replace the previous Google tag with the new one provided below?
Do I need to install the snippet into the ADVANCED > PAGE HEADER CODE INJECTION area for every index or page that features the phone number I want to replace?
Google's instructions below:
To add this tag to your website, follow the instructions below.
How to use the tag
For conversion tracking to work, you'll need to install the conversion tracking tag, which consists of the Google tag and a phone snippet.
Install the Google tag on every page of your website.
Open the HTML for each page.
Choose from the following options:
If you haven't installed the Google tag on your website, copy the tag below and paste it between the head tags (<head></head>😞
<!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=AW-734834475"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'AW-734834475'); </script>
See more guidelines on setting up the Google tag.
If you installed the Google tag on your website from another Google product (example: Google Analytics) or from another Google Ads account, copy the 'config' command below and add it to every instance of the Google tag, right above the </script> end tag.
gtag('config', 'AW-734834475');
If you or a manager account already installed the Google tag on your website while setting up the tag for another conversion action, make sure that the tag is on every page of your website and check that the 'config' command has this Google Ads account's conversion ID: AW-734834475
Save the changes to your webpages.
Install the phone snippet on the page where the phone number 559.939.1362 appears on your website.
Open the HTML for the page.
Copy the snippet below and paste it after the Google tag.
<script> gtag('config', 'AW-734834475/yNfQCPu_2M4YEKvest4C', { 'phone_conversion_number': '559.939.1362' }); </script>
Save the changes to your webpage.