Implementing Google Ad Manager Tracking Code on Web Pages

David Pong:
I have a question on using Google Ad manager and tracking for BF pages. In ad manager, 2 things are needed. 1 - some code is needed in the head part of the page, using the Assistant, it says to put this in the dom header insertions. The 2nd part is to add a bit of code after the tag. Where would this go?


Delfs:
The main code goes in DOM Inserts, Load Later

For the pages in an SPA youcan add soemthing like this:

  googletag?.cmd.push(() => {
    googletag.pubads().set('page_url', location.href);
    googletag.pubads().refresh();
  });

Delfs:
That would go in the onFormLaod for the page

You can wire it up globally also into the router into bg but the above is the simplest