ga or _gaq.push for Google Analytics event tracking?

前端 未结 5 1347
有刺的猬
有刺的猬 2020-12-02 07:37

I would like to track an onclick of a button on a page on a site, after a condition is passed checking if a cookie is present.

Very simple but which syn

5条回答
  •  没有蜡笔的小新
    2020-12-02 08:40

    This is my script I've got on Google Analytics page

     
    

    To track my other pages in Backbone.js, I put this code in each Backbone.js View script:

    ga('send', 'pageview', myUrl);
    

提交回复
热议问题