Mobile app version of vmapp.org
Login or Join
Sarah324

: If I'm using Google Tag Manager, can I still make "manual" calls to analytics.js? If I'm using GTM and I'm calling a Google Analytics Pageview on MyPage, can I also make a call (after the

@Sarah324

Posted in: #GoogleTagManager

If I'm using GTM and I'm calling a Google Analytics Pageview on MyPage, can I also make a call (after the call to invoke the GTM code) directly to analytics.js, such as:

ga('send', 'pageview', 'page path');

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Sarah324

1 Comments

Sorted by latest first Latest Oldest Best

 

@Welton855

Yes, you can, seems odd that you would, but you just need to know the name of the tracker object created by GTM (or you can also tell GTM to use a named tracker). Once you know the tracker name, you can then use the ga function call like this;

ga('gtm1234578.send', 'pageview')


where the tracker name is, for example, gtm12345678.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme