Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Easier injection of existing cookie params #3

Closed
outoftime opened this Issue · 1 comment

2 participants

@outoftime

Hi there,

I'm using Gabba to power a hand-rolled email open tracking pixel. It's hitting a normal action in our Rails app, so for users in web-based email clients, we have a shot at grabbing their existing Analytics cookie, in particular the __utma parameter. It'd be nice if there were a straightforward way to inject this into the Gabba instance, but the best I could come up with was to call cookie_params, do a regexp substitution of the __utma bit of that, and then set utmcc to the result. In particular, I would want to continue using Gabba's randomly-generated __utmz parameter, since the referral information contained in the real cookie is bogus.

I'm happy to submit a patch if you'd like!

Mat

@deadprogram
Owner

Sorry about the delayed response. Let me take a look at that...

@deadprogram deadprogram closed this issue from a commit
@tomblomfield tomblomfield Added #identify_user method to grab existing __utma identifier from c…
…ookies

Fixes #3

Gabba will continue to work as normal if identify_user is not called, or if
it is passed a nil value - ie random strings & date are used for the utma
value.

Some annoying diff-cruft due to whitespace. Sorry!
fec0860
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.