Analytics tracking with third-party providers

Whether you are looking to measure conversion rates, track visitor behavior, or sync data with your CRM, Instapage offers the flexibility to integrate with virtually any analytics or tracking platform. This guide will help you choose which solution suits you best.

Direct Integrations

For the most popular platforms, we offer native, code-free integrations. These allow you to link your accounts or provide a simple ID to start tracking data immediately.

Some of our most common direct integrations include:

  • Google Analytics 4 – Authenticate directly with your Google account to track the default metrics that the page received inside your GA4 account. For more details, check out the article: https://d.pr/Uuk4Y1
  • Google Tag Manager – Simply enter your GTM Container ID to deploy a powerful container for all your third-party scripts. Our article can be found here: https://d.pr/5B6126
  • Facebook Pixel – Paste your Pixel ID to optimize your ad spend and track conversions from Meta platforms. Take a look at the article here: https://d.pr/PKXZDh
  • Google Ads - You can use the Google Ads integration in order to connect your landing pages to your search ads through AdMap, as instructed here: https://d.pr/c6Lxfs, and to filter the traffic in your Instapage analytics reporting between paid and organic. For more information on the Google Ads integration, check out this article: https://d.pr/bNinla

Custom Integration Options

If we do not currently offer a direct integration for your chosen platform (such as Amplitude, Mixpanel, Hotjar, or a custom CRM), you can still easily connect it using one of the following methods.

1. Page-Level HTML/CSS

You can place the tracking script for page visits (provided by your third-party provider) on your landing page inside the HTML/CSS Head, Body, or Footer areas of your landing page.

Note that you must place any third-party tracking code in the correct sections, exactly as instructed by your code provider, but usually it will be under Settings > HTML/CSS > Head.

For example, if the code provider instructs that it must be placed before the closing </head> tag, you will then paste it inside the builder under Settings > HTML/CSS > Head, as seen below:

settings_html_css_head.gif

2. Page-Level JavaScript

If you would like to track more advanced metrics, such as button clicks or form submissions, through your own tracking system, you would usually place the tracking script inside the Settings > JavaScript area of your landing page, in the correct Head, Body, or Footer section.

3. The HTML/CSS Widget

The HTML Widget is located inside the Instapage Builder for each page. It is best used for visual tracking elements or third-party widgets that need to appear in a specific location on your page, such as a custom chat box or a trust badge.

In some instances, your tracking provider may instruct you to target a particular button, form, or other element for tracking purposes.

In cases where you need the element-ID, this can be found as explained below:

To find the ID of a form, button, or any other native element, right-click on the element, select <> Edit CSS, and your element-ID will be in the top right corner of the Inline Style Editor:

element_id.gif

NOTE: Targeting your own code pasted inside of an HTML element is more advanced, and third-party custom code could contain all sorts of elements. A starting point would be to target the ID of those elements specifically, but since the code is not designed by us, it's important to keep in mind that it may conflict with the source code of the page, and the behavior could be unpredictable. We recommend that you use a skilled developer when implementing your own third-party custom code.

4. Workspace Scripts (Global)

If you want a tracking code to apply to every page within a specific workspace, use Workspace Scripts found in your account settings. This is the most efficient way to manage "Global" tags like Google Analytics or your main GTM across multiple pages at once.

NOTE: This feature is only available for some of our subscriptions. If that is the case, you will see an upgrade prompt when attempting to access it. More information about our currently available subscriptions can be found here: https://instapage.com/plans

For more detailed information, please take a look at our article: https://d.pr/m8k7nb

5. Scripts & Privacy

When adding tracking scripts, it is important to remain compliant with global privacy regulations such as GDPR and CCPA

  • Consent Managers: If you use a Cookie Consent banner, ensure your tracking scripts are configured to fire only after a user provides consent.
  • Data Minimization: Only track the data necessary for your marketing objectives.
  • External Links: Always verify that the scripts you are pasting are from a "secure" (HTTPS) source to avoid browser security warnings for your visitors.

We do not recommend placing any other scripts in this section of the page besides JavaScript tracking ones that you need to have blocked. Any code added with <script> tags will be ignored by the cookie bar and will fire on the page regardless of the cookie bar being accepted or not. HTML code will result in errors.

To learn more about using this section of the platform, please take a look at our article: https://d.pr/Hz14VC

We only offer the ability to add custom code. We do not provide custom code assistance through the support team. In case you need help with a custom functionality or any code customization that is not provided through our Help Center articles, we have a Professional Services team that can help our Convert customers. The Convert Solution includes Professional Services as well as additional features and services that can be seen here: https://bit.ly/3CsZDqc