Skip to main content
Tracking Clickbank Flows
Zeno avatar
Written by Zeno
Updated over a week ago

Step 1: Get your Clickbank IPN URL

Navigate to the System Links page in FunnelFlux.

At the bottom of the page you'll find the notification URL and secret key that you'll need for Clickbank's settings

Step 2: Add your IPN details to Clickbank

Head over to Clickbank and log in.

Go to settings > my site > scroll down to the advanced tools box and click edit

Paste in your secret key and FunnelFlux IPN URL then click test IPN.

Step 3: Creating a Funnel in FunnelFlux

In FunnelFlux create a funnel that mirrors the flow you have in Clickbank including any PitchPlus upsell flows.

Ensure that you use landers for pages that a conversion does not happen on, and use offers for pages that conversions do happen on -- so in general any page that has Clickbank payment links on it should be an offer.

Link these all together in the same flow as used in Clickbank and save.

Now, click advanced funnel settings. You need the universal funnel JS available here:

Take this JS and paste it in a text editor as we first need to modify it a little.

Step 4: Modify Javascript Code

In the code you should see the flux.track event and parameters which look like this:

  timeOnPage: false,
  timeOnPageResolution: 3000,
  tokenInjection: {
    intoUrl: false,
    intoForms: { selector: null },
    intoLinks: { selector: null },
    tokens: {}

We need to modify this code so that FunnelFlux injects hit IDs into the important payment links on various pages, like so:

  timeOnPage: false,
  timeOnPageResolution: 3000,
  tokenInjection: {
    intoUrl: false,
    intoForms: { selector: null },
    intoLinks: { selector: 'a.flux_payment' },
    tokens: { vtid: '{hit-id}', cbf: '[[cbf]]' }

Here we tell the JS to look for the selector of class flux_payment  on all <a> elements i.e. links, and then pass the current hit ID into this link as well as the cbf parameter that may be in the URL (cbf is important, read more here)

Note: in this new JS, tokens of the format [[something]] mean to get that from the URL

Step 5: Modify links on your pages

Lastly, we need to modify links in the the HTML of our various pages to provide the flux_payment  class so that our token injector can find them.

This applies to all payment links including the upsell accept/decline ones.

So, go through your pages and modify and payment links from:

<a href="something">Some link here</a>

to add the class:

<a class="flux_payment" href="something">Some link here</a>

Your page code will surely be a bit more complex, all you need to know is that this class has to be added to the <a> elements.

... and that's it!

Now the FunnelFlux JS code will inject hit ID automatically into links so that they get passed onward to the next page.

When users convert the IPN will tell FunnelFlux what visitor converted.

You can now send users to your pages through tracking links, or send users directly to the funnel pages since they have no-redirect JS tracking on them.

Just be sure to pass flux_fts  in the URL if you want to declare the traffic source the visitors came from, as well as any other custom tracking fields for that source.

An easy way to do this is to generate a link in FunnelFlux for your lander or traffic entrance node, copy it, then just paste the entire query string into your lander URL instead for direct linking.

E.g. if you generate a link for Facebook and it looks like this:{{placement}}&ad_id={{}}&adset_id={{}}&campaign_id={{}}&source={{site_source_name}}

Just change the base URL to give this:{{placement}}&ad_id={{}}&adset_id={{}}&campaign_id={{}}&source={{site_source_name}}

Please let us know if you encounter any issues or find incorrect tracking results when using this method - its currently in beta as we have not been able to thoroughly test it across all possible Clickbank configurations.

Did this answer your question?