Adding Google Ads Conversion Tracking to Your Page

Follow

Google Ads conversion tracking allows you to track any conversions that happen when a user interacts with your ad. Once you’ve created your conversion action in Google Ads, you can begin adding the tracking scripts onto your landing page(s). 

The event snippet - paired with the global site tag - should only be added to the page following the conversion action.

For example, this can be the built-in Form Confirmation Dialog or a thank-you page that displays after a visitor submits a form. 

As a general guideline, the global site tag should be added to all pages. 


Configuring Google Ads Conversion Tracking on the Form Confirmation Dialog

  1. Open the landing page you'd like to enable with Google Ads conversion tracking.
  2. Navigate to the JavaScript widget at the bottom left-hand corner of the builder.
  3. Add the global site tag script on all the pages you’d like to track back to Google Ads (start by following Google Ads' conversion tracking instructions).
  4. Once added, the global site tag will appear in the JavaScript widget as so:
    global-site-tag.png
  5. Next, add only the global site tag onto your main landing page. We'll add the event snippet later. 
  6. Click Done to save the script.

  7. Next, navigate to the Form Confirmation Dialog tab at the upper left section of the builder. 
  8. Click the Javascripts widget at the bottom left of the builder.
  9. Name your script and set the placement to Head.
  10. Paste in your global site tag script that includes the Google Ads event snippet:
    Form confirmation dialog (global site tag + event snippet):
    fcd-global-site-tag-event-snippet.png
  11. Click Done to save the script.
  12. Save and republish your page.

Or,

Configuring Google Ads Conversion Tracking on a Separate Thank-You Page

  1. Load your thank-you page in the Unbounce page builder.
  2. Click the Javascript widget at the bottom-left of the builder to add a script for this thank-you page.  
  3. Name your script and set the placement to Head. Paste in your global site tag that includes the Google Ads event snippet:
    Thank-you page (global site tag + event snippet):
    thank-you-page-ads-global-site-tag-event-snippet.png

  4. Click Done to save the script.
  5. Save and republish your page.

Working with Lightboxes

If you've set up your Unbounce form in a lightbox, be sure to add the global site tag to the Javascript widget of your Lightbox. To recap, follow these steps:

  1. Navigate to the Lightbox tab at the upper left section of the builder. 
  2. Click the Javascripts widget at the bottom left of the builder.
  3. Add the global site tag script only to your Lightbox with the form.
  4. Click Done to save the script.
  5. Proceed to add the global site tag + event snippet scripts within your Form Confirmation Dialog, or a separate Thank-you page

Ordering Your Scripts

It's generally best practice to include all your Google Ads tracking scripts either fully in the builder using the Javascript widget (variant-level scripts) or globally using the Script Manager (domain-level scripts). Attempting to install either script in different places can cause tracking discrepancies.

For example, if the global site tag is installed in Script Manager, so should the event tracking script.

Configuring Google Ads Conversion Tracking using Script Manager

Installing Google Ads Conversion Tracking into Script Manager requires two Custom Scripts: one for the global site tag, and one for the event snippet. Follow these set-up steps below: 

Step I: Installing the global site tag in Script Manager

  1. In the Unbounce app, click Settings from the left-hand side menu.
  2. From the drop-down menu, select Script Manager.
  3. Click the blue Add a Script button on the top-right hand corner.
  4. From the pop-up, select a Custom Script from the drop-down menu, and give the script a name: 
    “adding-a-script-in-script-manager”
  5. Two panels will appear; update the fields with the following values:
    • Within the Script Details tab, set the Placement to the Head.
    • The Included on value set to All.
  6. In the Javascript field, paste the global site tag script only within the dialog box:
    “global-site-tag-script-manager”
  7. Select which subdomain(s) you'd like to apply the global site tag to in the Script Usage tab.
  8. Click the Save and Publish Script button, and move onto Step II.

Step II: Installing the event snippet in Script Manager

  1. Follow steps 1-4 again to add another Custom Script in Script Manager.
  2. This time, update the fields within the two panels with the following values:
    • Within the Script Details tab, set the Placement to the Before Body End Tag.
    • The Included on value to Form Confirmation Dialog.
  3. In the Javascript field, paste the event snippet only within the dialog box:
    “event-snippet-script-manager”
  4. Select which subdomain(s) you'd like to apply the event snippet to in the Script Usage tab.
  5. Click the Save and Publish Script, and you'll be all set!

Read more about the importance of script ordering within our documentation: Does Order Matter When I'm Adding Custom Scripts to My Landing Page?

Configuring Google Ads conversion tracking on button-click

Setting up on-click conversion tracking in Unbounce requires some custom code. Please see this community article for more instructions on setting this up (if you notice some trouble viewing this link, please try in an incognito window).

Note:

  • Google Ads can take up to 24h to reflect a conversion. So if you test your page, you may have to wait up to 24 hours to confirm that the script is working correctly. The best way to confirm your Google Ads Conversion Tracking is working is to install Google's Tag Assistant browser extension.
  • Please keep in mind that due to differences in terminology and tracking methods between platforms, stats collected in different platforms may not match exactly.

Frequently Asked Questions

What if the global site tag is installed in Script Manager, and the event snippet is installed at the page-level (within the Javascript widget)? Will this work?

This can cause tracking discrepancies. Page-level scripts in the Javascript widget fire before domain-level scripts (via Script Manager). If the event snippet fires first, it won’t have anything to fire to, since the global site tag has not loaded yet. 

To remedy this, either install both the global site tag and the event snippet entirely a the page-level using the Javascript widget, or in Script Manager only.