Solutions keyboard_arrow_down keyboard_arrow_up
Our Solutions
Ontraport's solutions work together to give you everything you need to run your business in one centralized, easy-to-use platform.
Resources keyboard_arrow_down keyboard_arrow_up
Resources
Find free content on the latest marketing strategies, using Ontraport in your business, and finding the right software.
Visit the blog
University Pricing Chat
Want to learn more about Ontraport and grow faster?
Our next Bootcamp and Certification courses are October 14-18!
arrow_forward
Bootcamp tickets here
arrow_forward
Certification tickets here
Want to learn more about Ontraport and grow faster?
Our next Bootcamp and Certification courses are October 14-18!
arrow_forward
Bootcamp tickets here
arrow_forward
Certification tickets here
clear
Set up tracking on a non-Ontraport page
Last updated on: October 9, 2024

The Ontraport Tracking Script is a snippet of code that allows Ontraport to keep track of your visitors for you, ultimately enabling us to show you who’s visiting your site, where they came from and a lot more. To allow Ontraport to do its magic, you need to have our tracking script installed on every page of every website you run.

For Ontraport Pages

For any page built using Ontraport Pages, your script is automatically installed. Nothing to do here!

For WordPress sites

This method works for Plus accounts and above. Basic account holders can use the third method below to set up visitor tracking.

If you run a WordPress site, the easiest way to install the Ontraport script on every page is to install our plugin called PilotPress, which you can find here.

Note that this plugin can do a lot more than simply install our tracking script, but you don’t need to worry about that stuff just now. Just install it and make sure it’s enabled.

Also, if for whatever reason you don’t want to install PilotPress on your WordPress site, you can also follow the instructions below to add our script manually to your site.

For other sites that aren’t WordPress or Ontraport Pages

For this, you’ll need to add our script to each page on your site. Most site-builders have a place where you can paste this once and it’ll be added to every page automatically. You’ll typically want to place this script in the footer of each page (right before the /body tag).

You can find your tracking script here. Then click Get Tracking Code.

Related university lessons
UTM variables
Set up UTM tracking so you can see which of your marketing efforts are bringing you the most visitors, leads and sales.
Split testing deep dive
In this lesson, you’ll learn the details of the different ways to run split tests in Ontraport so you can find winning versions of your marketing efforts.
Contact tracking in Ontraport
Learn all the ways Ontraport tracks your site visitors, from first click to final purchase.
arrow_drop_down_circle
Divider Text
Related support articles
arrow_forward
UTM parameters
arrow_forward
Set up tracked links
 Pro tips
Tip #1: Some systems allow you to paste the code into a single theme, template or header file so it is auto-generated with each page. Or, if you use Google Tag Manager, you can save time by adding your tracking script to every page at once.
Tip #2: If you use the RocketLoader or RocketScript feature found in the Cloudflare plugin for WordPress, our tracking script will not work. To make it work, add data-cfasync="false" right after the opening ‹script tagin the tracking script as shown in red:
Tip #3: Your third-party web page software should be able to assist with any further details about adding custom code to their pages, if necessary.
Features
Company
Resources
Live events
Access
© Ontraport 2024
playlist_add_check
PCI DSS, Level 1
security
Privacy Shield Certified
[bot_catcher]