1

I'm starting with google analitycs.

Before I'll start implementing this into my pages I'm wondering if I'm able to get informations like average time at site, where my user came from, which devices they are using etc.

I would like to get those information from my VueJS front SPA application by async HTTP GET call and display those there. Is it possible?

If yes I would be very thankful if you provide some links to google API where I can find it or some tutorial.

BT101
  • 3,666
  • 10
  • 41
  • 90

1 Answers1

0

Since Universal GA you can't access users' origin data outside GA in your application. Before that you had all this juicy information inside a cookie, inside __utma, __utmz etc (more info here).

The information you're asking about (time on site, pages visited, etc) can be retrieved from GA afterwards if you make use of the userid feature.

pojda
  • 193
  • 9
  • I think they want to access the aggregated data not the per-user details. – Gabriel R. Dec 14 '18 at 09:53
  • Still the same, you don't have any information GA collected in your cookies or environments. Not at runtime anyways. The comment from https://stackoverflow.com/users/2943345/%d0%94%d0%bc%d0%b8%d1%82%d1%80%d0%be-%d0%91%d1%83%d0%bb%d0%b0%d1%85 is helpful if you want that information at another time. – pojda Feb 21 '19 at 13:26