We want to use GTM to inject ads into the DOM. We installed the ads plugin and set up the various empty house ad types with div containers like
However, when evaluating the id of all ad div containers on virtualPageView the ads between the posts have not rendered, yet. Probably because the virtual dom has not rendered everything on the virtualPageView event that we’re using to trigger the evaluation.
When adding a timeout e.g. 3000ms before evaluating all ad div containers it works.
Is there any event we could leverage in GTM that signals the initial virtual dom has been rendered after virtualPageView has been fired?