railslove / rack-tracker

Tracking made easy: Don’t fool around with adding tracking and analytics partials to your app and concentrate on the things that matter.
https://www.railslove.com/open-source
MIT License
647 stars 121 forks source link

(not-set) in google analytics when sending events from server side? #106

Closed cqcn1991 closed 6 years ago

cqcn1991 commented 6 years ago

I track some event server side using rack-tracker

However, when I view the results in GA, it seems like location, browser info are all not set when sending from server-side.

I want to know, how can I fill this information? I think this info can all get from cookies and then sent to GA from server-side?

bumi commented 6 years ago

this is the current google analytics template: https://github.com/railslove/rack-tracker/blob/master/lib/rack/tracker/google_analytics/template/google_analytics.erb You should see there what information is injected.

if something is missing please open an issue. thanks.