我浏览了 GA 文档,但并没有真正找到我想要的答案。 https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide 是否有标签或事件可以记录页面/ session 上每次唯一访问的每次首次点击?
我假设这将跟踪页面上所有唯一事件的首次点击。
最佳答案
从 https://moz.com/blog/first-touch-tracking-in-google-analytics 复制粘贴
Include following code anywhere above the Google Analytics code script in your page code:
<script type="text/javascript" src="http://attributiontrackingga.googlecode.com/svn/trunk/distilled.FirstTouch.js"> </script>
Move your GA code above any Website Optimizer code or anything from Google that might write a visitor (__utma) cookie and look for:
var pageTracker = _gat._getTracker("UA-XXXXXXX-X"); pageTracker._trackPageview();
In between those two lines, you want to put the following line:
distilledFirstTouch(pageTracker);
关于javascript - 谷歌分析记录首次点击,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30527162/