Set upward conversion tracking for your website

Conversion tracking tin can help you lot see how effectively your advertizement clicks lead to valuable customer activity on your website, such equally purchases, sign-ups and form submissions.

This article explains how to create a conversion activeness to track client deportment on your website.

Earlier you begin

Hither's what y'all'll demand earlier you can fix website conversion tracking:

  • A website: This is where you lot'll put the conversion tracking code, called a 'tag'.
  • Ability to edit website: Either you or your spider web programmer will need to exist able to add together the tag to your website.

This article goes straight to the setup instructions. To learn more well-nigh how conversion tracking works and why to apply information technology, read Nearly conversion tracking.

Or, if you're not sure if website conversion tracking is right for y'all, you can find instructions for all the different kinds of conversion tracking hither.

Instructions

Step 1: Create a conversion action

  1. Sign into your Google Ads account.
  2. In the upper right-hand corner, click the tools icon Google Ads | tools [Icon], and under "Measurement", click Conversions.

    Note: If you are updating your conversion actions, you'll be prompted to review and update your conversion categories. Yous can read more than about the updated conversion categories.

  3. Click the plus button .
  4. Click Website.
  5. Nether the categories department, select the type of activity that you'd like to rail. There are categories available to classify actions for Sales, Leads and other activities.
  6. Adjacent to 'Conversion name', enter a proper name for the conversion that you'd like to track, such as 'newsletter sign up' or 'wedding bouquet purchase'. This will help you recognise this conversion action afterward in conversion reports.
  7. Adjacent to 'Category', select a description for your conversion action. The category allows you to segment your conversions in reports, so you lot can see like conversions together.
  8. Next to 'Value', select how to track the value of each conversion.
    • Use the same value for each conversion. Enter the amount that each conversion is worth to your business.
    • Utilise different values for each conversion. Apply this selection if, for example, y'all're tracking purchases of products with different prices. Subsequently, when you add your conversion tracking tag, you'll need to customise your tag to track transaction-specific values.
    • Don't use a value.
  9. Next to 'Count', select how to count these conversions.
    • One. This setting is best for leads, such equally a sign-up form on your website, when simply 1 conversion per ad click is probable to add value for your business organization.
    • Every. This setting is best for sales, when every conversion is likely to add value for your business.
  10. Click on Click-through conversion window. Select from the drop-down menu how long to rails conversions after an ad interaction. For Search, Shopping, and Brandish campaigns, the window can exist ane to 90 days. Learn more than almost conversion windows.
  11. Click View-through conversion window. Select from the driblet-down carte du jour how long to track view-through conversions. For Search, Shopping and Brandish campaigns, the window can be 1 to 30 days.
  12. Click Include in 'Conversions'. This setting — selected by default — lets you determine whether or not to include data for this conversion action in your 'Conversions' reporting column. If you deselect this setting, data will still be included in the "All conversions" column. You might want to deselect this setting if you use Smart Behest, and you don't want to include this particular conversion action in your bid strategy. Learn more virtually the "Include in 'Conversions'" setting.
  13. Click Create and continue.

Y'all'll now run across a screen which shows that you lot've created your conversion activeness. Follow the instructions in the adjacent section to set up your tag.

Important: If you are using conversion deportment sets to control which conversions are included at the campaign-level then make sure you add this new action to all appropriate sets otherwise those campaigns will not optimise to this action.

Stride 2: Set up your conversion tracking tag

To set up upwards website conversion tracking for the get-go time, you'll need to add two code snippets to your website: the global site tag and the event snippet.

