OnClick for google analytics and target _blank. The link does not work?

前端 未结 2 459
灰色年华
灰色年华 2021-01-03 08:30


        
2条回答
  •  没有蜡笔的小新
    2021-01-03 09:01

    I ran into the same problem with the target="_blank" not working when adding code for tracking file downloads.

    on this website, the "Automate It" section shows a jquery code that will detect different type of links on your website (files, mailto, etc...) and automatically add the "onclick" event with _gaq.push.

    in case the link above doesn't work : http://www.blastam.com/blog/index.php/2011/04/how-to-track-downloads-in-google-analytics/

提交回复
热议问题