clickio

AreaNapoli dazn and outbrain codes

Jun 23rd, 2021 (edited)
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.54 KB | None | 0 0
  1. 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).
  2.  
  3. <script type="text/javascript">
  4. 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);
  5. </script>
  6.  
  7.  
  8. 2) Your current Outbrain tag looks like this:
  9.  
  10. <script>advShow("outbrain")</script>
  11.  
  12. You need to replace current Outbrain tag by the following script:
  13.  
  14. <script>
  15. consentCallbackQueue.push(function () {
  16.     advShow("outbrain")
  17. });
  18. </script>
  19.  
  20.  
  21. 3) For DAZN I see you have this - https://clickio.gyazo.com/5e76bd000a70276c4f795b9dcddb961b
  22. You can replace this:
  23.  
  24. <script src='//player.daznservices.com/player.js#f6504ec0529657dde762e04a08.1lkoo03uzob8f1ti95biym6uo2' async><\/script>
  25.  
  26. by this:
  27.  
  28. <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>
  29.  
  30.  
Add Comment
Please, Sign In to add comment