What’s the best way to combine a prelander and main lander on a single url so it shows as a single lander in the tracker?
I don’t want any code of the main lander to get loaded until the clickthrough on the prelander happened.
I asked a dev and he started fiddling around with javascript which does not feel like the most optimal solution to me.
If someone could provide a high level direction I can tell the dev to use e.g. “do it using this method”,
that would be appreciated.
You add the pre lander in the tracker as landing page.
Then you link from the prelander directly to the main lander.
On the main lander then you use your trackers click URL to redirect to the offer.
That way the tracker counts only the incoming to the pre lander and the outgoing traffic from the main lander.
The click from pre lander to main lander won´t be recognized by the tracker.
That way it´s not exactly the same URL but it shows up as a only one landing page in the tracker.
I hope that helps anyway.
Ok thanks for the suggestion but I should have provided more info:
We’re using
and in there we track:
- on the prelander we use
- on the main lander we track multiple custom events + regular click to offer
Ok, I see.
Then maybe you could use some coding that I did for something completely different some time ago.
When user arrives at the lander do a check if cookie "alreadyvisited" exists.
When it doesn´t exist set the cookie and load the code for the pre lander.
On the CTA of the pre lander just set a link to the same lander URL.
When user clicks the CTA he gets to the same URL without going through the tracking link again and it will be checked for the cookie again.
Then the cookie exists and the code for the main lander with
That way only specific parts of the code are loaded depending if the cookie is set or not.
Maybe this is not the most elegant solution but I guess it should work.
It also shouldn´t mess up the tracker stats.
Let me know if this works for you.
I think that would work very well for standalone landers,
but we're using integrated
and when we revisit the lander a 2nd time it will count as a fresh visit on the campaign link URL, which we'd like to avoid (we could track such 2nd visits with a token but it then quickly becomes messy and overcomplicated given what we're trying to do)
Alright, got it.
Yes, in that case it won´t work.
Let me think about it and maybe I have an idea then.
Did you talk to
Yes I had spoken to support but they could not help, given from their (tracker) perspective it does not matter much which solution we use - is what they came back with.
Meanwhile one of our other devs found a way using jquery load("next-page.php") which seems clean and working OK.