Using cookieless tracking
Tracking without cookies helps in a few cases:
- Traffic from the Facebook mobile browser or iOS. Third-party cookie blocking can make clickthroughs show up as organic traffic.
- You change domains between the tracker and action links. That is not advised. You still need tracking to continue.
- The visitor’s browser is blocking cookies.
- You want to track without setting cookies, including where GDPR cookie consent is a concern.
Common causes of blocked cookies:
- The Facebook mobile browser blocks third-party cookies by default.
- Browsers let people block third-party cookies as the default.
- Privacy plugins block cookies, and tracker cookies are almost always third-party.
Why cookies fail
Section titled “Why cookies fail”Cookies are tied to a domain.
If the redirect link uses domain.com, the action links on the page have to use domain.com as well.
A different domain cannot read that cookie.
The visitor gets a new visitor ID, and earlier activity is disconnected.
Without organic parameters on the link, the click goes to the Default Home Page URL from System Settings, or returns a 404 if that is empty.
Keep the domain the same.
You can put the {flux-domain} token in landing page URLs if the link domain should follow the tracker domain.
If the browser blocks cookies, including third-party cookies, the cookie method cannot recover the visit. Pass the session ID or hit ID on the link instead, as this page and Create smooth tracking using session ID describe.
Organic parameters on action links
Section titled “Organic parameters on action links”Organic parameters (flux_f and flux_ffn on the action link) are a fallback.
If FunnelFlux already knows where the visitor is, it ignores them.
It uses them only when it cannot identify the visitor, which is what happens when cookies are blocked.
They turn a 404 into a useful redirect.
They do not restore the visitor’s earlier history.
How to implement it
Section titled “How to implement it”This uses FunnelFlux no-redirect JavaScript. It works with the session ID tracking in Create smooth tracking using session ID.
Put the usual FunnelFlux Universal tracking script on your page.
Near the end of the code, set noCookies to true:
fflux.track({ timeOnPage: false, timeOnPageResolution: 3000, noCookies: true, tokenInjection: { intoUrl: false, intoForms: { selector: null }, intoLinks: { selector: null }, tokens: {} }});This does two things:
- The JavaScript no longer sets a cookie when it runs, so you do not need to ask for consent under GDPR.
- The JavaScript appends
flux_sess=THE_IDto the URL of the current page. It turns onintoUrlfor that parameter only.
Use your CTA action links on the page as usual.
When an action link loads, FunnelFlux checks several places to identify the user:
- Cookies
flux_sessappended to the link or URL being loadedflux_sessin the referrer
In this setup it finds flux_sess=something in the referrer, identifies the user, and knows where to send them next.
That happens without cookies.
Because this uses the referrer, do not set rel=noreferrer on those links.
That attribute blocks the referrer and breaks this method.
Pass the session ID on the link instead of the referrer
Section titled “Pass the session ID on the link instead of the referrer”If you do not want flux_sess=xxx in the browser URL, append the session ID to your action links, and any other links, with intoLinks:
fflux.track({ timeOnPage: false, timeOnPageResolution: 3000, noCookies: true, tokenInjection: { intoUrl: false, intoForms: { selector: null }, intoLinks: { selector: 'a.something' }, tokens: { flux_sess: '{session-id}' } }});If intoLinks has a selector and tokens includes flux_sess: '{session-id}', FunnelFlux treats that as a choice not to put the session ID in the page URL, and leaves it off.
noCookies: true turns on intoUrl unless you have already set the session ID to be appended by intoLinks.
You can still turn intoUrl on.
The referrer is unlikely to help if the URLs being loaded already receive the session ID directly.

