Rich-text Reply

Track experiment by not using Custom Dimensions in GA?

henrik-outfox 06-24-15
Accepted Solution

Track experiment by not using Custom Dimensions in GA?

Hello! :-)

 

Do anyone know if there's another way to track experiments in Google Analytics than using Custom Dimensions? I "only" have 200 Custom Dimension slots that will eventually run out of space, sooner than later.. 

 

I've heard it was possible with Events in GA? Any takers?

 

Best, Henrik

 

Re: Track experiment by not using Custom Dimensions in GA?

[ Edited ]

Hey Henrik,

You can look into using Events. See this article for more information:


http://analyticsdemystified.com/analytics-strategy/beefing-up-the-integration-of-optimizely-and-goog...


/* _optimizely_evaluate=force */
setTimeout(function(){
experimentId = ;
if (typeof(optimizely) != "undefined" &&
optimizely.variationMap.hasOwnProperty(experimentId)) {
window._gaq = window._gaq || [];
_gaq.push(['_setAccount', '']);
_gaq.push(['_trackEvent', 'Optimizely', optimizely.data.experiments[experimentId].name, optimizely.variationNamesMap[experimentId], 1, true]);
}},1000);
/* _optimizely_evaluate=safe */



Best,

Amy Herbertson
Customer Success

Re: Track experiment by not using Custom Dimensions in GA?

Hi @Amy_Herbertson thanks for the reply!

 

Any ideas how come they decided to not load it until 1 second?

 

/* _optimizely_evaluate=force */
setTimeout(function(){
experimentId = ;
if (typeof(optimizely) != "undefined" &&
optimizely.variationMap.hasOwnProperty(experimentId)) {
window._gaq = window._gaq || [];
_gaq.push(['_setAccount', '']);
_gaq.push(['_trackEvent', 'Optimizely', optimizely.data.experiments[experimentId].name, optimizely.variationNamesMap[experimentId], 1, true]);
}},1000);
/* _optimizely_evaluate=safe */

MartijnSch 06-25-15
 

Re: Track experiment by not using Custom Dimensions in GA?

Probably to make sure that Optimizely and Google Analytics are loaded at that point in time to make sure the tag is firing correctly.