Add a conversion tracking tag to your website

When you create a conversion action in your Google Ads account, you’ll get a conversion tracking 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.

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 conversion tag
An animated gif that depicts an example of a conversion action. An animated gif that demonstrates how to set up a conversion tag in Google Ads.

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

Set up conversion tracking using the global site tag

  1. 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.
  2. Between the head tags (<head></head>) of the page, paste your conversion tracking code: first, your global site tag, then, any event snippets that apply to the page (If you haven't already, follow these instructions to create your tag.)
    An animated gif that demonstrates how to install the site tag for conversion tracking in Google Ads.
  3. Save the changes to your webpage.

Here's the HTML for a very simple webpage:

		<html>
		<head>
		<title>Sample HTML File</title>
		Paste your global site tag here.
                Paste your event snippet(s) here.
                </head>
		<body>
		</body>
		</html>
	

Here's the same webpage after the conversion tracking tag has been added (sample only—this code won't work on your website):

  <html>
  <head>
  <title>Sample HTML File</title>

  <!-- Global site tag (gtag.js) - Google Ads: 123456789 -->
  <script async src="https://www.googletagmanager.com/gtag/js?id=AW-123456789"></script>
  <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());
      gtag('config', 'AW-123456789');
  </script>

  <!-- Event snippet for Example conversion page -->
    <script>
      gtag('event', 'conversion', {'send_to': 'AW-123456789/AbC-D_efG-h12_34-567',
        'value': 1.0,
        'currency': 'USD'
      });
    </script>

  </head>
  <body></body>
  </html>
    

Keep in mind: Transaction-specific values

If you chose "Use different values for each conversion" when you set up conversion tracking for your website, you'll need to follow these instructions to edit your tag to track transaction-specific values.

Check your conversion tracking tag

If you want to make sure that your conversion tracking tag is installed and tracking conversions correctly, or you think that there may be a problem with the tag:

Use the following instructions to check your conversion tracking tag.

  1. Sign in to your Google Ads account.
  2. Click the tools icon Tools and setting menu icon [Gear] in the top right-hand corner of your account.
  3. Under 'Measurement', click Conversions.
  4. In the conversion actions table, find the conversion action that you want to check in the 'Name' column, then look at the 'Status' column in that same row.

Learn more about setting up conversion tracking tag

Related links

Was this helpful?
How can we improve it?

Need more help?

Sign in for additional support options to quickly solve your issue

Search
Clear search
Close search
Google apps
Main menu
Search Help Center
true
73067
true
false