ClickFunnels (guide for Advertisers)
What’s ClickFunnels?
ClickFunnels is an online tool for building high-converting websites and sales funnels.
The guide below is meant for Advertisers.
How to integrate ClickFunnels with RedTrack?
ClickFunnels is integrated with RedTrack via webhooks. To set up the integration follow the steps below:
1. Connect your RedTrack account with the ClickFunnels account
Expand to see how to connect RT and ClickFunnels accounts1.1 go to your RedTrack account-> Tools-> Integrations-> Brands:
1.2 scroll down to the section Clickfunnels url webhook-> copy your webhook:
1.3 go to your ClickFunnels account-> navigate to the tab Click Funnels-> Funnels:
1.4 choose the funnel where you need to place the webhook:
1.5 press Settings-> scroll down to the part Webhooks and press Manage You Funnel Webhooks:
1.6 press New Webhook:
1.7 fill in the form with the needed values and press Create Funnel Webhook:
Values to be added:
(1) URL = Redtrack webhook URL (copied within step 1.2 of this guide)
(2) Event = contact_created, purchase_created, purchase_updated
(3) Version = 1
(4) Adapter = attributes
Important!
If you are creating a webhook for the first time in СlickFunnels, there may be an error. In case it pops up, do the following:
1) Create a test webhook URL = your domain. Move it to the archive.
2) After that, create a webhook for RedTrack.
For more information on how to troubleshoot this error, please click here.
2. Add {clickid} value to ClickFunnels
Expand to see how to add {clickid}2.1 in your ClickFunnels account go to ClickFunnels tab-> Funnels:
2.2 choose the needed funnel-> click on the Edit page button on the preview of the sales page you want to edit:
2.3 once you’re in, navigate to the tab Elements-> Add element-> Form-> drag the Input element to the needed place on the form:
2.4 press Settings to edit the added element:
2.5 fill in the following fields in the Settings window and save the changes:
Values to be inserted:
(1) Input Type = Custom Type
(2) Custom Type = rtclickid
(3) Placeholder text = {clickid}
(4) Required = Not Required
(5) press the “Hide” icon
3. Add your Brand and Website to RedTrack
See how to add a Brand and Website to RTFollow our guide Adding Brand and Website for more details.
4. Add the needed Traffic channel to RedTrack.
5. Add a custom tracking domain.
Useful!
Check out the video tutorial as well: Adding a custom tracking domain.
6. Create a Campaign in RedTrack
Expand for guidance on the Campaign creation in RTOnce you’ve added your Website within step 3 a default Campaign for the unattributed traffic was automatically created for you. Your next step is to consider the following tracking scenarios:
Scenario 1: If you only need unattributed (aka organic) traffic, then this Campaign is enough for you and you don’t have to create any more Campaigns manually.
Scenario 2: If in addition to the unattributed traffic you also use several paid Traffic channels (like Facebook or Google or something else) you’ll need to add these Traffic channels first and then create a Campaign for each added channel. Thus you will have 1 Campaign for the unattributed traffic (created automatically within step 3) and another (or more in case of several Traffic channels) for the paid traffic. Use this guide to see how to create a Campaign in RT.
Tip for Scenario 2:
Your online shop will act as an Offer in most cases, so your Campaigns will have only this Offer in the Funnel.
7. Add universal tracking script to GTM
Expand to see how to work with GTMImportant preliminary steps!
1. Follow this guide on how to integrate Google Tag Manager (GTM) with RedTrack and the steps below on ClickFunnels-related insights.
2. Universal tracking script was created for you automatically once you’ve added your Website (within step 3). To find it you should go to Tools-> Scripts:
7.1 create a 1st party cookie variable: rtkclickid-store
7.2 create 2 types of Tags:
Essential elements:
- Tag = Custom HTML
- Triggering = All Elements (All Clicks)
Script:
<script type='text/javascript'>
function setFormClickIdValue(clickid) {
document.querySelectorAll('input').forEach(function(el) {
if (el.placeholder.indexOf('{clickid}')>-1) {
el.value = clickid
}
});
}
function getCookie(name) {
var value = '; ' + document.cookie;
var parts = value.split('; ' + name + '=');
if (parts.length == 2) return parts.pop().split(';').shift();
}
if (getCookie('rtkclickid-store') !== null && getCookie('rtkclickid-store') !== undefined && getCookie('rtkclickid-store') !== 'undefined') {
setTimeout(function(){
setFormClickIdValue(getCookie('rtkclickid-store'))
}, 3000)
}
</script>
Essential elements of the Tag:
- Tag = Custom HTML
- Triggering = All Pages (Page view)
Script:
Insert the universal tracking script which you generated within step 8 of this guide.
7.3 install GTM on the funnel in Clickfunnels:
7.3.1 go to the tab ClickFunnels-> Funnels-> choose the needed funnel:
7.3.2 once you’re in the funnel go to the tab Settings and scroll down a bit:
7.3.3 copy the script from GTM <head> script and place it in the box Head Tracking Code in ClickFunnels-> then copy the universal tracking script (it was created automatically and can be taken from Tools-> Scripts) and place it in the box Body Tracking Code in ClickFunnels and under this script place the GTM <body> script:
7.3.4 once the scripts are added, scroll down this page and press Save And Update Settings to apply the changes:
8. Create and match conversion events
Expand to see how to set up conversions trackingImportant!
Here is the list of ClickFunnels events that can be added to RedTrack and easily mapped:
- Lead– in this event ClickFunnels passes the conversion when the user has filled in and sent his contacts in the form;
- Purchase– in this event ClickFunnels sends the conversion when the user has paid for the purchase;
- Upsell– in this event ClickFunnels sends the conversion when the user paid for the upsell. This applies only to forms that ClickFunnels offers for upsells.
8.1 go to RedTrack-> Tools-> Conversion tracking-> Conversion type-> add the needed ClickFunnels events and press Save:
8.2 to match the events in RedTrack go to Tools-> Integrations-> Brands-> scroll down to the sections Clickfunnels event matching and match the events:
8.3 (optional) if the supported events by ClickFunnels are not enough for you, you can add more events via either of 2 ways:
Please follow the steps in the guide Google Tag Manager integration with RedTrack.
1. In ClickFunnels go to the tab ClickFunnels-> Funnels-> choose the needed funnel:
2. On the needed Sales page click Edit page:
3. Go to Settings-> Tracking code:
4. Add this script to the page settings in the tracking code section:
Note!
Remember to change the tracking domain and the event type which you want to track:
<script> function getCookie(name) { var value = "; " + document.cookie; var parts = value.split("; " + name + "="); if (parts.length == 2) return parts.pop().split(";").shift(); } var rtCookie = getCookie('rtkclickid-store') //create request with its properties (you can add to the postback &type=transaction &status= &event= &sum= like in custom image postback) var request = new XMLHttpRequest(); request.open("GET", `https://tracking.domain/postback?clickid=${rtCookie}&type=ViewContent`) //optional - to read our response code :create callback for success containing the response request.success = function(response) { console.log(response); }; //optional - to read our response code : and a fail callback containing the error request.fail = function(error) { console.log(error); }; //and finally send it away request.send(); </script>