Install your Google tag manually

Choose this option if it’s your first time setting up the tag for a conversion action in your account and you haven’t installed the Google tag. To install the tag, copy and paste it in the code of every page of your website, immediately after the <head> element. Don’t add more than one Google tag to each page.

(TAG-ID) into the appropriate setting from your provider.

An animation that demonstrates how to install the Google site tag for conversion tracking in Google Ads.

Here’s an example of a Google tag, where “TAG_ID” stands for the tag ID that’s unique to your Google Ads account:

<script async
src="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>

  1. (Optional) Modify the Google tag based on your preferences:
    • If you don’t want the Google tag to add website visitors to your remarketing lists on initial page load, add the highlighted portion below to your Google tag’s 'config' command:

gtag('config',' TAG_ID',{'send_page_view': false});

  • If you don’t want the Google tag to set first-party cookies on your site’s domain, add the highlighted portion below to your Google tag’s 'config' command:

gtag('config',' TAG_ID',{'conversion_linker': false});

Note: We don’t recommend doing this as it will lead to less accurate conversion measurement.

If you want to disable the collection of remarketing data, add the highlighted gtag('set') command to your Google tag above the gtag('js') command. This will disable the collection of remarketing data for all configured Google Ads accounts.

<script async

src="https://www.googletagmanager.com/gtag/js?id=TAG_ID"></script>

<script>

window.dataLayer = window.dataLayer || [];

function gtag(){dataLayer.push(arguments);}

gtag('set', 'allow_ad_personalization_signals', false);

gtag('js', new Date());

gtag('config', 'TAG_ID');

</script>

  1. Copy the Google tag, then add it to your website.
  2. Open the HTML for the page your customers reach on your website after they've completed a conversion—the "Thank you for your order" page, for example. This is called the conversion page.
  3. Between the head tags (<head></head>) of the page, paste your global site tag, then, any event snippets that apply to the page.
  4. Save the changes to your webpage.
  5. Click Done.
  6. Click Install event tag.
  7. Next to "Event snippet", select whether to track conversions on a page load or click.
    • Page load: Count conversions when customers visit the conversion page, such as a confirmation page for a purchase or sign-up. This is the default and most common option. Learn more about Google's security standards
    • Click: Count conversions when customers click a button or link (such as a "Buy Now" button).
  8. Copy the event snippet, then follow the instructions to add it to your website, or click Download snippet to add it later.
    • If you're tracking conversions by page load, add the event snippet to the page you're tracking.
    • If you’re tracking conversions by click, add the event snippet to the page that has the button or link you’d like to track for clicks.
  9. Click Next.
  10. Click Done.
  11. Click Finish. If you’re tracking clicks on your website as conversions, follow the instructions in Track clicks on your website as conversions to add an additional piece of code to the button or link you’d like to track. This step is required for conversion tracking to work.

Note: As a best practice, don’t add more than one instance of your Google tag to each page of your website. Once you’ve set up your tag, you need to configure your Google tag settings

Next: Troubleshoot your conversion tracking status

Was this helpful?

How can we improve it?
true
Search
Clear search
Close search
Main menu
6837264233374392721
true
Search Help Center
true
true
true
true
true
73067
false
false
false