Multi-goal experiment, how to track pageviews of only people who are bucketed into the experiment?
I know that pageviews is a goal, but how do I set up Optimizely so it only tracks pageviews of people that are bucketed into the experiment?
I would suggest looking at and adjusting the following code to suit your needs:
var doNotSendPageviewTracking = true; window['optimizely'] = window['optimizely'] || ; window['optimizely'].push(["bucketVisitor", experimentId, variationId, doNotSendPageviewTracking]);
This is from https://developers.optimizely.com/classic/javascri
That code appears to manually assign users to a variation in an experiment which is useful, but I don't see how I can use that for my purpose?
Otherwise, you can also do an AJAX call for every visit.