Hello,
I recently had the need to use the title attribute of a link as a variable for my event tracking. I patched google_analytics_et.js to make this possible. Let me know if this is something you would be interested in integrating into the module. I can do some documentation updates to accommodate the attached code patch. Feedback always welcome.
Cheers, Leah
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | create_variable_for_link_title_attribute-2279227-3.patch | 1.79 KB | asrob |
| google_analytics_et_title_variable.patch | 2.05 KB | leahtard |
Comments
Comment #1
markabur commentedNice, I was looking to use the link's node title as the event label, and this lets me do it via the !title token.
Please generate the patch from within the module folder, not from the drupal root.
Thanks!
Comment #2
nattyweb commentedExactly what I was looking for - so pleased to find this patch. After removing the module folder location from the patch I was able to successfully apply it to Google Analytics Event Tracking 7.x-1.2.
Thanks very much!
Comment #3
asrobAttached a new patch.
Comment #5
asrobComment #7
frobThis has a console.log call in it.
Please remove that line from the patch.