Add a Google tag to your website

Note: The global site tag (gtag.js) is now the Google tag. With this change, new and existing gtag.js installations will get new capabilities to help you do more, improve data quality, and adopt new features – all without additional code. Learn more About the Google tag.

When you create a conversion action in your Google Ads account, you’ll get a Google tag to add to your website. This tag tracks when someone who’s clicked your ad goes to your website and completes an action that you’ve defined as valuable, such as a purchase or sign-up.

This article explains how to add the tag to your website. Before you begin, make sure you’ve first followed the instructions to set up conversion tracking for your website.

These instructions are just for conversions that happen on your website. Learn more about different ways to track conversions.

There are 2 ways to set up conversion tracking:

Create a conversion action Set up your Google tag
An animated GIF demonstrating how to create a new conversion action for your website. An animation demonstrating the Tag ID and Destination ID on Google tag.

Before you begin

Before you can add a conversion tracking tag to your website, you'll need to do the following:

  • Create a conversion action in your Google Ads account. To create a conversion action and get your conversion tag, follow the instructions in set up conversion tracking for your website.
  • Have the ability to edit your website. Either you or your web developer will need to be able to add the tag to your website code.
  • Identify a conversion page on your website. The instructions in this article are for tracking when someone reaches a new page on your website after completing a conversion. For example, this can be a "Thank you for your order" page that a customer sees after making a purchase. If you want to track when someone clicks a link or button instead, follow the instructions to track clicks on your website as conversions.

Instructions

Related links

Was this helpful?

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