# Monitoramento eficaz de eventos para métricas orientadas a Page View

**URL:** https://meta.discourse.org/t/effective-event-watching-for-page-view-oriented-metrics/121125
**Category:** Development
**Created:** [Junho 24, 2019, 2:25am UTC](https://meta.discourse.org/t/effective-event-watching-for-page-view-oriented-metrics/121125 "2019-06-24T02:25:19Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Terrapop](https://avatars.discourse-cdn.com/v4/letter/t/ecd19e/32.png) [@Terrapop](https://meta.discourse.org/u/Terrapop)
#### Post date: [Agosto 15, 2020, 6:53pm UTC](https://meta.discourse.org/t/effective-event-watching-for-page-view-oriented-metrics/121125/3 "2020-08-15T18:53:29Z")

</div>

Infelizmente, isso não é suficiente, pois a árvore DOM não é totalmente criada nesse evento. Veja aqui:

> [@virtualPageView and the virtual DOM](https://meta.discourse.org/t/virtualpageview-and-the-virtual-dom/160975):
>
> 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 \<div id="adunit\_x"\>\</div\> 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 conta…

---

_[View the full topic](https://meta.discourse.org/t/effective-event-watching-for-page-view-oriented-metrics/121125)._
