Whiskey Neat Media

Clever, Rugged Marketing...

  • Home
  • Facebook Campaign Balance Checklist
  • Blog
  • Contact
You are here: Home / Uncategorized / How To Forward URL Parameters In ClickFunnels Pages

Feb 02 2019

How To Forward URL Parameters In ClickFunnels Pages

Share
Tweet
Share
0 Shares

So, I couldn’t find an easy way to do this anywhere and thought I’d post my solution.

Sometimes you may want to forward a parameter in the URL to another page when your visitor clicks a button. This has worked for me.

You could use this to forward tracking parameters like Infusionsoft’s contactId – That’s what I use in my example here.

You can also set it up to automatically redirect to another URL with the same parameter. The reason you may want to do this is, for instance, if you need to pixel someone on a Thank You page as a ‘Lead’ but want them to automatically redirect to a scheduling software like ScheduleOnce with their contactId in tact.

The code examples are below the video. Let me know if you got value out of this by commenting and sharing!

Header Code in ClickFunnels Page Tracking Code

<script>
function getParameterByName(name, url) {
    if (!url) url = window.location.href;
    name = name.replace(/[\[\]]/g, "\\

amp;");
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, " "));
}
var newParam = getParameterByName('parameter')
var nextURL3 = ('https://www.yourdomain.com/pagepath\?parameter\=' + newParam);
</script>
 

Button Code

<div class="de elBTN elAlign_center elMargin0 ui-droppable de-editable" id="tmp_button-86409" data-de-type="button" data-de-editing="false" data-title="button" data-ce="false" data-trigger="none" data-animate="fade" data-delay="500" style="margin-top: 30px; outline: none; cursor: pointer; display: block;" aria-disabled="false" data-elbuttontype="1">
<a onclick="location.href=nextURL3;" class="elButton elButtonSize1 elButtonColor1 elButtonRounded elButtonPadding2 elBtnVP_10 elButtonCorner3 elBtnHP_25 elBTN_b_1 elButtonShadowN1 elButtonTxtColor1 elButtonFull" style="color: rgb(255, 255, 255); font-weight: 600; background-color: rgb(1, 116, 199); font-size: 26px;">
<span class="elButtonMain"><i class="fa_prepended fa fa-angle-double-right"></i>Button Text Goes Here<i class="fa_appended fa fa-angle-double-left"></i></span>
<span class="elButtonSub"></span>
</a>
</div>

 

Button CSS Code

.jsPointer {
    cursor: pointer;
}

 

Timed Automatic Redirect Code

<script>
function getParameterByName(name, url) {
    if (!url) url = window.location.href;
    name = name.replace(/[\[\]]/g, "\\

amp;");
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, " "));
}
var newParam = getParameterByName('parameter')
var nextURL3 = ('https://www.yourdomain.com/pagepath\?parameter\=' + newParam);
</script>

<script type="text/JavaScript">
setTimeout("location.href = ('https://www.yourdomain.com/pagepath\? parameter\=' + newParam);",3000);
</script>
 

Share
Tweet
Share
0 Shares

Written by Chuck Sharpsteen · Categorized: Uncategorized

WHAT OTHERS ARE SAYING

“…invaluable to increasing our productivity in our business. He always has our ads up and running quickly, without us having to wait weeks at a time.”
— Brett K.
Best-Selling Author

“Top level expertise combined with the fact that he’s super easy to work with and very honest made for a great experience. Could not give a higher recommendation.”
— Rudy S.
Fitness/Gym Marketing Expert

“Chuck really knows his stuff and has a very strong understanding of Facebook ads. We are very excited to be working with him.”
— Gabe R.
Poker Training

“Chuck is your guy if you need a Facebook Advertising Expert. He is a straight talker who knows his stuff and will go above and beyond to deliver on his promises. I can’t thank him enough.”
— Phil
Website SaaS

“I am pretty fb savvy and thought I knew how to run ads but after seeing what he has done in a few hours would have taken me weeks.”
— Sophia C.
Skincare Owner

“Awesome information on Facebook ads. Chuck ended up auditing our ads on Facebook and our entire funnel and gave us great information to move forward with. Highly recommended.”
— Brian K.
High Ticket Coaching/Consulting

“I am really impressed by his ability to understand our offer and run with the rest of the process on his own, with no hand-holding.”
— Ethan K.
Financial Advisor Thought Leader

“He is a guru when it comes to Facebook ads.”
— Season B.
Women’s Business Coach

“Chuck has an excellent system for improving one’s sales funnel and ads that are very methodical and make intuitive and logical suggestions.”
— David H.
Music Products

  • Facebook Campaign Balance Checklist
  • Privacy Policy
  • Terms of Use

Copyright © 2025 - Whiskey Neat, LLC