Track all outbound links in Google Analytics

前端 未结 7 1818
小蘑菇
小蘑菇 2021-01-31 20:06

I\'ve been using a script to track outbound links for a couple of months now. The script WORKS, but in the report generated by Google Analytics many UR

7条回答
  •  走了就别回头了
    2021-01-31 20:50

    Google has an officially supported library that does this stuff for you.

    https://github.com/googleanalytics/autotrack

    So your entire Analytics snippet would be something like:

    
    
    
    

提交回复
热议问题