Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration with Google TagManager #64

Open
railainesantos opened this issue Nov 24, 2015 · 4 comments
Open

Integration with Google TagManager #64

railainesantos opened this issue Nov 24, 2015 · 4 comments

Comments

@railainesantos
Copy link

The official implementation of Google is that:

   <!-- Google Tag Manager -->
   <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-XXXX"
         height="0" width="0" style="display:none;visibility:hidden"></iframe>
   </noscript>
   <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
       new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
       j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
      '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
      })(window,document,'script','dataLayer','GTM-XXXX');
    </script>
    <!-- End Google Tag Manager -->

I tried a variety of ways through the events page: load and page: change. But I could not.

Can someone help me?

@tboyko
Copy link

tboyko commented Jun 3, 2016

For future readers, give this a shot: http://labs.wrprojects.com/how-to-use-google-tag-manager-with-rails-and-turbolinks/

@coderberry
Copy link

Link is dead

@tboyko
Copy link

tboyko commented Apr 19, 2018

@coderberry Must have been temporary; it's back up.

@dapi
Copy link

dapi commented Nov 8, 2019

Link is dead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants