The following message appears when viewing a site page in the chrome debug log.
Uncaught ReferenceError: _gaq is not defined
The pag
You can use the last version of analytics.js instead of ga.js
ga.js is a legacy library. If you are starting a new implementation we recommend you use the latest version of this library, analytics.js. For exisiting implementations, learn how to migrate from ga.js to analytics.js.
Here is an example:
ga('send', {
hitType: 'event',
eventCategory: 'Video',
eventAction: 'play',
eventLabel: 'cats.mp4'
});