-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Tagging Downloads for Tracking #1121
Comments
Looks like we'd need to add some meta info the tag. Because the HTML for that is made by the markdown parse the easiest thing is probably to insert some script into the template for that page to add it rather than trying to hack up the markdown parser for the just that page. |
So something like this: <a href="https://nodejs.org/static/documents/casestudies/Node_CaseStudy_Walmart_final.pdf"onClick="ga('send', 'event', { eventCategory: 'casestudy', eventAction: 'click', eventLabel: 'Walmart Case Study', eventValue: 0});">Read the full case study. This would link it directly back to our google analytics for tracking... |
Maybe using Google Tag Manager would help. It lets you add tracking events to actions without touching the code. Setting it up requires a bit of work but less than hacking the code I guess https://support.google.com/analytics/answer/6163791?hl=en |
Yes, we have that @danielkhan. Just looking to figure out how we can upload this HTML code into GitHub to make sure it's tracking. That's where I'm having some issues as I'm unsure where I would specifically do this in GitHub's interface. |
I see - so GTM is in place already, right? |
Yes, everything is set in Google Analytics and we are trying to track these as events, however I need to figure out how to embed HTML on our site to ensure that we are able to track. So it's all set on Google Analytics, now we need to match the code with the page. I hope that makes sense. This is new to me and something that I haven't dealt with before. @danielkhan |
@mikeal is this something that you can help with? |
@ZibbyKeaton sorry for not seeing this earlier. The file you are looking for is locale/en/foundation/case-studies.md. I've done some testing locally, and found that markdown links can be translated to HTML links ( Replace
with
Notice I've added Hope that makes sense, if not don't hesitate to ask 😃 |
Thank you so much @phillipj I went in there to make the change. I want to test Walmart out before I do it with the other case studies. I don't know if you are able to merge my change or whatever might be next, but let me know and then I can test in our Google Analytics to make sure it is all working well before I do this with the others. |
Are you comfortable opening a pull request with the changes necessary or
would you like help with that?
…On Fri, 3 Feb 2017 at 22:09, Zibby Keaton ***@***.***> wrote:
Thank you so much @phillipj <https://github.com/phillipj> I went in there
to make the change. I want to test Walmart out before I do it with the
other case studies. I don't know if you are able to merge my change or
whatever might be next, but let me know and then I can test in our Google
Analytics to make sure it is all working well before I do this with the
others.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1121 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABLLE_dbRfQBycU7TfyjkBRy8ukZ6NJgks5rY5elgaJpZM4Lz7n5>
.
|
Just created a PR and tagged you in it @phillipj LMK if that works.... |
Add Google Analytics click tracking on Walmart Case Study. Refs #1121
All -
I am trying to better track how many folks are downloading our case studies on the Node.js Foundation site to determine if folks are downloading these and find them helpful. You can find the case studies in the Node.js Foundation resource section here: https://nodejs.org/en/foundation/case-studies/.
I would like to track this all through Google analytics. I talked to someone from the Linux Foundation marketing team and they set us up with event tracking, but I'm having some trouble figuring out exactly how to retag each of these case studies and upload it to the website via GitHub. Hopefully this makes sense.
I was wondering if anyone has experience with this in the group and might be able to help me here. Even if you show me how to do just one, I can probably do the rest on my own.
Thanks for helping me with this!
Here's a link to what I'm talking about: https://support.google.com/analytics/answer/1012044?hl=en#Download
The text was updated successfully, but these errors were encountered: