Share this guide

Deploy the FunnelTrack pixel

The pixel is one small snippet that loads on every page and records visits, sessions, and conversions server-side. This guide covers where it goes, how deploying with or without a custom first-party loader changes things, how to track a visitor across multiple domains, and what to allowlist if your site runs a Content Security Policy.

Install the pixel

One snippet, in the <head>, on every page. This is the whole install — everything after it is optional refinement.

Open Tracking pixel in your dashboard and copy your workspace snippet. It looks like this (your pixel ID and host will differ — always copy the exact one from your Pixel page):

<!-- FunnelTrack Pixel -->
<script>window.__ft_id="YOUR_PIXEL_ID";window.__ft_ep="https://app.funneltrack.com";window.ft=window.ft||{q:[],event:function(){this.q.push(["event",[].slice.call(arguments)])},identify:function(){this.q.push(["identify",[].slice.call(arguments)])}};</script>
<script async src="https://app.funneltrack.com/p.js"></script>
1

Paste it in the <head>, as high as possible

Put the snippet inside the <head>, above your other scripts. Loading it early means the pixel is present before a visitor can click away, and before other tags (GA4, Meta, etc.) that FunnelTrack reads from.

2

Add it to every page

The pixel must run on every page — landing pages, blog, checkout, thank-you pages, all of it. Add it to your global template or layout (the file that renders the <head> for the whole site) rather than page by page, so new pages are covered automatically.

Deploying through Google Tag Manager?
Add the snippet as a Custom HTML tag instead. See Install with Google Tag Manager below for the steps.
Never run two FunnelTrack pixels
If a FunnelTrack or legacy snippet is already on the site, remove the old one entirely before adding a new one. Two pixels double-count pageviews and conversions. Don't modify the snippet contents either — the pixel ID and loader path are specific to your workspace.

Install with Google Tag Manager

Use this instead of pasting the snippet in your site's code. One Custom HTML tag, fired on every page.

Recommended: turn on Google tag gateway
If you deploy through Google Tag Manager, we recommend enabling Google tag gateway for advertisers. It serves your Google tags (GA4, Google Ads, Tag Manager) from your own domain instead of Google's, so ad blockers and browser privacy limits drop less of your measurement. You can set it up from your Google tag settings or through a CDN like Cloudflare. See Google's setup guide.
1

Copy your pixel snippet

Open Tracking pixel in FunnelTrack and click Copy on the Pixel script card. If you use a custom tracking domain, copy the custom-loader snippet shown there instead.

Copying the pixel script from the FunnelTrack Tracking pixel page
2

Create a Custom HTML tag

In your GTM container, open Tags and click New. Click Tag Configuration, scroll to Custom, and choose Custom Tags → Custom HTML.

GTM Tags list with the New button
Choosing Custom Tags in the GTM tag type list
Choosing Custom HTML under Custom Tags
3

Paste the snippet and set the trigger

Name the tag FunnelTrack Pixel, paste the snippet into the HTML box, and set the trigger to Initialization – All Pages. Initialization fires before your other tags, so the pixel is ready for any FunnelTrack event or Identify tags. If your container doesn't have an Initialization trigger, use All Pages. Save the tag.

FunnelTrack Pixel Custom HTML tag with the Initialization - All Pages trigger
4

Publish the container

Click Submit, give the version a name like “Add FunnelTrack Pixel tag”, and click Publish. Use Preview first if you want to confirm the tag fires on page load.

Publishing the GTM container with the FunnelTrack Pixel tag

With the pixel live, send events and Identify signals from GTM or your own code:

With or without a custom loader

The snippet above loads the pixel from funneltrack.com. You can instead serve it first-party from your own subdomain. Same pixel, same events — the difference is data completeness.

Without a custom loader (default)

The pixel loads from funneltrack.com and posts to app.funneltrack.com — a third-party host. It works out of the box with zero DNS setup, which makes it the fastest way to get started. The tradeoff: privacy browsers and ad blockers (Safari ITP, Firefox ETP, Brave, uBlock, AdGuard) are more likely to block a known third-party tracking domain, and Safari caps third-party cookies at 7 days — both of which cost you measured conversions.

With a custom loader (recommended for production)

The pixel loads from a subdomain on your own domain (e.g. load.ft.yourdomain.com) and posts to ft.yourdomain.com. Because the request now looks first-party, ad-block and privacy-browser filter lists no longer match it, and cookies are set on your own domain with their full lifetime. You add two CNAME records at your DNS provider, wait for them to verify, then re-copy the snippet (it updates automatically to your hostnames).

Full walkthrough
See Set up a custom loader for the step-by-step DNS setup, and How FunnelTrack defeats ad-blockers for why it works.
Don't swap your live pixel until DNS verifies
When you enable the custom loader, the Pixel page shows the new first-party snippet right away — but your custom hostnames won't resolve until the CNAME records verify. Add the DNS records first, and keep your existing funneltrack.com pixel live on the site until the status pill flips to Active. Then replace the snippet everywhere.

Cross-domain tracking

Keep one visitor as one session when your funnel spans more than one root domain. A Pro & Scale feature.

Cookies are scoped to a single root domain. If a visitor moves from one root domain to a different root domain mid-funnel, the second site can't read the first site's session cookie — so without help it looks like two separate visitors. Cross-domain tracking fixes that: the pixel passes the session identifier along on links to your other configured domains, so the visit continues as a single session across both.

When you need it

  • You need it for separate root domains. For example a marketing site on acme.com that sends visitors to a checkout on acmepay.com, or a booking tool on a different domain. Two distinct roots, two separate cookie jars — add both.
  • You do NOT need it for subdomains. shop.acme.com, go.acme.com, and acme.com all share the same root (acme.com), so they already share cookies automatically. Adding subdomains to cross-domain tracking does nothing — leave them off.

Set it up

In Tracking pixel, open the Cross-domain tracking section, turn it on, and add each separate root domain your visitors move between (your primary domain is included automatically). Then make sure the same pixel snippet — same pixel ID — is installed on every one of those domains, including the primary domain and each marketing subdomain you want to track.

Using a custom loader across multiple roots?
Each separate root domain needs its own first-party subdomain, so add a CNAME pair for every root you track — the records in your pixel deployment doc are grouped per root. Subdomains of a root you've already set up don't need their own records.
Cross-domain tracking is a Pro & Scale feature
On the Starter plan the section shows an Upgrade to Pro to unlock prompt. Upgrade (or ask us to enable it for your account) to turn it on.

Content Security Policy (optional)

Only relevant if your site enforces a CSP. If it doesn't, skip this section — most sites don't.

A Content Security Policy tells the browser which hosts are allowed to load scripts and send network requests. If your site enforces one, it will block the pixel from loading or reporting unless you allowlist the pixel's hosts. Add the loader host to script-src and the collect host to connect-src (or to default-src if you rely on a single fallback directive).

Without a custom loader, both are app.funneltrack.com:

script-src https://app.funneltrack.com;
connect-src https://app.funneltrack.com;

With a custom loader, use your own hostnames:

script-src https://load.ft.yourdomain.com;
connect-src https://ft.yourdomain.com;
A 'self' policy is not enough
Even with a custom loader, CSP 'self' matches only the exact origin of the page — it does not cover subdomains. Allowlist the full hostnames above, or a wildcard such as *.yourdomain.com, so the first-party loader and collect subdomains are permitted.
These hosts are in your deployment doc
The Share menu on the Pixel page exports an implementation doc with your workspace's exact hosts (including the CSP directives and, if you use a custom loader, the DNS records) — handy to hand a developer.

Verify it's working

A few quick checks after you deploy.

  • Check the pixel status. Load a page on your site, then open the Pixel page. The status card shows Pixel verified with a Last activity time once FunnelTrack receives a hit from your site.
  • Page views in the Event Delivery Log (optional). Page views only show up there if you send them to a destination, by turning on Page View tracking for a platform like Meta, TikTok or Reddit. Without that, the pixel still records visits, but nothing is logged as a delivery.
  • Check the network tab. In your browser dev tools, confirm p.js loads from the expected host (funneltrack.com or your custom subdomain) and that a collect request fires on pageview. A blocked p.js usually means an ad blocker (use a custom loader) or a CSP (allowlist the hosts above).
  • Confirm there's only one. If pageviews or conversions look doubled, search your site and GTM for a second FunnelTrack snippet and remove it.

Ready to deploy?

Grab your snippet and, when you're ready, export a developer-ready implementation doc from the Share menu.

Go to your Pixel page →

Need a hand?

If anything here doesn't match what you're seeing, open a support ticket and we'll get you sorted.