简体   繁体   English

Google Analytics(分析)事件跟踪取决于访问来源

[英]Google Analytics event tracking dependent on source of visit

I am looking to test different traffic patterns within Google Analytics (Direct traffic abnormally high). 我正在测试Google Analytics(分析)中的不同流量模式(直接流量异常高)。 I was curious if anyone knows how to create an event that fires when source =wildcard To make this event more difficult, this would be set up within Google Tag Manager using Universal Analytics. 我很想知道是否有人知道如何创建一个在source = wildcard时触发的事件。为了使此事件更加困难,可以使用Universal Analytics在Google跟踪代码管理器中进行设置。

I see the 6 event tags but none of them sounds like it would perform my need? 我看到了6个事件标签,但听起来都不是满足我的需要?

Thanks 谢谢

Google Tag Manager is not a tracking tool and knows nothing about the traffic source, so no preconfigured macro could be used in a rule to fire tags depending on source. Google跟踪代码管理器不是跟踪工具,并且对流量来源一无所知,因此在规则中不能使用任何预配置的宏来根据源触发代码。

If you use "classic" asynchronous analytics you can set up a macro that reads the _utmz-cookie and checks in a rule if it contains a source string ("direct","cpc" etc.). 如果您使用“经典”异步分析,则可以设置一个宏来读取_utmz-cookie并检查规则中是否包含源字符串(“直接”,“ cpc”等)。

However Universal Analytics determines the traffic source on the server and does not store it clientside, so with UA this would not work. 但是,Universal Analytics会确定服务器上的流量来源,并且不会将其存储在客户端,因此使用UA不能正常工作。

A few traffic sources are easily recognizable on the respective landing page: 在相应的目标网页上可以轻松识别出一些流量来源:

  • If no referrer is present it's a direct visit/bookmark 如果没有推荐人,则为直接访问/书签
  • if there are campaign (utm) parameters in the url you can use those 如果网址中包含广告系列(utm)参数,则可以使用这些参数
  • if there is a gclid parameter in the url you know it google/cpc 如果网址中有gclid参数,您知道它google / cpc
  • if the referrer is a google domain with a country tld and the parameter "q" is present (will be empty with encrypted search but should still be there) it's an organic google search 如果引荐来源网址是具有国家/地区顶级域名(TLD)的Google域,并且存在参数“ q”(加密搜索将为空,但仍应存在),则为自然搜索Google
  • if the referrer is a bing domain with the parameter q present it's an organic bing search (and similar for other search engines) 如果引荐来源网址是带有参数q的bing域,则它是自然bing搜索(与其他搜索引擎类似)

However this will only work on landing pages. 但是,这仅适用于登录页面。 You need to write you own cookie to store the source for subsequent pages. 您需要编写自己的cookie,以存储后续页面的源。

You can refine this approach to give rather similar results to Google Analytics but it will never match perfectly. 您可以改进此方法,以提供与Google Analytics(分析)相当相似的结果,但它永远无法完美匹配。

One of the most common reasons for abnormal high direct traffic is that no campaign parameters are present in paid traffic, either because you forgot to enable autotagging in your adwords campaigns or because you have redirects that strip out campaign parameters (so paid traffic is lumped together with direct). 异常直接流量高的最常见原因之一是,付费流量中没有广告系列参数,这是因为您忘记了在adwords广告系列中启用自动标记功能,或者是因为您重定向了一些广告系列参数(因此,付费流量被汇总在一起)直接)。 The above approach would not help you to discover this so I suggest you check this manually first before you do anything else. 上面的方法不会帮助您发现此问题,因此我建议您在执行任何其他操作之前先手动进行检查。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM