A/B Split Test Cross Domains
I'm currently attempting to run a split test which involves having the conversion/goal page on a secondary domain.
Traffic lands on domain1.com (and is split 50/50 between two landing pages) and click throughs from that domain go to domain2.com where the checkout process and order confirmation page are located.
I've set the goals as sub-string match confirmation and thankyou and conversions for these goals have been recorded in a couple of instances however a lot of conversions have not come through.
Is there a better way of implementing the goals to ensure every conversions is recorded accurately or is the fact the test is being split across multiplate domains (split test landing pages on domain1.com and goal pages on domain2.com) the cause of this issue?
The easiest way to track across domain is to utilize an invisible iframe that his a specific url from the first domain. Here is a link to our KB article for more info:
I also would like to add that you can create a blank page with the snippet from the 1st domain and re-use the same page and separate your goals by using different query parameters.
Confirmation Page on Domain 2:
* Inject an iframe that leads to domain1.com/tracking.html?confirmation
Thank You Page on Domain 2:
* Inject an iframe that leads to domain1.com/tracking.html?thankyou
How to set up the goals:
Goal type: Pageview
Match Type: Exact
Goal type: Thank You Page
Match Type: Exact
Great replies - thanks pps, I'll give that a try
Just as an additional question, presumely I don't have to limit myself to calling the domain1 iframe file on just the conversion page of domain2.com?
Presumably I can call the seperate html file (which i've named optimizely-conversion.html) on any page of domain2.com to allow me to run split tests etc?
Here is how I've got things setup in Optimizely - is there a better way to implement?
Normal JS script in header on domain1.com
.html file with cross domain tracking located on root of domain1.com
Visitors click through from domain1.com and land on domain2.com where they proceed through the checkout funnel.
At the end of the checkout funnel (which has the iframe called) they reach the confirmation page:
www.domain2.com/international/checkout/confirmation.php?p=XXX (where XXX is a very long unique identifier)
In Optimizely the goal is set as:
"The percentage of visitors who visited confirmation (substring match)."
Is there something wrong in the setup or is there a better way to implement the goal? Do i perhaps need to set the goal as simple match using www.domain2.com/international/checkout/confirmation.php as the goal variable?
So the iframe snippet should ONLY be deployed to the order confirmation/thankyou page(s) - is that correct?
Based on the iframe being deployed on www.domain2.com/international/checkout/confirmation.php?p=XXX the goal should then be:
What to Track: Pageviews
URL to Track: www.domain1.com/optimizely-conversion.html
URL Match Type: Exact Match
Yes, if you can include the optimizely snippet on both domains then it shouldn't be a problem tracking any page view - in which case you don't need to use the iframe.