Google Analytics Async: Events Tracking Callback?

前端 未结 3 2113
伪装坚强ぢ
伪装坚强ぢ 2020-12-16 15:58

I wish to use event tracking to record clicks on a specific type of link to another website. I am using jQuery, and the code I currently have is:

$(\'a.websi         


        
3条回答
  •  再見小時候
    2020-12-16 16:29

    Use Google Analytics hitCallback

    You can set a custom callback on the tracker object by using:

    _gaq.push(['_set', 'hitCallback', function(){}]);
    

    I described the code for it a little more in-depth here: Track event in Google Analytics upon clicking form submit

提交回复
热议问题