• Resolved axop9

    (@axop9)


    Hi, is there a way to show UI consent in Web Stories? I read guideline in AMP.dev and it can be done adding a script tag in <head> and a <amp-consent> code in the <body>. For sure, it’s easy if I embed web stories inside an article, but how can I do it in the main page of a Web Story? I mean in the main page of the story reaching it directly by its URL.

    I’m asking it because of adv monetization, so it compliants with IAB. How can I add all required code from my CMP inside a Web Story page? I tried to modify some files inside your plugin, but I was not able to do it in the right way. Any advises or any infos about a future update in plugin?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Pascal Birchler

    (@swissspidy)

    Hi there,

    Great question!

    There’s currently no built-in way to add amp-consent for stories, as it’s usually best to use another plugin like WP GDPR Cookie Notice for this that supports AMP (with Web Stories support yet to be added though)

    Note that editing plugin files is not recommended. There are hooks that can be used instead to print the necessary tags.

    Are you already using such a consent plugin elsewhere on your site? If so, you might want to ask the developers to add Web Stories support. Happy to provide some guidance.

    Thread Starter axop9

    (@axop9)

    Yes, I use a plugin from my CMP, but it does not support Web Stories AMP. I have already contacted the developers to ask when and if they will support Web Stories.

    In the mean time, I was thinking a way to resolve this problem, but I have not so many skills about coding. My idea is to use a way similar to the login redirect: when reaching the Web Story URL, if the consent has never been given by user, it redirects to a page with UI consent; after collecting the consent, it redirects to the Web Story URL. If the consent is already been collected, it shows directly the Web Story URL.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘IAB and amp-consent’ is closed to new replies.