Experiments and ajax-loaded content[ Edited ]
January 2016 - last edited January 2016
I have some ajax-loaded content against which I want to run experiment. This content loaded not on all pages and its not clear is there will be this content or not.
and do cxApi.chooseVariation() then
for all pages , then wait for ajax-content loaded and change it according to chooseVariation() value .
So all pages counted as experiment's sessions (even if I have no ajax-loaded content so no variations applied) and this is not very good
This is not clean from documentation is experiment's session started on google's side on api.js?experiment=EXPERIMENT_KEY load
or on ga('send', 'pageview') events.
Which s the best way to do GA experiments in my case?