Help with a profile script needed!!
Hi! I am trying to create an audience for an XT which includes a profile script. The audience will show a certain menu to users who visit the site with ?att=ps6260 as a parameter in their URL, and the profile script needs to then serve the same experience to users who return to the site but this time without the URL attribute (but who had it on their previous visit)
I've found this for URL attributes, but I think this one is just applying the URL parameter to all pages of a visit, not storing it from a previous visit:
if (page.query.indexOf('att=ps6260') > -1) {
return 1;
}else{
if (!user.get('BCorp_return_visitor')) {
return 0;
}
}
Any help would be very much appreciated!! 🙂