adswerve / universal-analytics-python

Universal Analytics Python module
BSD 3-Clause "New" or "Revised" License
107 stars 41 forks source link

Associate existing session with tracker #16

Closed intellisense closed 8 years ago

intellisense commented 8 years ago

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!

intellisense commented 8 years ago

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