A/B redirect with query string | Community
Skip to main content
stephenm6392338
Level 2
April 18, 2018
Solved

A/B redirect with query string

  • April 18, 2018
  • 5 replies
  • 4484 views

Hi there,


I have two versions of a site

http://site.com/a

http://site.com/b

I want to use Adobe Target to send 50% of traffic that lands on site.com/a to site.com/b ...


However, I want anyone that comes to site.com/a?query=string to stay on site.com/a ... I only want people that land on site.com/a WITHOUT any query string to be considered for redirection.


How can I set this up in Adobe Target?


Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by LJ_Jones

To clarify, there is a difference between path and URL.  URL is the full URL including the domain.  So in this case the URL is https://site.com/a.  The path however, does not include the domain. So the path here is just /a.  So it would be incorrect to use path equals http://site.com/a.

I prefer to use URL because we run Target on more than one domain and I need to specify which domain the test is running on.  Also, I don't find the "equals" evaluator to behave exactly as I would expect it would.  It is very strict and often excludes things I had not intended it to.  So I prefer to use contains.

I like to be very specific about what traffic I am including and excluding and that is why I wrote it the way I did.  My audience will include everyone who has https://site.com/a in the url, but will exclude those with a ?.  Hope that helps.

5 replies

Rajneesh_Gautam_
Community Advisor
Community Advisor
April 18, 2018

Hi Stephen, you should use Activity Only Audience with either of these conditions:

1. Path does not equal /a

2. Page URL does not contain ?

hope this helps,

Regards,

Rajneesh

LJ_Jones
Level 3
April 18, 2018

Like Rajneesh said.

Create an audience like this.

stephenm6392338
Level 2
April 20, 2018

Thanks @rajneesh_gautam and @LJ Jones

You both give slightly different answers! Would below be correct audience?

1. Path equals http://site.com/a

2. Path does not contain http://site.com/a?

LJ_Jones
LJ_JonesAccepted solution
Level 3
April 20, 2018

To clarify, there is a difference between path and URL.  URL is the full URL including the domain.  So in this case the URL is https://site.com/a.  The path however, does not include the domain. So the path here is just /a.  So it would be incorrect to use path equals http://site.com/a.

I prefer to use URL because we run Target on more than one domain and I need to specify which domain the test is running on.  Also, I don't find the "equals" evaluator to behave exactly as I would expect it would.  It is very strict and often excludes things I had not intended it to.  So I prefer to use contains.

I like to be very specific about what traffic I am including and excluding and that is why I wrote it the way I did.  My audience will include everyone who has https://site.com/a in the url, but will exclude those with a ?.  Hope that helps.

stephenm6392338
Level 2
April 20, 2018

Very helpful thanks for the insight based off your experience!

I have set it up as per your screenshot and will fine tune it from there if needs be