0
votes

This confuses me. Let's say I want to integrate Google Analytics with my server-side web application. I basically want to track the events by users.

To do this I can use Measurement protocol event tracking with HTTP requests and on the other hand use analytics.js or Google tag manager to track events.

But I'm not sure which one to choose because couldn't understand the difference between them. What is the major difference ?

1

1 Answers

1
votes

The main difference is that the code of the analytics.js library just put it on the page and the pageviews will be tracked automatically with the various information relating to the resolution of the user's device, host name, page path, etc... while with the measurement protocol you have to indicate the parameters manually (this protocol is in fact useful for tracking those systems where the library code cannot be used, for example IOT).