-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
amp-consent ✨ 📖 Add SourcePoint to CMPs list #23917
amp-consent ✨ 📖 Add SourcePoint to CMPs list #23917
Conversation
Not sure what to do about the failure reported by Travis. It seems there're some dead links in the |
Really sorry to spam you @zhouyx but there's a small pressure on me to deliver our AMP solution 😬 Is there any way you could have a look at this PR? |
Sorry about the delay here. Was back from a trip. Taking a look now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zhouyx the check consent url was wrong, my bad. It should be working now. |
@andresilveirah Thank you! I am able to see the example you provided now. Two things I noticed
|
Hi @zhouyx sorry for the delay. There was a mistake on my side. I just fixed that and, at least locally, it seems it's working. |
Thank you @andresilveirah. I don't see the fullscreen now. However, the flickering UI still exist because the To fix this, I think we can follow either approach:
Please note that |
@zhouyx I see what's happening here. Our platform relies on cookies to determine if the user should see the consent message or not. There's a chance the user ends up in a state in which I've just tested in an incognito window and it seems to be working as expected. The user first sees a fullscreen message, clicks on accept and, upon reloading the page, the flickering is gone.
I've tried that as well, but if I don't send the
Not sure this would be possible for us given our dependency on cookies to identify the user's consent state. Having said all that. I've made some changes to our ui that addressed the flickering (at least from the user perspective) as well as the inconsistent state between amp-consent's localStorage and our cookies. Namely:
Could you give it yet another try and share your thoughts? |
Thanks for the explanation. I think it is valid use case to load the iframe and then decide whether consent UI should be displayed to user or not.
Thanks for reporting. This is a bug on our end. Fixed by #24105 which is merged.
Got it. You're right, cookies won't be available in this case. I'm not seeing the flickering anymore, thanks for the fix.
By calling dismiss faster is it guaranteed to eliminate the flickering, or that happens at a lower percentage? With #24105 in, do you think it's worth it to have I got this error when clicking |
I believe it's not guaranteed to eliminate the flickering. There might exist a timing issue in which the consent ui code takes longer to be evaluated than the
Not sure I understand the order of execution here. Given our ui decided the message won't show, but we do have consent info stored in the cookies, should we call |
Hello @andresilveirah, sorry about the delay in response. I am traveling this week.
Great question. You're right, the most common execution would be Let me know what do you think. Also if the PR is ready for review again. Thank you! |
Hey @zhouyx sorry for the delay. Can you have another look? I'm also bringing @mguerra10128 to the conversation since I'll be on vacation from Friday on. |
Thank you @andresilveirah This looks great to me 🎉 |
Thank you for adding your support to AMP 🎉 🎉 |
Thank you @zhouyx ! 🎉 |
@zhouyx not sure if I'd have to tag you here since this is a PR related to
<amp-consent>
sorry if that's unnecessary.