Welcome to WebmasterWorld Guest from 54.198.55.167

Forum Moderators: martinibuster

Message Too Old, No Replies

AMP and EU Cookie Consent, how to?

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

Preferred Member

Top Contributors Of The Month

joined:Nov 13, 2016
posts:596
votes: 89


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,
10:27 am on Nov 13, 2016 (gmt 0)

Senior Member from GB 

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

joined:Nov 16, 2005
posts:2809
votes: 129


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.
11:05 am on Nov 13, 2016 (gmt 0)

Preferred Member

Top Contributors Of The Month

joined:Nov 13, 2016
posts:596
votes: 89


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?
7:33 am on Nov 15, 2016 (gmt 0)

Senior Member from GB 

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

joined:Nov 16, 2005
posts:2809
votes: 129


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.
2:56 pm on Nov 16, 2016 (gmt 0)

Preferred Member

Top Contributors Of The Month

joined:Nov 13, 2016
posts:596
votes: 89


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,
3:29 pm on Nov 16, 2016 (gmt 0)

Administrator from GB 

WebmasterWorld Administrator engine is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:May 9, 2000
posts:25606
votes: 771


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...]
12:23 pm on Nov 17, 2016 (gmt 0)

Preferred Member

Top Contributors Of The Month

joined:Nov 13, 2016
posts:596
votes: 89


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.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members