adswerve / universal-analytics-python

Universal Analytics Python module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Associate existing session with tracker

intellisense opened this issue · comments

When custom metric is triggered taking care of user client id via cookie. Google analytics dashboard not able to tell how user get to that page when the custom metric was triggered e.g. It can't say that in the session where the event was triggered the user also visited 10 pages.

So basically when we create the tracker:

tracker = Tracker.create(ga_property_id, client_id=client_id)

Is there way to associate existing session looking into cookies instead of creating a new session every time?

Let me know if this is confusing, i will try to elaborate more on it. Thanks!

Oops! stupid me I was only considering the third part as client id while last two parts of cookie together makes the client id:

image