Right now, the javascript/browser method doesn't work at all. The fourth argument to _gaq.push(), the GA Event value parameter, must always be a number but is currently always a string (everything in Drupal.settings is a string).
The Chrome GA debugger complains:
_gaq.push processing "_trackEvent" for args: "[Homepage Image,Viewed,Spring 2013,8]": ga_debug.js:25
The _trackEvent API expects a number value for argument 3. The argument given (8) was a string.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1969054-ga_push-numeric_argument.patch | 628 bytes | krlucas |
| #1 | 1969054-ga_push-numeric_argument.patch | 798 bytes | krlucas |
Comments
Comment #1
krlucas commentedAttached is a patch which converts the GA event value to a number before pushing.
Comment #2
krlucas commentedHere's a smaller patch which seems to work in Chrome though I'm less sure about the syntax.
Comment #3
gedur commentedpatch #2 works for me!
Nice job krlucas!
Comment #4
gedur commentedCommited to dev branch.