Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

google analytics policy

I've notice some websites have a pop-up letting visitors know they are using cookies or some type of tracking. Should I have a policy letting my visitors know that I am using Google analytic on my sites? Is it a definite requirement? And what is the best way to present it? - Separate page or pop up at footer?

Thanks, Mark C

3 Answers

Ethan Lowry
PLUS
Ethan Lowry
Courses Plus Student 7,323 Points

No, you're under no obligation or requirement to inform visitors you're using Analytics - all sites use it, and you've probably never gotten a notification saying so :) The cookies thing is a different issue.

Great! Thank you for your response. I just put it in my first website and the dashboard is exciting. I can't wait to see it months from now as the site grows!

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

Hi Mark,

You can use jQuery to put up a notification bar which in itself requires a cookie so users can remove it so long as the temporary file exists on their computer.

I wanted to link to the example I used on own site but I can't find it just now, so here's a link to a quick google search for adding notification bars to your website.

https://www.google.co.uk/#q=jquery+notification+bar

Cool! I always thought that pop up notification bar was nice to have on a site. I'll look into it and maybe implement it in the future.