Skip to content

Tracking opt-in forms with FunnelFlux

This page covers opt-in forms from any email or CRM tool, such as ActiveCampaign, GetResponse, Mailchimp or a form you build yourself.

You can do three things with FunnelFlux:

  1. Count each opt-in as a conversion.
  2. Store the FunnelFlux visitor, session and hit IDs on the new contact.
  3. Pass the lead’s name and other data to a thank-you page in the same funnel.

Add the opt-in page to your funnel as an offer with a $0 payout.

Then mark the action that leaves the opt-in page as a conversion. Right-click that connection in the funnel editor and tick Is conversion:

Connection right-click menu with Action # 1 and Is conversion ticked

Every visitor who submits the form and moves on through that action is recorded as a conversion. You do not need a pixel, iframe or conversion script on the thank-you page.

Saving FunnelFlux IDs with each contact lets you use them later:

  • The visitor ID ({visitor-id}) links revenue from later funnels back to the same person.
  • The session ID ({session-id}) continues the visitor’s journey from an email link, for example &flux_sess=... on a link to your next page.
  • The hit ID ({hit-id}) of an offer node is the ID used to trigger a conversion for that offer.

In your email tool, create custom fields for the IDs you want to keep and add them to the form as hidden fields.

Note the name attribute each hidden field gets in the form’s HTML. Some tools use readable names; others use names like field[17].

In the funnel editor, right-click the lander or offer node that holds the form, choose Send Traffic Here, turn on Use direct tracking and copy the Universal tracking script.

Funnel URL window with Use direct tracking on, showing the Direct page URL and the Universal tracking script

Paste the script into the page with the form.

At the bottom of the script, the fflux.track() call has a tokenInjection section. Set intoForms.selector to a CSS selector for your form and list the values you want in tokens:

fflux.track({
timeOnPage: false,
timeOnPageResolution: 3000,
noCookies: true,
tokenInjection: {
intoUrl: false,
intoForms: { selector: '#optin-form' },
intoLinks: { selector: null },
tokens: {
'field[17]': '{hit-id}',
'field[18]': '{session-id}',
'field[20]': '{visitor-id}',
},
},
});

Each key in tokens is the name of a form field. When tracking finishes, the script fills each input in the matching form whose name equals a key. If the form has no input with that name, the script adds a hidden input with it.

Use a selector that matches only the opt-in form. When a selector matches several forms, a field that already exists in the first form is not filled in the others.

When the visitor submits the form, the IDs are saved with the contact. Your email tool’s merge tags can then put them into later emails and links.

To tag contacts as converted when a later sale happens, see Syncing conversion data with email systems.

Most email tools can redirect to your own thank-you page after an opt-in and add the submitted fields, such as name and email, to that URL. The setting is usually in the form’s settings and is often off by default.

1. Send the form to the funnel’s action URL

Section titled “1. Send the form to the funnel’s action URL”

Set the form’s redirect or thank-you URL to the action URL from the opt-in page to the thank-you page. That keeps the visitor in the funnel and records the action.

Open Links > System Links and copy the Action click URL. Replace ACTION-NUMBER with the action number on the connection from the opt-in page to the thank-you page.

If the email tool redirects from its own domain, FunnelFlux may not already know the visitor. Append &flux_f= with the Funnel ID from Funnel settings and &flux_ffn= with the opt-in page node’s ID. Right-click that node, choose Send Traffic Here, and copy the number at the start of 3. Node.

Action click URL card on the System Links page

2. Forward the lead data to the thank-you page

Section titled “2. Forward the lead data to the thank-you page”

The email tool adds the lead data to the action URL. To pass it on to the thank-you page, right-click the thank-you page node, choose Advanced Settings and turn on Pass accumulated URL parameters:

Advanced funnel settings window for a lander node with Pass accumulated URL parameters switched on and the URL tokens section

The thank-you page now receives the fields in its URL. Read them with PHP or JavaScript to greet the lead by name or prefill another form.