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

The 1st edition of the Target Community Lens newsletter is out now! Click to the right to find all the latest updates
SOLVED

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

Avatar

Employee

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.

1 Accepted Solution

Avatar

Correct answer by
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.

View solution in original post

2 Replies

Avatar

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.

Avatar

Correct answer by
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.

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now