在 Universal Analytics 中启用人口统计和兴趣报告 [英] Enable Demographics and Interests reports in Universal Analytics

查看:17
本文介绍了在 Universal Analytics 中启用人口统计和兴趣报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 Universal Analytics 跟踪代码启用人口统计和兴趣报告.

I want to enable demographics and interests reports with the Universal Analytics tracking code.

为我的网站生成的跟踪代码如下所示:

The generated tracking code for my site looks like this:

<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-999999999-9', 'whatever.com');
  ga('send', 'pageview');

</script>

Display Advertiser Features 下有一个选项:

人口统计和兴趣报告生成年龄、性别和兴趣数据可用,以便您可以更好地了解您的访客是谁.查看这些数据,您需要对您的跟踪代码进行一些小的更改.详细了解如何更改这些跟踪代码.

Demographics and Interest Reports make Age, Gender, and Interest data available so you can better understand who your visitors are. To see this data, you need to make a small change to your tracking code. Learn more about how to make these tracking code changes.

它链接到:https://support.google.com/analytics/answer/2444872?hl=en&utm_id=ad

这基本上告诉我要替换:

Which basically tells me to replace:

ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') 
   + '.google-analytics.com/ga.js';

与:

ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://')
  + 'stats.g.doubleclick.net/dc.js';

但这似乎是针对不同版本的 Analytics(Classic Analytics 跟踪代码,我使用的是新的 Universal Analytics)...

But this seems to target a different version of Analytics (Classic Analytics tracking code, and I am using the new Universal Analytics)...

我是否应该更换:

})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

有什么?(例如)

})(window,document,'script','//stats.g.doubleclick.net/analytics.js','dc');

此外,我真的需要启用广告商功能来跟踪访问者的年龄和性别吗?我目前无意使用 AdSense.

Also, do I really need to enable Advertiser Features in order to track visitors age and gender? I have currently no intention in using AdSense.

推荐答案

据我所知,Universal Analytics 直到第 3 阶段才能使用该功能.

As I know , the feature is not available for Universal Analytics until phase 3.

此链接包含有关通用模式的更多信息:https://developers.google.com/analytics/devguides/collection/upgrade/

This link has more information about Universal Mode: https://developers.google.com/analytics/devguides/collection/upgrade/

有关在经典模式下执行此操作的更多信息,请参阅以下文章.http://online-behavior.com/analytics/demographics

Refer the article below for more info about do it in Classic Mode. http://online-behavior.com/analytics/demographics

升级页面在重要注意事项"(强调hjpotter92):

The upgrade page has the following content under the section "Important Considerations" (emphasis hjpotter92):

Universal Analytics 不支持 dc.js JavaScript 库,但将在来年.如果您依赖 dc.js 相关功能,例如再营销、Google 展示广告网络展示报告、DoubleClick Campaign Manager 集成或 Google Analytics人口统计和兴趣报告,不要升级到通用还没有分析.等到你看到一个关于 dc.js 的公告Universal Analytics,然后升级.

Data integrations related to the dc.js JavaScript library aren’t supported, but are coming soon.

The dc.js JavaScript library isn't supported in Universal Analytics, but will be in the coming year. If you rely on dc.js related features, such as Remarketing, Google Display Network Impression Reporting, DoubleClick Campaign Manager Integration, or Google Analytics Demographics and Interests Reports, do not upgrade to Universal Analytics yet. Wait until you see an announcement about dc.js in Universal Analytics, and upgrade then.

这篇关于在 Universal Analytics 中启用人口统计和兴趣报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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