Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Redirect a returning visitor to a new URL based on some condition

MayuriK
Level 2
Level 2

Hi,

 

We are trying to create a test such that if a visitor has visited the /receipt page, the next time they visit home page (returning visitor) , the test version should take them to a different test page URL.

 

Current implementation is that we are using audience rule as  --> Site Pages: Current Page URL contains receipt

But above method doesn't seems to work as I can see no traffic in the report. Is there any way we can implement it using the audience rule. Or if we use profile script as well, please guide what can be the correct implementation.

2 Replies
AL85
Level 1
Level 1

Hi,

 

You will have to create a profile script something like below

 

if (page.url.indexOf("Unique identifier of the page URL") > -1) {
user.setLocal("pageSeen", "true");
}

 

Use the 'pageSeen' equals 'true' parameter along with 'returning visitor'  in your audience and you can use a redirect offer using this audience.

Docea
Employee
Employee

@MayuriK,

The simple way to do it woudl be to build audience around if referrer URL contains "receipt" however this would only function for those who immediately return to the homepage after getting the receipt. It seems a more comprehensive solution would indeed be one that leverages profile data as @AL85 has suggested.