• Resolved khahina

    (@khahina)


    Hello,
    I install Complianz – GDPR/CCPA Cookie Consent with AMP for WP

    And since GSC send me avertising message on amp :
    L’attribut “data-block-on-consent” est répété plusieurs fois dans la balise “amp-ad”.
    The “data-block-on-consent” attribute is repeated several times in the “amp-ad” tag.

    That’s exact :i have this in google test tools :
    <amp-ad data-block-on-consent class=”amp-ad-2″ type=”adsense” width=300 height=250 data-ad-client=”ca-pub-xxxxxx” data-ad-slot=”xxxxxxx”data-block-on-consent=”_till_accepted”></amp-ad>

    Thank.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter khahina

    (@khahina)

    Some details :

    the error is visible with google test amp in html page code

    https://search.google.com/test/amp?id=z2BEoTd6XCZfLKymggd6PA

    <div class=”amp-ad-wrapper amp_ad_4″><amp-ad data-block-on-consent class=”amp-ad-4″ type=”adsense” width=300 height=250 data-ad-client=”ca-pub-3376535590978281″ data-ad-slot=”2535497371″data-block-on-consent=”_till_accepted”></amp-ad><span>Sponsorisé</span> </div>

    (picture to see detail : https://ibb.co/prC9McK)

    and yes on usual navigator this didn’t appear , just for google bot and test. But it’s a warning in GSC.

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    We already have support for GDRP in AMP can you please let us know why are you using that plugin and it’s use case to assist you further.

    Thread Starter khahina

    (@khahina)

    Hye
    i need complianz for non-amp pages (95% of my trafic).

    And i have just install it… it did’nt work in amp (front side)
    but why it write a data in amp-ad ???

    Complianz documentation say : it work with amp google version, not yours… but i don’t want change my amp plugins.

    Thread Starter khahina

    (@khahina)

    with complianz install and gpdr or notice cookies in amp desactivated
    (complianz banner didnt display on amp)
    <amp-ad data-block-on-consent class="amp-ad-4" type="adsense" data-loading-strategy=1 width=300 height=250 data-ad-client="ca-pub-3376535590978281" data-ad-slot="2535497371"></amp-ad><span>Sponsorisé</span>

    with complianz install and gpdr in amp activated
    error
    <amp-ad data-block-on-consent class="amp-ad-4" type="adsense" data-loading-strategy=1 width=300 height=250 data-ad-client="ca-pub-3376535590978281" data-ad-slot="2535497371"data-block-on-consent="_till_accepted"></amp-ad>

    without complianz and with gpdr in amp activated
    <amp-ad class="amp-ad-4" type="adsense" data-loading-strategy=1 width=300 height=250 data-ad-client="ca-pub-3376535590978281" data-ad-slot="2535497371"data-block-on-consent="_till_accepted"></amp-ad>

    `

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Can you please install the plugin manager and disable the “Complianz” plugin in Amp? And enable GDPR in AMP option panel.

    Ref: https://ampforwp.com/tutorials/article/what-is-ampforwp-plugin-manager-and-how-to-use-it/

    Thread Starter khahina

    (@khahina)

    Hye,

    seem to work
    i will revalidate all my amp pages in error but i think it’s ok .

    Thank you Sidi Ahmed

    • This reply was modified 3 years, 8 months ago by khahina.
    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Welcome!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Invalid AMP after installing Complianz’ is closed to new replies.