Pass url paramaters to second page

Sant_Singh_Rath
Level 7

Pass url paramaters to second page

Just add this piece of code in your landing page and it will pass the utm parameter to second page without removing the parameters from second page. So, in the second page you will get combined parameters from first page and second page. Hope this will help!

3 REPLIES 3
SanfordWhiteman
Level 10 - Community Moderator

Re: Pass url paramaters to second page

This code is incorrect. The mere presence of a ? anywhere in URI doesn't mean it has a query string; the code is also generally ignorant of the hash (fragment) and will break such links.  It also relies unnecessarily on jQuery.

I've posted the proper code for this in the past and will add to the official blog.

Sant_Singh_Rath
Level 7

Re: Pass url paramaters to second page

Thanks Sanford Whiteman​. This code had been working fine as of now. But if you are saying then I am sure there must be some bug. Could you please help me with your code that I can use?

SanfordWhiteman
Level 10 - Community Moderator

Re: Pass url paramaters to second page

It's not working fine, it hasn't been tested w/the appropriate number of valid URLs.