Replies: 3 comments
-
|
Hi, in this context, embedded 3rd-party content means embedded YouTube or Vimeo videos, SoundCloud tracks or social media posts. In case you want to show a cookie banner for custom JS that is added to your pages, you can use the <am-consent type="script">
console.log('Hello you!');
</am-consent>or <am-consent type="script" src="https://domain.com/script.js"></am-consent>Note This has to be added to a custom HTML field and not to the JS field! A while ago I wrote a little blog post with more information about the cookie banner feature. |
Beta Was this translation helpful? Give feedback.
-
|
Good read! The consent popup does show up now. Still, there's something I'd like to clear on how it works. What exactly is the function of the Decline button? Clicking it makes it disappear, but then the popup can be dismissed by pressing the cookie. Then on page reload the popup still shows, just without the Decline button and is possible to dismiss. Is this by design? If it is, then I'm perfectly aware of why, but I just wanted to confirm. |
Beta Was this translation helpful? Give feedback.
-
|
The state of the banner is dependent of the choice of the visitor. So if the visitor didn't accept or decline, the popup will show always both options, full opened. If the user declined, the popup will always show for opt-in again in order to keep a page usable. If a user accepts, the popup will be in a dismissed state and can be opened using the cookie icon in order to revoke consent. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How exactly does the cookie consent system work? The info says that Automad will automatically show a cookie consent banner when embedded third-party content is detected. But I have the standard google stuff embedded in head and body, and the
AM_CONSENT_CHECK_ENABLEDis set to true, yet no banner did show up. I didn't see anything in the output page source either. Then I added custom text to all the applicable consent options, but still nothing. What am I missing?Beta Was this translation helpful? Give feedback.
All reactions