[go: up one dir, main page]

0% found this document useful (0 votes)
24 views2 pages

Code Instruction

Uploaded by

cogafi3564
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views2 pages

Code Instruction

Uploaded by

cogafi3564
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

1. Install the Google tag on every page of your website.

a. Open the HTML for each page.

b. 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=G-


3J8JB30T41"></script> <script> window.dataLayer = window.dataLayer || []; function gtag()
{dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-3J8JB30T41'); </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-16781641063');

 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-16781641063

c. Save the changes to your webpages.

2. 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.

a. Open the HTML for the conversion page.

b. Copy the snippet below and paste it between the head tags (<head></head>) of the
page, right after the Google tag.

<!-- Event snippet for Submit lead form conversion page --> <script> gtag('event', 'conversion',
{'send_to': 'AW-16781641063/apLzCIPwme4ZEOeKjsI-'}); </script>

c. Save the changes to your webpage.

AMP PAGES

You should follow these instructions for any of the pages built using the AMP framework.

1. Install the Google tag on every page of your website.

a. Open the HTML for each page.


b. Choose from the following options:

 If you haven't installed the Google tag on your website, add these two tags:

1. First, copy the tag below and paste it between the head tags
(<head></head>), before the AMP JS library.

<script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-


0.1.js"></script>

2. Then, copy the tag below and paste it between the body tags
(<body></body>) of all of your AMP pages

<!-- Google tag (gtag.js) --> <amp-analytics type="gtag" data-credentials="include"> <script


type="application/json"> { "vars": { "gtag_id": "G-3J8JB30T41", "config": { "G-3J8JB30T41":
{ "groups": "default" } } }, "triggers": { } } </script> </amp-analytics>

3. 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
line below and include it in the "config" section of every instance of the
Google tag.

"AW-16781641063": { "groups": "default" }

 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" section has
this Google Ads account's conversion ID: AW-16781641063

c. Save the changes to your webpages.

2. 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.

a. Open the HTML for the conversion page.

b. Copy the snippet below and paste it into the "triggers" section of the Google tag.

"C_7XQvZtRk27Q": { "on": "visible", "vars": { "event_name": "conversion", "send_to": ["AW-


16781641063/apLzCIPwme4ZEOeKjsI-"] } }

c. Save the changes to your webpage.

Learn more about adding a conversion tracking tag to your website.

You might also like