Skip to content

How funnel tracking works

Funnel tracking follows a visitor from the click on an ad (or a newsletter, an affiliate link, a QR code…) through your landing pages and offers up to the sale, and tells you which traffic, which pages and which routing choices produced the revenue.

You describe the journey as a visual funnel: a small graph drawn on a canvas. A tracking link points at the funnel instead of a fixed page. Every time someone clicks it, the amabledata edge worker (running in your Cloudflare account) walks the graph, decides where that visitor should go (which lander of a split test, which offer for their country, …), records what happened and redirects the browser there. All of this takes a few milliseconds and happens before the first page loads.

  • Where: sidebar group Analytics › Visual funnels (the list of funnels and the builder) and Analytics › Traffic sources (where traffic comes from).
  • URLs: /t/<workspace>/analytics/funnels-v2, /t/<workspace>/analytics/funnels/<funnel id>/builder and /t/<workspace>/analytics/sources. All three work on the analytics site selected at the top of the analytics pages (the ?site= parameter).
  • Who uses it: media buyers and marketers who build and test funnels (analytics:configure), and anyone who reads analytics (analytics:read) to look at funnels, links and heatmaps.
Concept What it is
Funnel A named graph of nodes and connections that belongs to one analytics site. It is either Active or Archived. Its id looks like fg_….
Version Every save creates a new version (1, 2, 3…). The newest version is the one that routes traffic; older versions are kept so that past data still points at existing nodes.
Node One step of the graph. Some nodes are shown to the visitor (a Page group with your landers or offers, an External URL); the others are decided on the server without the visitor seeing anything (Traffic, Rotator, Condition, Action proxy, Tag, Webhook). See Node types.
Connection (edge) An arrow from one node to another, with a type that says when it is taken: a Weight (traffic split), a Route (a condition rule), an Action number (a click on a page) or Default (the fallback).
Traffic source Where the clicks come from (Meta Ads, Google Ads, TikTok Ads, a newsletter…), with the URL parameters to capture and the cost of a click. Its id looks like ts_…. See Traffic sources.
Tracking link A URL built from a funnel id and a traffic source id. Entrance links start a visit, action links move the visitor from a page to the next step, postback links report conversions. See Tracking links.
Touch One immutable line of the click log: an entrance, a view of a page, a click on an action link or an action (an action link used without a known session). Every touch has a hit id, used to report the conversion of that hit.
Conversion A sale, a lead or a numbered custom event reported for a hit, with revenue, status and order id.

A tracking link is never stored anywhere: it is derived from the funnel id and the traffic source id (plus, optionally, an entry node and a page). Because of that:

  • Editing a funnel never breaks a link. Change weights, add or pause pages, rewrite conditions, insert a rotator: every link already running in your ads keeps working and immediately follows the newest saved version.
  • Nothing is ever removed. Funnels and traffic sources are archived, never deleted. Nodes are soft-deleted (they disappear from the canvas and are skipped by the router, but stay in the data so old reports stay readable). Every saved version is kept.
  • Archived funnels keep routing. Archiving only hides a funnel from the list; its links keep resolving. The builder says so: “This funnel is archived: its links keep working, it is hidden from the list.”
  • Archived traffic sources keep capturing. The toast says “Source archived (its fields keep being captured)”: links built for an archived source still work.
  • Every decision has a fallback. The graph cannot be saved unless every decision node has a way out (a Default connection), so the router always finds a destination.

You can therefore regenerate the links of a funnel at any time: you always get the same URLs.

  • Funnel visitor. The edge gives every person who clicks a tracking link a visitor id. It travels in the vid URL parameter appended to every page the funnel opens, and in a first-party cookie named amb_fvid (HTTP-only, SameSite=Lax, 30 days). On a custom tracking domain the cookie is set for the whole host; on the default tracking domain each site gets its own cookie path, so two sites never share visitors. A returning visitor (same vid or same cookie) keeps the same id.
  • Funnel session. For each visitor and funnel the edge remembers where the visitor is (the page node and page they were sent to), the past choices of rotators (for sticky and anti-affinity splits) and the tracking fields captured at the entrance (campaign, click id, custom fields). Later clicks of the same visit reuse them, so an action link on page 3 is still credited to the campaign of the ad. Sessions expire 90 days after their last update.
  • Visitor tags. Tags added by a Tag node belong to the visitor and are read by Condition nodes, in this funnel and in the others of the site.
  • Visits. Each arrival on a node counts as a visit: an entrance, or a view of the page the visitor was sent to. The same visitor coming back three times makes three visits. The heatmap counts visits, not unique visitors (see Funnel heatmap).
  • Joining the tracker. When a funnel page also runs the amabledata tracker (see Install the tracker), the tracker reads the vid of the landing URL and the edge links the tracker visitor to the funnel visitor. Forms filled, goals and payments recorded on the page then join the same person’s click log, which is what Journeys and attribution models use.
  1. The visitor clicks the ad. The ad points at an entrance link such as https://track.example.com/go/fg_abc-ts_def?campaign=123&adset=456.

  2. The edge identifies the site. On a custom tracking domain the hostname tells which site the link belongs to (see Tracking domains); on the default tracking domain the site id is in the path (/s/<site id>/go/…). An unknown host, funnel or source answers 404 Not found.

  3. The visitor is recognised or created. The edge reuses the vid of the URL, else the amb_fvid cookie, else creates a new visitor id.

  4. The URL parameters are split. The parameters configured as tracking fields of the traffic source (campaign, click id, custom fields) are captured and will be stored on every touch of the visit. All the other parameters go into the visit’s data buffer: they can be forwarded to the next pages with tokens but are never stored. See Data buffer and tokens.

  5. The router walks the graph. Starting from the Traffic node (or from the entry node named in the link), it follows connections through rotators, conditions, tags, webhooks and action proxies until it reaches a page (a Page group chooses one of its pages) or an External URL. It never loops more than 64 steps.

  6. The visit is recorded. Unless the request comes from a bot, the edge writes an entrance touch (with the click cost) and a view touch of the destination page, updates the funnel session and the visitor tags, and fires the webhooks of the path in the background (they never delay the visitor).

  7. The browser is redirected. The edge answers 302 to the destination with vid (and, for pages, the page node n) appended and the data parameters resolved, and sets the visitor cookie. Responses are never cached. If the graph offers no destination (for example every page of a group is paused and there is no default exit), the edge answers 502 Funnel unavailable instead.

  8. The visitor clicks a call to action. A button on the page points at an action link, /a/1, /a/2… The edge finds which page the visitor was on, follows the connection of that action number, records a click touch on the page and a view of the next page, and redirects again.

  9. The sale is reported. Your shop, checkout or affiliate network calls the postback URL /pb?hit=…&rev=49.90&tx=ORDER-1 server to server. The conversion is written once per hit, event and order id, credited to the journey, and (if the source is configured for it) queued to be sent back to the ad platform. See Outbound conversions.

