Integrating your Ontraport account with Google Analytics is a great way to collect and analyze your purchase activity data. Once set up, you’ll be able to see which Google Ads are converting and gain useful sales insights such as your average order value and the length of your sales cycle.

There are three ways to integrate your Ontraport account with Google Analytics:

Basic setup: Choose this option if you’re using a Basic level account and/or you’d like to add a Google tracking script to your Ontraport page.

Intermediate setup: Choose this option if you’re using a Plus level account and/or you’d like to set up an intermediate integration that sends your contacts’ sales data to Google Analytics when they purchase.

Advanced setup: Choose this option if you have a Pro or Enterprise level account and/or you’d like to set up a more robust integration that sends contact data to Google Analytics based on mid and deep funnel conversion data.

Table of contents

Basic setup
Intermediate setup
Deep funnel conversion tracking with Google Analytics


Basic setup

The basic setup allows you to add the Google Analytics tracking code to your pages so you can collect information about your web traffic. From your Google Analytics account, you can see the number of visitors to your page, where your traffic is coming from, what device your visitors are using and more.

Get your Google tracking code

  • Find your Tracking ID and global site tag by following the steps in this article.
  • Copy your tracking code. You will need this in step 3 below.

Add your Google tracking to your Ontraport page

  • In your Ontraport account, select the page you’d like to update with Google tracking.
  • Click Custom Code.
  • Paste the tracking code you copied from Google.
  • Click .
  • Click  →  to update your page.

Note, to make sure your code is working, check out the “Verify that your global site tag is working” section in this article.

Intermediate setup

This intermediate setup tracks your sales and sends your information to Google Analytics. To do this, you’ll create a property in Google Analytics, edit your order form’s settings and add a script to your thank you page.

Google Analytics Ecommerce Tracking is available to users with Ontraport Plus accounts and above.

Create a property

A property is a website or mobile app that is associated with a unique tracking ID. To create a new one:

  • Follow these steps provided by Google to create a Universal Analytics property.
    1. In step 6 of Google’s instructions, be sure to follow the steps to “Create a Universal Analytics property only” so you generate a “UA-” tracking ID.
    2. Create a Universal Analytics property only example

    3. Make sure the currency you select matches your Ontraport account’s settings.
    4. Currency setting example

  • Once you’ve created your property, go to your property settings and copy your tracking ID — you’ll use this when you set up your thank you page.
  • Tracking ID example

Set up your Ontraport order forms

  • In your Ontraport account, select an order form.
    1. You can choose an Ontraport page or a stand alone Ontraform.
  • Go to your form settings, and scroll down to the “Advanced” section.
  • Advanced form settings example

  • Click the checkbox “Send Google Ecommerce Tracking parameters to landing/thank you page.” Click save.
    1. Every form submission after making this change will send Google’s ecommerce tracking parameters to the thank you page. You won’t have to re-embed the form on your webpage.

Set up your thank you page

  • Get the Ontraport sample script from GitHub by copying the “minified version” to a text file.
  • Add your Google Analytics ID number (from step 1) and your currency code to the sample script.
    1. Locate googleAnalyticsId = “UA-123456789-1” and replace the numbers inside the quotes with your own.
    2. Locate googleAnalyticsCurrency = “USD” and replace “USD” with your own currency code if it’s different.
  • In Ontraport, go to Pages and select the page that corresponds with your order form.
  • Click SettingsCustom Code.
  • Copy and paste your edited Ontraport sample script into the Custom Header Code box then click done.
  • Header code example

  • Save and publish your thank you page.
  • Wait 24 hours for the data to populate into Google Analytics, then test the script.
    1. You can test your script by filling out your order form yourself. Then check your Google Analytics account for your information.

Deep funnel conversion tracking with Google Analytics

This feature is for advanced marketers with Pro or Enterprise level accounts, and it allows you to set up an advanced Google tracking integration. You can check out our webinar with Three Ventures to see how it all works.

This advanced integration allows you to bridge the gap between the data collected about your anonymous leads tracked by Google and your identified leads tracked by Ontraport, so you can see if your ads are driving traffic that actually purchases from you. When you can see your mid and deep funnel conversions from Ontraport in Google, you can focus your marketing budget on ads that are driving sales — not just clicks or opt-ins.

To get started, you need to enable advanced Google tracking fields in your account, download and publish a prebuilt automation map to send your data to Google, and set up your Google Analytics account to use that data.

Enable advanced Google tracking fields

This feature will allow you to capture the Google Analytics Client ID and GCLID parameters when your forms are submitted, and store that data in two new fields: “GA Client ID” and “GCLID.” As soon as you toggle this feature on, your new fields will be created and automatically added to all of your Ontraforms and forms on Ontraport Pages.

  • Go to profile iconAdministrationAdvanced Settings.
  • Toggle Deep Funnel Conversion Tracking on.

Download your prebuilt automation map

This prebuilt automation map uses webhooks to send your mid and deep funnel conversion data back to Google.

  • Click here to download your map.
  • Follow the automation checklist to customize it.
  • Publish your automation.

Set up Google Analytics

You need to set up Google Analytics to capture and display your data correctly. Our support team is not trained in Google Analytics and cannot set up or provide guidance to set up your Google Analytics account. You can follow the instructional video below to set it up yourself, or hire an expert to do it for you.

How to set up your Google Analytics