Track conversion experiment by country
I wanted to know if it is posible to track the conversion rate of an experiment by country/language.
What I need to know is how different version of a landing page converts depending on the country the visitor comes from.
Is it posible to get this type of data from an experiment ?
Thanks a lot.
You can, if you create Segments for "Country" and "Language".
To create dimensions, from your dashboard, click on "Dimensions", then "New Dimension".
Details in this support article: https://help.optimizely.com/hc/en-us/articles/2000
for example - assuming your dimensions' API Key names are "country" and "language":
var userCountry = "some code goes here to detect country"; var browserLanguage = (navigator.language) ? navigator.language : navigator.userLanguage; optimizely.push(['addToSegment', 'country', userCountry ]); optimizely.push(['addToSegment', 'language', browserLanguage ]); window.optimizely.push(['trackEvent', "sendSegmentData"]);
Also, you may want to alter how you capture language - there are a lot of different values for "English".
e.g., English may have any of these: 'en', 'en-au', 'en-bz', 'en-ca', 'en-ie', 'en-jm', 'en-nz', en-ph', 'en-za','en-tt', 'en-gb', 'en-us', 'en-zw'