Knowledge Base      


How do I create a blank page in ClickFunnels?


Passing Sub-ID values throughout your funnel pages can get complicated if you have an opt-in form, depending upon the autoresponder that you’re using.

To make passing Sub-IDs easy, ClickMagick’s has a small piece of JavaScript code that you can use to pass the values for you.

The idea is simple: add a hidden “bridge” page as your autoresponder’s Thank You page, and have that page immediately and automatically redirect to the affiliate network, without your website visitors even knowing it:
 


 

To make this work, all you have to do is add our JavaScript code on the first and last pages of your funnel—the last page, in this example, being the bridge page that we will create.

 
Note: When using the JavaScript codes below, ensure that both the first page and last pages of your funnel are on the same domain.

For example: First page of the funnel is on domain.com… and the last page of the funnel is on domain.com.

  
Create A Blank Page In ClickFunnels

Create A Blank Page In LeadPages

Create A Blank Page In OptimizePress

Create A Blank Page In Kartra

 
To set this up if you’re using tracking links, first create a new entirely blank page in your Page Builder. Then, insert the code below anywhere in the <head> or <body> section of the page:

<script>
   var cmtools_url = 'https://mynetwork.com?tid=[cm_s1]';   // Change to your affiliate link
</script>
<script type='text/javascript' src='//cdn.clickmagick.com/misc/js/cmtools.js'></script>
<script>window.location.replace(cmtools_url)</script>

   
 
Remember to change the URL in the cmtools_url line of the code to be your affiliate link and set your autoresponder’s Thank You page URL to this bridge page.

To set this up when using Campaigns, insert the code below anywhere in the <head> or <body> section of an entirely blank page:

<script>
   var clickmagick_cmc = {
      uid: '[USERID]',
      hid: '[HID]',
      cmc_goal: 'a',
      vid: '',
   }
</script>
<script src='//cdn.clkmc.com/cmc.js'></script>
<script>
   setTimeout(function() {
      window.location.replace("https://destinationpage.com?tid=" + clickmagick_cmc.vid);
   }, 1000);
</script>       


Remember to change the URL https://destinationpage.com?tid= to be your affiliate link.

Now, when a visitor enters his or her email address, the autoresponder will send that visitor to the hidden page where the Sub-ID values will be restored, and then control will be sent to the affiliate link. This will happen so fast that your visitor won’t even notice that it’s happened.

 
Tip: If you want to include a tracking pixel on the page as well, use a JavaScript tracking pixel, and insert it before the line that includes window.location.replace.
 
Caution: Trying to use the [cm_s1] through [cm_s5] tokens in a “meta refresh” tag will not work.

// This meta refresh will not work...
<meta http-equiv="refresh" content="3; url=https://mylink.com?s1=[cm_s1]">

Dynamically changing an HTML tag in the <head> section of a page is totally undefined behavior. Even if you try it in your favorite browser today and it looks like it works, it doesn’t work in all browsers, and your favorite browser could stop “working” in the next release. Instead, use what we show you to do in this article.


Article 738 Last updated: 08/10/2021 11:18:20 AM
https://www.clickmagick.com/kb/?article=738