如何跟踪“打开新标签” Google Analytics中的流量 [英] How to Track "Open New Tab" traffic in Google Analytics

查看:76
本文介绍了如何跟踪“打开新标签” Google Analytics中的流量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个推介网站,它使用网址转到我的网站上实施谷歌分析。当用户点击链接时,推介网站会在同一窗口的新标签页中打开我的网站。



我想为每个推介网站创建个人资料,以便每个个人资料都有自己的用户活动和交易转换报告。



我是谷歌分析的新手,请给我建议如何跟踪打开新标签方法的流量。

div>

您可以使用JavaScript跟踪点击。这意味着标准点击,中点击(很多人用它在新标签中打开)和右键点击(这可能意味着使用上下文菜单打开新标签)。

尽管我们无法将中间点击和右键点击用作固体转换数据(当然,您可以,但您不会完全正确),但我们可以使用这些上下文线索暗示用户意图。 Google Analytics自定义维度确实有助于这种情况,因为我们可以将这些事件分配为意向。现在,当您查看分析报告时,您可以将意图与可能的新标签相关联。



以下是一个反映此情况的jQuery代码片段:

  jQuery('a.some-link')。on('mousedown tap touch',function(e){
eventIntent =(e。其中> = 2)?'Intent':'Explicit'; //如果鼠标按钮大于或等于2,则设置意图(否则,它是一个明确的点击)
ga('set ','dimension3',eventIntent); //更改维度索引以匹配您的!
ga('send','event','Category','Action','Label','Value'); //发送一个事件以便跟踪维度!
});

从那里您可以使用标准报告,或创建自定义报告以及自定义细分来改善您的见解。



欲了解更多信息,我写了一篇关于这个话题的文章以及其他可以与意图相关的事件:这里。


I have a referral website that use an url to go to my website that have google analytics implemented. The referral sites open my website in a new tab on the same window when the user click the link.

I want to create a profile for each referral website so each profile have their own report about their user activity and transaction conversion.

I'm a newbie in google analytic, please give me advise how to track traffic for "open new tab" method.

解决方案

You can track as far as a click using JavaScript. This means a standard click, a middle-click (which many people use to open in new tabs), and a right-click (which could imply using the contextual menu to open the new tab).

While we can't use the middle and right-clicks as solid conversion data (well, you could, but you wouldn't be absolutely correct), we can use these context clues to imply a user intent. Google Analytics custom dimensions really help this situation because we can assign those events as "Intents". Now, when you view your analytics reports, you can associate the intents with probable new tabs.

Here is a jQuery snippet that reflects this:

jQuery('a.some-link').on('mousedown tap touch', function(e){
    eventIntent = ( e.which >= 2 )? 'Intent' : 'Explicit'; //If the mouse button is greater or equal to 2, then set the intent (otherwise, it is an explicit click).
    ga('set', 'dimension3', eventIntent); //Change the dimension index to match yours!
    ga('send', 'event', 'Category', 'Action', 'Label', 'Value'); //Send an event so the dimension is tracked!
});

From there you could use your standard reports, or create a custom report along with custom segments to improve your insights.

For more information, I wrote a post about this subject and other events that you can associate with intents: here.

这篇关于如何跟踪“打开新标签” Google Analytics中的流量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