Tracking Leads with ClickFunnels

SegMetrics allows you to track leads acquired through ClickFunnels.

Get your Tracking Snippet from SegMetrics

In SegMetrics go to the Site Setup page under your account settings. Here you can find your Advanced Tracking Snippet.

Paste Tracking Code Into Your ClickFunnel Pages

Now open the editor on each of your pages in ClickFunnels and go to  Settings > Tracking Codes. Then paste the code you received from the previous step into the Custom Tracking (Footer) section. After that, save your page and test visit. Check your SegMetrics account settings to verify it is tracking.

Place the Identifying script on your thank you page

Make sure that your SegMetrics tracking script is installed on the thank you page that leads will get redirected to after they opt in, and that their email address is included in the URL.

Then, simply call the 'optin' script on that page with the lead's email address -- much like Google Analytics:

<script>_segq.push(['optin', {email: 'LEAD_EMAIL_HERE' }]);</script>

Where the LEAD_EMAIL_HERE is the email address of your new lead.

Examples:

PHP

<script>_segq.push(['optin', {email: '<?= $_GET['email'] ?>' }]);</script>

JavaScript

<script>
function SegMetQueryVal(name) {
    name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
    var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
        results = regex.exec(location.search);
    return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}
_segq.push(['optin', {email: SegMetQueryVal('email') }]);
</script>

Ruby on Rails

<script>_segq.push(['optin', {email: '<%= params[:email] %>'}]);</script>

Congratulations, SegMetrics is now set up to track affiliates for your funnel!

Still need help? Contact Us Contact Us