Enable Demographics and Interests reports in Universal Analytics

旧城冷巷雨未停 提交于 2019-12-03 01:26:26
Ishara Shehan

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

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

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


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

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.

Using Demographics and Interests reports in analytics.js

In order to enable Demographics and Interests reports in Universal Analytics, you need to alter your tracking code slightly to include a required directive:

ga('create', 'UA-XXXXXX-XX', 'example.com');

ga('require', 'displayfeatures'); enables Demographics and Interests reports

ga('send', 'pageview');

But please note that you must also update your privacy policy if you add this code! (emphasis mine)

If you choose to support Display Advertising, you need to make a simple, one-line change to your Google Analytics tracking code. Once you have made this change, Google Analytics collects the information it normally does, as well as the DoubleClick cookie when that cookie is present. For more information about this cookie, visit the Google Advertising Privacy FAQ. When you make this update to your tracking code, you also need to update your privacy policy.

This modification does not impact any customizations you have previously made to your code.


Use ga.js and analytics.js simultaneously

You can use both analytics.js and ga.js simultaneously without negatively impacting your Analytics.

The analytics.js snippet is part of Universal Analytics, which is currently in public beta. New users should use analytics.js. Existing ga.js users should create a new web property for analytics.js and dual tag their site. It is perfectly safe to include both ga.js and analytics.js snippets on the same page.

Since this question is still getting a lot of attention, I would like to point out that Universal Analytics is now on Phrase 3 and is able to generate demographics and interests reports. To track this information change your JavaScript code and add ga('require', 'displayfeatures'); after ga('create', 'UA-999999999-9', 'whatever.com') .

ga('create', 'UA-999999999-9', 'whatever.com');
ga('require', 'displayfeatures'); // enables demographics and interests reports
ga('send', 'pageview');
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!