Skip to main content
External Tracking lets you add analytics scripts, advertising pixels, and other third-party tracking code to your funnels, websites, and landing pages built in the HoopAI Platform — without editing page code manually.

Accessing external tracking

Go to Settings in the left sidebar, then select External Tracking.

What you can add

External Tracking supports any script-based tracking tool, including:
  • Google Analytics (GA4) — website traffic and conversion tracking
  • Google Tag Manager (GTM) — a tag management container for deploying multiple scripts
  • Facebook Pixel — ad conversion tracking and audience building for Facebook/Meta campaigns
  • TikTok Pixel — conversion tracking for TikTok advertising
  • Hotjar — session recording and heatmaps
  • Custom scripts — any JavaScript-based tracking or analytics tool

Adding a tracking script

1

Open external tracking settings

Navigate to Settings → External Tracking.
2

Click add new code

Click Add New Code or the + button.
3

Name your script

Give the tracking script a descriptive name (e.g. “Facebook Pixel”, “GA4”, “Hotjar”).
4

Paste the script

Paste your tracking script code into the script field.
5

Choose placement

Select where the script should be injected:
  • Head — loads before page content; recommended for most tracking scripts
  • Body (top) — loads at the start of the page body
  • Body (bottom) — loads at the end of the page body; useful for scripts that shouldn’t block rendering
6

Select scope

Choose whether to apply the script globally (all pages) or only to specific funnels or websites.
7

Save

Click Save. The script will be injected into the selected pages immediately.

Google Analytics setup

To connect Google Analytics 4 (GA4):
  1. In your GA4 property, go to Admin → Data Streams → Web and copy your Measurement ID (format: G-XXXXXXXXXX)
  2. In External Tracking, click Add New Code
  3. Paste the GA4 gtag.js snippet with your Measurement ID
  4. Set placement to Head and scope to All Pages
  5. Save

Facebook Pixel setup

  1. In your Meta Business Manager, go to Events Manager and copy your Pixel ID
  2. In External Tracking, click Add New Code
  3. Paste the Facebook Pixel base code with your Pixel ID
  4. Set placement to Head and scope to All Pages (or specific funnels running Meta ads)
  5. Save

Using Google Tag Manager

If you use GTM to manage multiple tracking scripts:
  1. Copy your GTM container snippet from Google Tag Manager
  2. Add it in External Tracking with Head placement
  3. Manage all individual pixels and scripts through GTM rather than adding them individually here
Using Google Tag Manager as a single container script is cleaner than adding multiple individual scripts, especially if you have several tracking tools. Manage all pixels from GTM instead of duplicating entries here.
Last modified on March 4, 2026