# Implementing Google Tag Manager with Discourse

**URL:** <https://meta.discourse.org/t/implementing-google-tag-manager-with-discourse/36861>\
**Category:** Data & reporting\
**Created:** [December 17, 2015, 11:23pm UTC](https://meta.discourse.org/t/implementing-google-tag-manager-with-discourse/36861 "2015-12-17T23:23:09Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![polusok](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/polusok/32/106741_2.png) [@polusok](https://meta.discourse.org/u/polusok)\
**Post date:** [July 12, 2016, 5:03pm UTC](https://meta.discourse.org/t/implementing-google-tag-manager-with-discourse/36861/13 "2016-07-12T17:03:32Z")

</div>

@shri @neil googletag api in DFP is [Google Publisher Tag api](https://support.google.com/dfp_sb/answer/1649768?hl=en) but not google tag manager. I’m not quite sure how DFP google publisher tag api can influence on google tag manager.

Also I turn on GTM debug mode.

1. open discourse
2. click topic
3. go to home page
4. click another topic

**Only 1 pageview is triggered** , however I was expecting 4 pageviews per above.

And here [Adding Google Analytics Tracking - Helpers & Components - Ember Guides](https://guides.emberjs.com/v1.10.0/cookbook/helpers_and_components/adding_google_analytics_tracking/) outlined need to add code to router

---

_[View the full topic](https://meta.discourse.org/t/implementing-google-tag-manager-with-discourse/36861)._
