Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter rmalcolm

    (@rmalcolm)

    Thank you this fixes the issue of duplicates in the header, but for some reason the body still expects there to be a duplicate ad still and it is calling for

    googletag.cmd.push(function() { googletag.display(‘gpt-ad-LB-EN-728×90-2’); });

    The -2 at the end means it thinks its the second ad still. I did not make our theme and I am not familiar with WP Hooks. Do you know why this might be happening/ a fix for it?

    I really appreciate your help on it so far!

    Thread Starter rmalcolm

    (@rmalcolm)

    What page is this on? On the homepage in the page’s source code I see this

    <script>
      googletag.cmd.push(function() {
      googletag.defineSlot('/61175202/GC-EN-Public-LB-728x90', [728, 90], 'gpt-ad-LB-EN-728x90-1').addService(googletag.pubads()); // LB - EN
    /* googletag.defineSlot('/61175202/GC-EN-Public-BB-300x250', [300, 250], 'gpt-ad-LB-EN-fallback-300x250-1').addService(googletag.pubads()); */
    googletag.defineSlot('/61175202/GC-EN-Public-BB-300x250', [300, 250], 'gpt-ad-BB-300x250-1').addService(googletag.pubads()); // Big Box EN
    googletag.defineSlot('/61175202/GC-EN-Public-LB-728x90', [728, 90], 'gpt-ad-LB-EN-728x90-2').addService(googletag.pubads()); // LB - EN
    /* googletag.defineSlot('/61175202/GC-EN-Public-BB-300x250', [300, 250], 'gpt-ad-LB-EN-fallback-300x250-2').addService(googletag.pubads()); */
    googletag.defineSlot('/61175202/GC-EN-Public-BB-300x250', [300, 250], 'gpt-ad-BB-300x250-2').addService(googletag.pubads()); // Big Box EN
      googletag.pubads().enableSingleRequest();
      googletag.enableServices(); });
    </script>

    Even though the page is only supposed to have 1 BB and one LB. The one that is commented out using /* */ is expected but they are all being duplicated for some reason on the homepage.

    • This reply was modified 4 years, 6 months ago by rmalcolm.
    Thread Starter rmalcolm

    (@rmalcolm)

    I had it on but now I disabled caching too so hopefully it should work this time, if it doesn’t I’ll have no idea why.

    Also just wanted to mention that the ads are showing up but they are being defined twice (can be seen in [ADINSERTER HEAD group=”Google tags”] in the header) which is causing some issues.

    Thread Starter rmalcolm

    (@rmalcolm)

    Hi, Sorry about that! Please look again.

Viewing 4 replies - 1 through 4 (of 4 total)