-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
option hitCallback
doesn't work for google analytics.
#102
Comments
Even using the trackPage function doesn't work: metrics.trackPage({
page: '/sent2messenger',
title: 'sent2messenger',
hitCallback: exitToMessenger
}) |
Also I think it'd be good to take whatever my solution ends up being and add it to an #Extra Examples section around the bottom of the readme (figuring out the eventCategory, eventAction, etc keys was a little tricky) |
fix pending merge here: #103 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to track outbound link navigations, and found that the way to do this with google analytics is to send an event and in the options set a
hitCallback
key to a function that will be called when the event has been received. This just flat out doesn't seem to work.. here's my component.js:Searching something along the lines of 'analytics track outbound link' I find this help article from google analytics suggesting this method: https://support.google.com/analytics/answer/1136920?hl=en
Here's the docs on hitCallback: https://developers.google.com/analytics/devguides/collection/analyticsjs/sending-hits#hitcallback
I'd love to get this fixed and tested asap so that the ember community can have one comprehensive addon for analytics
The text was updated successfully, but these errors were encountered: