Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1) First of all, you need to add the following code to the head of the page before any other ad serving code (including Clickio Consent Tool code).
- <script type="text/javascript">
- var consentCallbackQueue=function(e,o){var t=!1,n=!1;let a=[],g=!1,l=!1,s=function(){g=!0,a.map(function(e,o){void 0!==e&&(e(t,n),a[o]=void 0)})};return document.documentElement.addEventListener("clickioConsentEvent",function(o){var a;a=o.detail.state,l=!0,null===a?(t=!0,n=!0,s()):-1===a||(0===a?(t=!1,n=!1,s()):1===a&&(t=!!e.__lxG__consent__.getGoogleConsentMode(),n=!!e.__lxG__consent__.getPurposeOneAllowed(),s()))},!1),setTimeout(function(){l||document.documentElement.dispatchEvent(new CustomEvent("clickioConsentEvent",{detail:{state:0}}))},5e3),{push:function(e){g?e(t,n):a.push(e)}}}(window);
- </script>
- 2) Your current Outbrain tag looks like this:
- <script>advShow("outbrain")</script>
- You need to replace current Outbrain tag by the following script:
- <script>
- consentCallbackQueue.push(function () {
- advShow("outbrain")
- });
- </script>
- 3) For DAZN I see you have this - https://clickio.gyazo.com/5e76bd000a70276c4f795b9dcddb961b
- You can replace this:
- <script src='//player.daznservices.com/player.js#f6504ec0529657dde762e04a08.1lkoo03uzob8f1ti95biym6uo2' async><\/script>
- by this:
- <script>consentCallbackQueue.push(function () {var s=document.createElement('script'); s.src='//player.daznservices.com/player.js#f6504ec0529657dde762e04a08.1lkoo03uzob8f1ti95biym6uo2'; s.async='async'; document.querySelector('vip-box').appendChild(s); });</script>
Add Comment
Please, Sign In to add comment