Title: Track a click on Google Analytics
Author: Alexander Gounder
Published: <strong>1 Tháng 9, 2016</strong>
Last modified: 1 Tháng 9, 2016

---

Tìm kiếm plugin

Plugin này **chưa được cập nhật với 3 phiên bản mới nhất của WordPress**. Nó có 
thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress
mới nhất.

![](https://s.w.org/plugins/geopattern-icon/track-a-click-on-google-analytics.svg)

# Track a click on Google Analytics

 Bởi [Alexander Gounder](https://profiles.wordpress.org/gounder/)

[Tải về](https://downloads.wordpress.org/plugin/track-a-click-on-google-analytics.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/track-a-click-on-google-analytics/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/track-a-click-on-google-analytics/#reviews)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/track-a-click-on-google-analytics/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/track-a-click-on-google-analytics/)

## Mô tả

**Are you using UTM Source to track link clicks within your website?**

That’s a really bad idea! Not only will it create a new session with the links utm_source
and inflate your visitor stats, it will also increase the bounce rate on the page
you’re tracking.

**So what’s the solution?**

Use [event tracking] (https://developers.google.com/analytics/devguides/collection/
analyticsjs/events) on Google Analytics which capture events like a link click into
your Google Analytics Dashboard.

For e.g.
 [Download Free Ebook](http://example.com/wp-content/uploads/2015/06/free-ebook.pdf)

But then the WordPress Visual Editor will keep cleaning out the onClick part, so
we made a quick shortcode that would save you from the trouble of redoing the onClick
part everytime it got cleaned out.

**How does it work?**

In place of an A href tag like `<a onClick="ga('send', 'event', 'Downloads', 'Click','
Ebook downloaded', '0');" href="http://example.com/wp-content/uploads/2015/06/free-
ebook.pdf">Download Free Ebook</a>` use our shortcode `[tac_ga url="http://example.
com/wp-content/uploads/2015/06/free-ebook.pdf" category="Downloads" action="Click"
label="Ebook Downloaded"]Download Free Ebook[/tac_ga]`

By default this shortcode uses the following information:
 Category: link Action:
click Label: The URL Entered

**How do I check if this works**

Google Analytics’ Real time tab will show you that these tags would or not.

_Some cases in which this shortcode won’t work:_
 * You use Google Tag Manager to
insert Google Analytics * You use Monster Insights Plugin (Formerly Yoast’s Google
Analytics Plugin) to install Google Analytics

## Đánh giá

![](https://secure.gravatar.com/avatar/ac659a7caaf97153b480cffd6769f9b444c0aa8ab6b9882f272fdfa469ec8aaa?
s=60&d=retro&r=g)

### 󠀁[Thank you!](https://wordpress.org/support/topic/thank-you-42/)󠁿

 [mandude](https://profiles.wordpress.org/mandude/) 8 Tháng 9, 2016

Nice, sweet and does the job!

 [ Đọc tất cả 1 đánh giá ](https://wordpress.org/support/plugin/track-a-click-on-google-analytics/reviews/)

## Người đóng góp & Lập trình viên

“Track a click on Google Analytics” là mã nguồn mở. Những người sau đã đóng góp 
vào plugin này.

Những người đóng góp

 *   [ Alexander Gounder ](https://profiles.wordpress.org/gounder/)
 *   [ Sidmetal98 ](https://profiles.wordpress.org/sidmetal98/)
 *   [ Ink my web ](https://profiles.wordpress.org/inkmyweb/)

[Dịch “Track a click on Google Analytics” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/track-a-click-on-google-analytics)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/track-a-click-on-google-analytics/),
check out [SVN repository](https://plugins.svn.wordpress.org/track-a-click-on-google-analytics/),
hoặc theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/track-a-click-on-google-analytics/)
qua [RSS](https://plugins.trac.wordpress.org/log/track-a-click-on-google-analytics/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Phiên bản **0.4**
 *  Cập nhật lần cuối **10 năm trước**
 *  Số lượt cài đặt **10+**
 *  Phiên bản WordPress ** 2.5.0 hoặc cao hơn **
 *  Đã kiểm tra lên đến **4.6.30**
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/track-a-click-on-google-analytics/)
 * Thẻ
 * [click tracking](https://vi.wordpress.org/plugins/tags/click-tracking/)[event tracking](https://vi.wordpress.org/plugins/tags/event-tracking/)
   [google analytics](https://vi.wordpress.org/plugins/tags/google-analytics/)[link tracking](https://vi.wordpress.org/plugins/tags/link-tracking/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/track-a-click-on-google-analytics/advanced/)

## Đánh giá

 5 trên 5 sao.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/track-a-click-on-google-analytics/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/track-a-click-on-google-analytics/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/track-a-click-on-google-analytics/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/track-a-click-on-google-analytics/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/track-a-click-on-google-analytics/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/track-a-click-on-google-analytics/reviews/#new-post)

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/track-a-click-on-google-analytics/reviews/)

## Những người đóng góp

 *   [ Alexander Gounder ](https://profiles.wordpress.org/gounder/)
 *   [ Sidmetal98 ](https://profiles.wordpress.org/sidmetal98/)
 *   [ Ink my web ](https://profiles.wordpress.org/inkmyweb/)

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/track-a-click-on-google-analytics/)

## Ủng hộ

Bạn có muốn hỗ trợ vào sự phát triển của plugin này?

 [ Ủng hộ plugin này ](https://www.instamojo.com/inkmyweb/)