Bots and crawlers recognised by the edge are redirected like everyone else but leave no touches, fire no webhooks and change no tags.

Some ad platforms do not allow a redirect as the ad destination. For those, the ad points straight at your page with a short suffix (?f=<funnel>&ts=<source>&n=<node>…). The page must run the tracker: when it reports the pageview, the edge records the entrance and the view itself. From there on, action links work exactly as above. See Tracking links.

Funnels, versions, traffic sources, sessions, tags, touches and conversions are stored in the analytics database of the site, inside your own Cloudflare account. Touches of anonymous visitors are kept for 90 days; once a visitor is identified (an email or phone key, or a CRM contact), their touches are kept. Attribution is computed when a report is read, so a later identification or visitor merge updates past reports.

  1. Make sure the site exists in Analytics (see Sites) and, ideally, has a tracking domain of your own.

  2. Open Analytics › Traffic sources, click New source, pick the template of your ad platform (or Custom) and click Create source. See Traffic sources.

  3. Open Analytics › Visual funnels, click New funnel, type a name and click Create and open.

  4. In the builder, add your pages, rotators and conditions, connect them and click Save. See Funnel builder.

  5. Click Links, choose the traffic source and copy the Entrance link (redirect) into your ad. Put the action links behind the buttons of your pages and paste the Universal JavaScript on every page of the funnel.

  6. Configure your shop or network to call the postback URL on every sale. See Tracking links.

  7. Turn on the Heatmap of the builder to see visits, flow, conversion rate and ROI on each node. See Funnel heatmap.

Kind Written when
entrance An entrance link is opened, or a direct-link landing is reported by the tracker. Carries the cost of the click.
view The visitor is sent to a page (after an entrance or an action). Its hit id is the {hit} token passed to that page.
click An action link is clicked on a page of a known funnel session.
action An action link is used by a visitor without any known session (its fallback form carries the funnel and page node).

These parameters belong to the tracking links and can never be used as tracking fields or data parameters: vid, n, c, ts, f, p, hit, rev, tx, rn.

Item Limit
Nodes per funnel 1 to 200
Connections per funnel 500
Funnel name 1 to 200 characters
Node and connection ids Letters, digits, _ and -, up to 40 characters (assigned automatically by the builder)
Action numbers 1 to 255
Routing steps per click 64
Permission Allows Roles
analytics:read Open Visual funnels, the builder (read only in practice: saving is refused), Traffic sources, the link builder and the heatmap Owner, admin, marketer, analyst, viewer
analytics:configure Create, save, duplicate, archive and restore funnels; create, edit, archive and restore traffic sources Owner, admin, marketer

The sales role has no access to these screens. See Roles and permissions.

Funnel creation, saves, archiving and restoring are written to the audit log (analytics.funnel_graph_created, analytics.funnel_graph_saved, analytics.funnel_graph_archived, analytics.funnel_graph_restored), as are traffic source changes (analytics.traffic_source_created, analytics.traffic_source_updated).

Symptom Cause Fix
The link answers Not found Wrong host, funnel id or traffic source id, or a link copied without the /s/<site id> part on the default tracking domain Regenerate the link from Links in the builder; check that the tracking domain is active
The link answers Funnel unavailable The router found no destination: every page of a group is paused (or an AmableCRM page is unpublished) and the group has no default exit, or an action has no connection and no default Unpause a page or publish it, or add a Default connection
Clicks are counted but sales are not The shop or network does not call the postback, or calls it without hit or vid Pass {hit} to the offer page and send it back in /pb?hit=…
Later pages lose the campaign The page was opened without vid (for example a bookmark) and the browser blocks the cookie Keep vid in the links between your pages, use action links, and install the tracker on every page