ga or _gaq.push for Google Analytics event tracking?

前端 未结 5 1346
有刺的猬
有刺的猬 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 08:38

    If you had both analytics.js and ga.js running on your site, which is recommended while analytics.js is still in beta, you can run both, although I would combine them in the notregisterbtn function, like so:

        
    

提交回复
热议问题