Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to track utmz? #30

Open
andre8888 opened this issue Feb 7, 2014 · 0 comments
Open

How to track utmz? #30

andre8888 opened this issue Feb 7, 2014 · 0 comments

Comments

@andre8888
Copy link

I'm having issue with utmz (campaign referer tracking) and GA is reporting the source as DIRECT with one of our running campaigns. The cookies[:__utmz] is returning empty string. Here is the snippet of code:

gabba = Gabba::Gabba.new(Rails.application.config.ga_tracking_id,
Rails.application.config.ga_tracking_domain, request.env['HTTP_USER_AGENT'])
gabba.identify_user(cookies[:__utma], cookies[:__utmz])
gabba.referer request.env['HTTP_REFERER']
gabba.event(category, action, label, value)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant