This guide helps to ensure that the page only contains required tags and prevents incompatible tags which could cause problems.
If the page contains ad stacks like AdSense, GPT or others, they need to be removed. All necessary tags will be loaded by AdEngine in an optimized way.
When migrating from AdEngine v2 to v3, some page element need to be removed or changed. Follow the individual integration guides how to setup AdEngine v3 and cleanup the tags described here.
Remove the following example tags from the page head element:
<script> var snhb = snhb || {}; snhb.queue = snhb.queue || []; snhb.options = { ... }; </script>COPY |
Remove the snhb script loading tag from the page head element:
<script async src="https://cdn.snigelweb.com/pub/**your.domain**/**timestamp**/snhb-**your.domain**.min.js" type="text/javascript"/>COPY |
Remove extra script that we used for adhesion-footer units. We are loading all needed scripts via AdEngine now.
<script async type="text/javascript" src="//cdn.snigelweb.com/extras/StickyAdunits.min.js"></script>COPY |
AdConsent is loaded and configured automatically by AdEngine v3. All tags for AdConsent should be removed from the page.
Remove the following example tags from the page head element:
<script> __cmp("setLogo", "https://www.example.com/logo.png"); __cmp("setPrivacyPolicy", "https://www.example.com/privacy"); adconsent('enableGoogleAnalytics', true); adconsent('setPrivacyPolicy', "https://www.example.com/privacy"); adconsent.gdpr('reconsiderConsent', 48); adconsent.gdpr('setLogo', "https://www.example.com/logo.png"); adconsent.gdpr('enableWelcomeTitle'); adconsent.gdpr('enableWelcomeText'); </script>COPY |
Remove the snhb script loading tag from the page head element:
<script src="//staging-cdn.snigelweb.com/adconsent/adconsent.js" type="text/javascript"></script>COPY |
<script src="//cdn.snigelweb.com/sncmp/latest/sncmp_stub.min.js" type="text/javascript"></script>COPY |
If the page loads GPT, remove all tags in the head element for loading and configuring GPT. This includes tags shown in the following examples:
<script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js" type="text/javascript"/>COPY |
<script> window.googletag = window.googletag || {cmd: []}; googletag.cmd.push(function() { googletag.pubads().disableInitialLoad(); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); </script>COPY |
If the page loads AdSense, remove all tags in the head element for loading and configuring AdSense. This includes tags shown in the following examples:
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" type="text/javascript"/>COPY |
<script> (window.adsbygoogle = window.adsbygoogle || []).pauseAdRequests = 1; </script> |