Static GitHub Issues

[674] google tag manager example

prev: Help needed: Nuxt and vue-dropzone
next: Frustrated - Trying to use vue-particles in nuxt.js without success

it's almost the most developer friendly technology ever,, in my opinion .. keep moving forward.

Steps to reproduce i'v tryed to add https://tagmanager.google.com to my nuxt app, followed this example https://nuxtjs.org/faq/google-analytics here and it works fine for just google analytics,, unlike analytics .. google tag manager requires two steps to include it in your app the first is a head script tag, the other is a noscript tag needs to be placed immediately after body opening tag. this is the script tag included as explaned in the analytics example: screenshot from 2017-05-06 21-15-12

this the included noscript tag:

<noscript>
    <iframe src="//www.googletagmanager.com/ns.html?id=GTM-XXXXXX" height="0" width="0" style="display:none;visibility:hidden"></iframe>
</noscript>

it works but with no effect router.afterEach() and it causes this error screenshot from 2017-05-06 21-08-54

thanks in advance ...

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c580">#c580</a>)</em></sub></div>