Use the steps provided below to verify that consent signals are being passed correctly.
Failure to implement AMP consent correctly can result in a significant loss of revenue.
- We recommend running the test twice - once for 'decline', and once for 'accept'.
- Use a browser testing tool like BrowserStack to specify a location in the EU.
The instructions below presume BrowserStack. Similar steps can be performed using a VPN.
Open BrowserStack and perform the following steps:
- Load a mobile device with Google Chrome browser.
- In the vertical toolbar (left), click on Change Location and select a location in the EU.
- Use Google Chrome to browse to an AMP article. When prompted, accept/decline the consent message.
- Scroll down to a Taboola Ad.
- In the vertical toolbar (left), click on DevTools to open a DevTools window.
- Within the DevTools window, click on the
Select Elementtool (top, left) - and then click on the above Taboola Ad.
This sets the current context to the <iframe> that contains the Taboola content.
Make sure to tap the mouse lightly, so that you only select the element, without navigating away to the target URL.
- Within the DevTools window, select the Console tab.
- Check that the correct value is returned:
|User provided consent|
|User declined consent|
Once the user declines consent, Taboola content no longer displays.
data-block-on-consent='_till_responded' to each
<amp-embed width=100 height=100 data-block-on-consent='_till_responded' type='taboola' ... data-url=''> </amp-embed>
This ensures that Taboola can still display contextual content, even after the user declines consent (based on factors that are not user-specific).
For more information about amp-consent, refer to the AMP documentation.
AMP articles do not bring up a consent message.
Make sure that amp-consent has been implemented for all your AMP articles.
Updated 6 months ago