I have a data element within Core > Visitor Behavior > Landing Page that I'm using to pull the first page of the session.
If my landing page is this: www.foo.com/?parameter1=test
and my current value for landing page data element is this: www.foo.com/campaign?parameter1=test
How can I create another data element called Landing Page without Query Param to get this as the value: www.foo.com/campaign
There was a closing parenthesis missing in my code. Now changed to:
var x=_satellite.getVar('Landing Page');
If my Landing Page variable is a data element, I tried the below custom code for a new eVar called Landing Page without parameters but the code didn't work. Can you please check.
var x=%Landing Page%;
adilk you can try this
var x = "www.foo.com/campaign?parameter1=test"