This functionality was built directly into Google Analytics back in October, William. By changing a line in your on-page tracking code to use the Doubleclick js instead of the regular ga.js, you can pull the demo/interest info into your Google Analytics automatically.
You change this line...
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
to this...
ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
A couple of things to note:
- the biggie! This functionality is only available in the classic Analytics. It hasn't yet been enabled in Universal Analytics, so if you want to use it, you'll need to stick with the classic version.
- you must also modify your site's Privacy Policy to indicate how this additional data will be used
- you'll need to turn on Enable Demographics and Interest Reports in Property Settings
- this change will also allow you to create and collect data for Remarketing campaigns
Once you've made the above changes, you should go to Audience > Demographics > Age to validate the code and confirm that the change has been successful.
That what you were looking for?
Paul