Is it possible to get demographic and interest information from DoubleClick cookies?
-
We use Google Analytics and we are currently extracting information from the Google Analytics cookies about our visitors.
Is it possible to access DoubleClick cookies in a similiar fashion and get some demographic/interest information for each visitor to our website (if they have a DoubleClick cookie set)? If so, any information on how to retrieve it would be very appreciated.
-
I wanted to get this information on my server by parsing out the double click cookie using javascript. Is this possible?
-
I believe this is exactly what I was looking for. I will test it out this week.
Thank you very much Paul!
-
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
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
If website users don't accept GDPR cookie consent, does that prevent GA-GTM from tracking pageviews and any traffic from that user that would cause significant traffic decreases?
I've been doing a lot research on GDPR impact and implementation with GTM-GA for clients, but it's been 12 months since GDPR has gone live I haven't found anything on how GA traffic has been impacted if users don't accept cookie consent. However, I'm personally seeing GA accounts taking huge losses in traffic since implementing GDPR cookie solutions (because GTM/GA tags aren't firing until cookies are accepted). Is it common for websites to see significant decreases in traffic due to too many users not accepting cookie consent? Are there alternative solutions to avoid traffic loss like that and still maintain GDPR compliance? It seems to me that the industry underestimated how many people won't accept cookie consent. Most of the documentation and articles around GDPR's start (May 2018) didn't foresee or cover that aspect properly, everything seems to be technically focused with the assumption that if implemented properly most people would accept cookie consent, but I'm personally not seeing that trend and it's destroying GA data (lost traffic, minimal source attribution, inaccurate behavior data, etc). Thanks.
Reporting & Analytics | | Kickboard2 -
Referrals - How is it possible I have 5 new users and 100 sessions over a 2 week period?
I have a referral from an email (2), android search(1) and another website(2) but my sessions is 100 over a two week period? I have NO returning visitors (still session data though?) Seems unlikely that just these 5 users have generated 100 sessions!! Any ideas?
Reporting & Analytics | | darrenbooy0 -
Possible penalty question - need expert help
hallo everyone, I am posting this question to the MOZ community, because I could not find any useful information or proper advice so far, even after consulting a few local SEO experts. I noticed from the end of september a steady and consistent decrease in visits (please see attached pdf) for my website https://bastabollette.it I lost so far almost 40%. Please consider that I have not changed my habits in blog posting lately, both in quantity and quality. I have not made any subtantial change on the website lately. I did a general audit of the site asking to an expert but apart from some generic suggestions (like: "work on increasing PR, add more quality backliks, use more no-follow links, fix broken links" - things I am currently going to fix anyway) I don't really understand the reason of the drop. Please also note the strange drop of 11/22/15 (see search console screenshot). Can you please help me? thank you. Selezione_018.jpg Selezione_019.jpg
Reporting & Analytics | | micvitale0 -
Is it possible to have a GA event and a GA virtual pageview fire off of the same click?
If we can only choose one, we'll likely go with the Event, but I'm hoping we'll be able to do both and gather more data about when certain pages (even if they are virtual) are viewed in the path to conversion.
Reporting & Analytics | | KNect3650 -
Why am i getting a flux of increase in Impressions on my site & then it decreases
They guys. Hope everyone is having a great week. I wanted to get some inputs from you guys in regards to what is happening to my site that i quite don't understand. Every month or so i get this influx of high visibility with impressions for my keywords and then the impressions go away but my rankings still keep going up. Has anyone experienced this before and can give me some insight on what is going . Why do i get such a big jump and then it dies off only to return again a month later or 2 months later. I know you guys want probably some info from my site or from analytics or webmaster tools so i will provide as much as i can . For now i have included a screen shot. ScreenShot2013-06-04at31220PM_zps0d02f5fc.png ScreenShot2013-06-04at31134PM_zps5bb81b68.png ScreenShot2013-06-04at31134PM_zps5bb81b68.png ScreenShot2013-06-04at31220PM_zps0d02f5fc.png
Reporting & Analytics | | BizDetox0 -
Cookies/Tracking/Code developement
So. I have an online application form, on the website. It's maked with php, html and css. What i like to place on the email, is a cookie tracking system. For example, when someone search on the google for " web design ", and then see my result on google organic, comes the visitor to my site, charge the fields of application forms and click send. Than, me like an admin, i receive an email with informations of a customer, i see name/surname/etc.. but i like to integrate is for example, like to see a: IP from Visitors, who charged the fields Referrerr, if google, like to see which query he typed. How can i do this please?
Reporting & Analytics | | leadsprofi0 -
I am showing no (not provided) visits in GA. Is that possible?
When reviewing Organic search traffic on my site, there no (not provided) visits. Not one. I searched for the term while viewing all keyword visits and still nothing! I find that hard to believe that is possible with 6,000 monthly visits. Is something wrong? Help?!
Reporting & Analytics | | SignifyMarketing0