Hi, community,
I need help to set up the code of the Google conversion tag on the “thank you” of my Shopify store. Can you please provide guidance or help to do this?
This is my store: https://thegiftcompany.com.au/
This is the email I have received from google:
The Google Ads user joegr7@gmail.com has shared a tracking tag to track conversions on your website. 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 a global site tag and an event snippet. If installing the tag with Google Tag Manager, follow these instructions instead.
If any of your web pages are built using AMP, you’ll need to add tags to both the AMP and HTML versions. Instructions are included for both.
HTML pages
Install the global site tag on every page of your website.
Open the HTML for each page.
Choose from the following options:
If you haven’t installed the global site tag on your website, copy the tag below and paste it between the head tags ():
See more guidelines on setting up the global site tag.
If you installed the global site tag on your website from another Google product (e.g. Google Analytics) or from another Google Ads account, copy the ‘config’ command below and add it to every instance of the global site tag, right above the end tag.
gtag(‘config’, ‘AW-823381560’);
If you or a manager account already installed the global site 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-823381560
Save the changes to your web pages.
Install the event snippet on the conversion page. This is the page your customers reach on your website after they’ve completed a conversion – the “Thank you for your order” page, for example.
Open the HTML for the conversion page.
Copy the snippet below and paste it between the head tags () of the page, right after the global site tag.
Add code to dynamically pass a value to the transaction_id parameter. When tracking purchases, sales or leads on your website, this parameter ensures that each conversion is only counted once.
Save the changes on your web page.
AMP pages
You should follow these instructions for any of the pages built using the AMP framework.
Install the global site tag on every page of your website.
Open the HTML for each page.
Choose from the following options:
If you haven’t installed the global site tag on your website, add these two tags:
First, copy the tag below and paste it between the head tags (), before the AMP JS library.
Then, copy the tag below and paste it between the body tags () of all of your AMP pages
See more guidelines on setting up the global site tag.
If you installed the global site tag on your website from another Google product (e.g. Google Analytics) or from another Google Ads account, copy the line below and include it in the ‘config’ section of every instance of the global site tag.
“AW-823381560”: { “groups”: “default” }
If you or a manager account already installed the global site 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’ section has this Google Ads account’s conversion ID: AW-823381560
Save the changes to your web pages.
Install the event snippet on the conversion page. This is the page your customers reach on your website after they’ve completed a conversion – the “Thank you for your order” page, for example.
Open the HTML for the conversion page.
Copy the snippet below and paste it into the ‘triggers’ section of the global site tag.
“C_0s2DLeLxcps”: { “on”: “visible”, “vars”: { “event_name”: “conversion”, “transaction_id”: “”, “send_to”: [“AW-823381560/voYKCOyVuJ8DELicz4gD”] } }
Add code to dynamically pass a value to the transaction_id parameter. When tracking purchases, sales or leads on your website, this parameter ensures that each conversion is only counted once.
Save the changes on your web page.
Learn more about adding a conversion tracking tag to your website.
Thank you,
The Google Ads Team