Google Analytics Async: Events Tracking Callback?

前端 未结 3 2110
伪装坚强ぢ
伪装坚强ぢ 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:33

    How about solution from this answer?

      // Log a pageview to GA for a conversion
      _gaq.push(['_trackPageview', url]);
      // Push the redirect to make sure it happens AFTER we track the pageview
      _gaq.push(function() { document.location = url; });
    

提交回复
热议问题