Variation Redirect and PageView Goals
Ok I have 3 variations of a landing page. The Original, Variation 1, and Variation 2. I would like to redirect Variation 1 to Variation 2, and then from Variation 2 I would like to track normally so that when a user moves to my conversion page I can track that as a pageview goal.
I figured out how to redirect ok, I added this to the variation code:
window.location.href = "?optimizely_x6503380817=2&optimizely_force_tracki
and it redirects to the 2nd variation perfectly. I can also see that the experiement is running when I type "optimizely.activeExperiments" into the console in chrome. However, when I view the Results, I don't see any indication that anyone has filled visited the conversion page. I have the goal setup as a pageview, and a substring match with "thankyou" in it (which is always there). Is there something with the redirect that could be breaking the way it's supposed to track?
Are you getting no goals met overall, or just no goals met for variation 1?
You will not have anyone in Variation 1 that visits the thankyou page.
When you use the force parameters, you are actually reassigning them to that variation, so their conversion event would count for their current segment.
If you are doing a redirect, why are you redirecting them *and* forcing them into a variation 2?
A redirect should be simply taking them to the new page... no force parameters.
1- user hits /landingpage
a- if optimizely assigns them to control, the user is stays where they are
b- if optimizely assigns them to variation1, the user is redirected to /landingpage_1
c- if optimizely assigns them to variation2, the user is redirected to /landingpage_2
3- now you decide to end variation 1, so you pause that variation but also want anyone already assigned to variation1 to also see /landingpage_2. To do this, copy the redirect code from variation2 and place it into variation1.
Perhaps I am misunderstanding a few portions of your setup.
Analytics and Testing Guru
Thanks for the response!
Basically what I am attempting to do is use Variation 1 simply to redirect to Variation 2 with the Variation Code. There are no changes to Variation 2. It simply sits there and does nothing. From there I'd like it to just run the experiment as normal, and track conversions if they visit the conversion page. I have it setup like this is because I also add a parameter to the url on the redirect, and when that parameter is detected by my PHP sourcecode it prints out different HTML than it normally would. I need to do it this way because a lot of my elements on my form are loaded dynamically and I can't change then with the Optimizely Editor.
The main issue I am having now with the Goal Results is that Variation 1 and Variation 2 are both listed in the goals, but I really only need Variation 2 listed as the starting point and the Conversion page as the goal. Hopefully I'm making sense?
Technical Support Engineer
Thanks for responsing to my post!
That redirect code is a great help. My goals appear to be tracking conversions properly now.
I really appreciate the help!