The global site tag adds website visitors to your "All visitors" remarketing lists (if you've set remarketing) and sets new cookies on your domain, which will store information almost the ad click that brought someone to your site. Note that your Google Ads conversion tracking tag will exist able to apply this click data to aspect a conversion to your Google Ads campaigns. Delight ensure that you're providing users with clear and comprehensive information about data collection, and obtaining consent where legally required.

You must install the global site tag on every page of your website, but you need only one global site tag for each Google Ads account.

The consequence snippet tracks actions that should exist counted as conversions. Install this snippet on site pages you lot'd like to runway conversions for. Each conversion action has its own associated event snippet, whereas the global site tag is the same across all conversion deportment inside a Google Ads business relationship.

Choose from 2 ways to install your tag.

Option 1: Install the tag yourself

  1. Under "Global site tag", select the option that best describes your situation and follow the instructions for installing the tag:
    • I oasis't installed the global site tag on my website: Cull this pick if information technology'due south your first time setting up the tag for a conversion action in your account and y'all oasis't installed the global site tag from another Google product. This option shows the full global site tag. To install the tag, re-create the tag code and paste it between the <head></head> tags on every page of your website.

      Here's an example of a global site tag, where 'AW-CONVERSION_ID' stands for the conversion ID that'southward unique to your Google Ads account:

      <script async
      src='https://www.googletagmanager.com/gtag/js?id=AW-CONVERSION_ID'></script>

      <script>

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

        role gtag(){dataLayer.button(arguments);}

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

        gtag('config', 'AW-CONVERSION_ID');

      </script>

    • I installed the global site tag on my website from another Google product (e.chiliad. Google Analytics) or from another Google Ads business relationship: If this pick applies to y'all, yous won't need to add the global site tag to your website again; however, for conversion tracking to work for this account, yous'll need to add the config command (the piece of lawmaking that contains your conversion ID) to every instance of the global site tag. This option shows that command, where 'AW-CONVERSION_ID' stands for your account's conversion ID:

      gtag('config', 'AW-CONVERSION_ID');

      Add the config command to every instance of the global site tag on your website, right above the </script> end tag.

      Hither'southward an example of a global site tag that's configured for both Google Analytics and Google Ads, with the config command for the Google Ads account highlighted:

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

      </script>

      <script>

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

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

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

        gtag( 'config', 'GA_TRACKING_ID');

      gtag( 'config', 'AW-CONVERSION_ID');

      </script>

    • I already installed the global site tag on my website when I created another conversion action in this Google Ads account: If this option applies to you, you don't need to add together the global site tag again to your website. Just make sure that the global site tag appears on every folio of your site and confirm that the config command in each case of the tag contains your business relationship'southward conversion ID. You'll see your conversion ID when y'all select this option.

  2. (Optional) Modify the global site tag based on your preferences:
    • If you don't want the global site tag to add website visitors to your remarketing lists on initial folio load, add the highlighted portion below to your global site tag'due south 'config' command:
      gtag('config',' AW-CONVERSION_ID',{'send_page_view': false});

    • If you don't want the global site tag to set up first-party cookies on your site's domain, add the highlighted portion below to your global site tag's 'config' command:
      gtag('config',' AW-CONVERSION_ID',{'conversion_linker': simulated});

      Annotation

      Nosotros 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('gear up') control to your global site tag to a higher place the gtag('js') command. This volition disable the collection of remarketing data for all configured Google Ads accounts.

      <script async
      src="https://www.googletagmanager.com/gtag/js?id=AW-CONVERSION_ID"></script>

      <script>

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

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

       gtag('set up', 'allow_ad_personalization_signals', faux);

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

       gtag('config', 'AW-CONVERSION_ID');

      </script>

  3. Copy the global site tag, and then follow the instructions to add it to your website.

  4. Next to 'Result snippet', select whether to track conversions on a page load or click.
    • Page load: Count conversions when customers visit the conversion page, such every bit a confirmation page for a purchase or sign-up. This is the default and near common option. Learn more about Google'south security standards.
    • Click: Count conversions when customers click a button or link (such every bit a 'Buy Now' push button).
  5. Copy the event snippet, then follow the instructions to add it to your website, or click Download snippet to add it after.
    • If you're tracking conversions by folio load, add together the upshot snippet to the page that you're tracking.
    • If y'all're tracking conversions by click, add the event snippet to the page which has the button or link that you'd like to track for clicks.
  6. Click Next.
  7. Click Done.
  8. If yous're tracking clicks on your website as conversions, follow the instructions in Track clicks on your website equally conversions to add together an additional piece of lawmaking to the button or link that you'd like to track. This step is required for conversion tracking to work.

Choice 2: Utilize Google Tag Manager

Google Tag Manager is a tag management system that allows you to quickly and hands update tags and code snippets on your website. Y'all can use Google Tag Director to install your conversion tracking tag.

  1. Re-create the Conversion ID and Conversion label (shown in this tab) for your conversion activity.
  2. Follow the instructions to set upwards Google Ads conversion tracking in Google Tag Manager. Important: To ensure proper tracking in all browsers, make sure that you add a Conversion linker tag and configure it to fire on all of your web pages.
  3. Click Next.
  4. Click Done.
  5. If you're tracking clicks on your website as conversions, y'all'll need to complete additional setup steps in Google Tag Manager. This is required for conversion tracking to work. Cull one of the 2 options below:
  • Basic: Set up a click trigger so that the conversion tracking tag fires when the relevant click occurs.
  • Advanced: Add a function call to the code for the link, button or button image. And then, prepare a custom event trigger and then the conversion tracking tag fires when the result (in this example, a click) occurs.

Tip: Install the conversion tracking tag with Google Tag Managing director

Instead of manually adding the conversion tracking tag to your website code, yous can utilize Google Tag Manager to install the tag. Y'all'll need to provide the post-obit information:

  • Conversion ID
  • Conversion label

You'll observe this information in the issue snippet for your conversion action. In the sample snippet below, AW-CONVERSION_ID stands for the conversion ID unique to your account, while AW-CONVERSION_LABEL stands for the conversion label, which is unique per conversion activeness.

                      <!-- Event snippet for Instance conversion page --> <script>   gtag('event', 'conversion', {'send_to': 'AW-CONVERSION_ID/AW-CONVERSION_LABEL',     'value': ane.0,     'currency': 'USD'   }); </script>                    

Informing your site visitors about information collection

Every bit always, please ensure that y'all're providing users with clear and comprehensive information near the information that yous collect on your websites and getting consent for that collection where legally required.

Security and privacy for website tracking

Google'south security standards are strict. Google Ads only collects data on pages where you lot have deployed the associated tags.

Please ensure that you're providing users with clear and comprehensive information most the data that you collect on your websites, and getting consent for that drove where legally required.

Was this helpful?

How can we improve it?