Search code examples
javascriptnode.jsgoogle-analyticsuniversal-analytics

Google Universal Analytics - setting custom attributes


I am attempting to use Google Universal Analytics API to track events (https://developers.google.com/analytics/devguides/collection/analyticsjs/).

Is it possible to send/force some attributes, like operating system, event timestamp, location, and so on? I can't seem to find this in the documentation.

Thanks


Solution

  • Google Analytics added new properties to override the IP and User-Agent, so that takes care of os name and location. Here for more info: https://github.com/brsanthu/google-analytics-java/issues/8

    As for the timestamp, I created a custom dimension.