2

If I make the cookies used by Google Analytics session cookies (ie they expire when you close the browser, instead of 2 years), what is the effect on the reports? Would it show repeat visitors as new ones?

Doing it as per the gtag.js guide

I also have anonymize_ip on and User_id off.

I'm taking these steps to comply with the EU "cookie law" and GDPR without having to ask consent.

  • Bit of a side issue... in Google Chrome (and possibly other browsers?), if the user has the option to "remember tabs/continue where I left off" selected in their browser (as I think many users do) then "session" cookies are actually restored upon reopening the browser. (So "session" cookies are effectively "permanent" in this scenario.) – MrWhite May 22 '18 at 12:08
2

The GDPR is about tracking people and cookies. If you do either, then you're definitely not off the hook. The fact that you reduce the duration of the cookie may help in some ways, but it doesn't change the fact that you have to have the "We're using cookies" warning for your European users.

Of course, by using session cookies, Google Analytics won't be able to tell you whether the user is a returning user. If your site doesn't get much returning users anyway, it won't make much of a difference and your users may appreciate the short time span of your tracking cookie.

What is the effect on the reports? Would it show repeat visitors as new ones?

Yes. Since without the cookie Google Analytics can't know whether it is a returning visitor, you lose the "repeat visitors" counters. Although they could make use of the IP address, they are expected to anonymize that information. So the only thing that helps Google Analytics with tracking people is the cookie.

As someone mentioned, though, a session cookie does not always disappear, but that's how you should think of them.

Most everything else should work as expected. I actually can't think of something else than the repeat counters that would be affected.

Note that it won't be impossible to see the repeat counter with a non-zero value if the Google Analytics session duration setting is "short enough" (i.e. 1h) and some users wait that long with your website still open in a tab and then do an action on your site. Action that Google Analytics will detect and count as a separate session.

  • Thanks for that. But I'm not really sure the first sentence is correct, GDPR is about Personal Data and not tech specific - it's broad enough to cover paper records. In any case, I should not have confused my question by mentioning GDPR - I'm just looking for the technical effects of changing the cookie expiration. I figured what you say in the second paragraph to be the case, but just wanted to double check. – user602088 May 23 '18 at 9:27
  • @user602088, ah, yes. I made an update to be clearer on the matter. – Alexis Wilke May 23 '18 at 23:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.