Forum Moderators: open

Message Too Old, No Replies

AMP and EU Cookie Consent, how to?

         

Dimitri

10:11 am on Nov 13, 2016 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member Top Contributors Of The Month



Hi,

Since AMP is allowing no inline javascript, or third party things (beside a restricted number), how can you implement the EU cookie consent message? How can you display a message only to EU visitors, since the page can't embed javascript , and will be cached by Google? Doesn't it end having to show the cookie consent message to ALL visitors, and therefor only in English ?

Thanks,

graeme_p

10:27 am on Nov 13, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Firstly, there is no requirement that AMP be cached by Google, so just do not use the Google cache.

Secondly, is there any requirement that the cookie consent message language matches the language of the page? Not great user experience, but it may well be legal to just show the message in English.

Dimitri

11:05 am on Nov 13, 2016 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member Top Contributors Of The Month



I might be wrong, but I understand that when a page is in the AMP format, this is a link to the Google's cache, which is showing in the SERP, so people are not accessing your page from your server, but form Google's cache. As a result, at your server level, it's Google's IP which is showing , and not the real visitor's IP (I bet Google can argue that it's adding to the security/safety of visitors). So, how can you show the Cookie Consent statement, "only" to EU visitors, if you can't know the real IP of the visitor, and can't use Javascript, and can't even know the accept language of the browser?

graeme_p

7:33 am on Nov 15, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yes, Dimitri, you are right.

I wonder who is legally responsible in those circumstances? If you show the warning to those visitors to your site you can identify as from the EU, then are you covered? Who is responsible if someone else, without your permission, decides to show EU visitors a cached version of your site that does not include the cookie warning.

I suspect the legislation does not consider this.

Dimitri

2:56 pm on Nov 16, 2016 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member Top Contributors Of The Month



The whole EU Cookie consent law is awkward, but that's another subject :-)

Now, I had an idea, that I 'll try to experiment, since AMP allows displaying iframes which content doesn't need to be in AMP, I am considering creating such iframe banner, serving a page from my server, which would display the Cookie consent message in the appropriate language, and to the appropriate visitors, and then be creative to display something else in this banner for the other visitors.

That's just a thought,

engine

3:29 pm on Nov 16, 2016 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



This is an important topic, Dimitri, thanks for raising it.

However, the AMP page served in Europe ought to serve the user a cookie consent if it is to comply with the law for the region. And then, you've got the language consent to consider, too.

How does this example work for you?

<script async custom-element="amp-user-notification" src="https://cdn.ampproject.org/v0/amp-user-notification-0.1.js"></script>

<script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>

<link rel="canonical" href="https://ampbyexample.com/components/amp-user-notification/">

<style amp-custom>
footer {
margin-bottom: 50px;
}
amp-user-notification {
padding: 8px;
background: beige;
}

</style>



<amp-user-notification layout=nodisplay
id="amp-user-notification1">
This is an amp-user-notification. It uses local storage to store the dismissed state.
<button on="tap:amp-user-notification1.dismiss">I accept</button>
</amp-user-notification>

This is an amp-user-notification. It uses local storage to store the dismissed state.

</body>
</html>


[ampbyexample.com...]

Dimitri

12:23 pm on Nov 17, 2016 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member Top Contributors Of The Month



Hi,

I saw this feature, but it seems to let you display a notification to ALL visitors, without being able to display it only to European ones.