AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
4.3K members online now
4.3K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
 
Guide Me
star_border
Reply

How to track download event in analytics?

Follower ✭ ☆ ☆
# 1
Follower ✭ ☆ ☆

Hello,

 

Please tell me how can I track event like click on download button in analytics:

 

Is this the right code?

 

<a onClick="ga('send', 'event', 'Download', 'Click', 'Brochure Downloaded', '0');" href="http://example.com/wp-content/uploads/2015/06/free-ebook.pdf">Download ATM Van Brochure</a>

 

after setting up it in analytics under goal.

 

Thanks,

 

1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Farheen K
January 2017

How to track download event in analytics?

Top Contributor
# 4
Top Contributor

You need to add the onclick event tracking code to each link you want to track clicks on.

The new facebook pixel, you need to add it to all pages. Use standard event codes to track conversions (leads, purchases...).

Please find the implementation details in the this document: https://www.facebook.com/business/help/952192354843755


Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

View solution in original post

How to track download event in analytics?

Top Contributor
# 2
Top Contributor

Hi,

 

Yes, your code is correct, the event will be sent on the link click to Google Analytics.

 

You need to set up your goal as event type:

eventAction: Click
eventCategory: Download
eventLabel: Brochure Downloaded

 

Let me know if you have more questions.


Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

How to track download event in analytics?

Follower ✭ ☆ ☆
# 3
Follower ✭ ☆ ☆

Okay, should that be added only on page with download option or all pages? Also, do you know about facebook pixels? Is that code should be added only on conversion tracking page or in all pages?

Marked as Best Answer.
Solution
Accepted by topic author Farheen K
January 2017

How to track download event in analytics?

Top Contributor
# 4
Top Contributor

You need to add the onclick event tracking code to each link you want to track clicks on.

The new facebook pixel, you need to add it to all pages. Use standard event codes to track conversions (leads, purchases...).

Please find the implementation details in the this document: https://www.facebook.com/business/help/952192354843755


Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital