• Not sure how to word this so here’s what we’re attempting:

    1. User lands on site.com/CustomPerma

    2. If user goes ANYWHERE else on our website from here (clicks any links), we want to add “CustomPerma” to the end of the URL.

    Basically, we’re wanting to track the page they come in from and see where they’re going.

    Another way of thinking about it would be like an affiliate; if you land on an affiliate’s url and go anywhere else, it’s tracked with credit and (on some sites) shows their affiliate name as a URL extension.

    • This topic was modified 7 years, 12 months ago by hockeyhero4.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The best way to do this is to set cookies or server-side transients for that visitor so that they can be tracked as to where they go as an individual, not with just the tracking code. That’s what affiliate marketers do, and it makes things a lot easier.

    The reason that affiliate progras do it this wya is two-fold. First, it doesn’t add extra cruft onto a URL. Not that many people look at them now, but it’s still something that some people care about. Secondly, and most importantly, setting these values by cookies ensures that only the click-through that produced that visitor is credited with it. That means that any sales are attributed to the correct place. Even with tracing only, imagine how bad it woudl be if 10 people were on the site at the same time with the same URL value all clicking on different links? Your analytics would be an absolute nightmare.

    One way to do this is using the URL query string parameter.

    make all the links within the Landing Page like this:

    https://www.site.com/somepage/?nonreservedvariablename=CustomPerma

    to get the value of parameter in PHP use

    $value = $_GET["nonreservedvariablename"];

    in your page template(s).

    see https://php.net/manual/en/reserved.variables.get.php

    You can use many parameters like this:

    https://www.site.com/?abc=123&def=456&ghi=789&i=a&b=q

    It’s rather powerful when used in a programmatic manner.

    The idea here is to carry the parameters and values thru as needed from page to page.

    Also see:

    https://support.google.com/webmasters/answer/6080550?hl=en

    Thread Starter hockeyhero4

    (@hockeyhero4)

    Oh man, that’s crazy good advice! Thank you so much for your insightful help!

    Thread Starter hockeyhero4

    (@hockeyhero4)

    Has anyone heard of a dcode before? Is that something that would work here?

    Did you mean ‘decode’?

    If so, that topic would not be inline with your original post. I would start a new one, or look it up online.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Side note: @hockeyhero4 don’t create duplicate topics, those get deleted when found.

    Thread Starter hockeyhero4

    (@hockeyhero4)

    Thanks – My apologies as I had a brain fart and couldn’t find my original post about it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How Do I Take Landing Page Permalink & Add To All Future Clicks?’ is closed to new replies.