Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

General Discussion

Luke Gibson
Luke Gibson
4,822 Points

Do I have to tell visitors the site is using Google Analytics?

Hey, this may be a silly question but I see on a lot of sites that they have to say that they are using cookies, does using Google Analytics need the same thing, so do I need to create something at the top of my pages to say that I am using it?

Konrad Pilch
Konrad Pilch
2,435 Points

In addition to the question, why do we need to tell the user that the site is using cookies? What if we don't say that the site uses cookies?

1 Answer

Jason Anders
Jason Anders
Treehouse Moderator 145,624 Points

Hey Luke,

As far as I know, no, you don't need to inform on the use of Google Analytics. Almost every site uses some form of Analytics or Data Metrics. I do know that if you are using Google Ads, however, you do need a Privacy Policy on your page.

And Konrad, again as far as I know, the "cookie law" is only in the EU (regarding any EUROPA website), and the government there figured this was a good way to protect the privacy of the user. You can read more on that in the EU Internet Handbook. As for other parts of the world, informed consent is not needed... yet.