google analytics content experiment without redirect getting no visitors

后端 未结 1 816
借酒劲吻你
借酒劲吻你 2021-01-17 00:55

I have implemented a GA experiment with no redirect




        
相关标签:
1条回答
  • 2021-01-17 01:33

    Change the ga.src to ga.js experiments don't seem to work with stats.g.doubleclick.net/dc.js

    ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
    

    was changed to

    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    

    This solution is not optimal since it stops me from getting demographic data but I am at least getting experiment data now.

    0 讨论(0)
提交回复
热议问题