大网数据广告活动
网站运营与故障问答

How to Track outbound clicks in google analytics

· 52CE 我爱测

I know there are several ways that will help me find out how many times that user clicked on the outbound links but situation is pretty complicated. It is a school website, KENT SCHOOL DISTRICT and the home page of the website ha…

问题原文

原帖链接 · akki0996 · CC BY-SA 3.0

I know there are several ways that will help me find out how many times that user clicked on the outbound links but situation is pretty complicated.

It is a school website, KENT SCHOOL DISTRICT and the home page of the website has a left sidebar with shortcuts (links). Website is built in School Wires (Content Management System) and the school wires does not provided us the code for the site shortcuts.

Under site manager, we have site shortcuts tab (Look Below)

Basically we don't do any hardcoding for the shortcuts.

So far I have tried:

  1. I was first planning to use EVENT TRACKING 'onClick' in my anchor tag, but as soon as I found that my school website is not using hard coded links, I dropped that idea.

My question is, Is there anyway that I can track the outbound links? Basically I want to count how many times that shortcut on the left sidebar has clicked?

已采纳解答

原帖链接 · nyuen · CC BY-SA 3.0

Using GTM, you could establish a link click listener that fires on all pages, and then create an "Outbound link" tag to fire whenever a link is clicked. You can collect the href attribute of the link to pass into your event as well. That's it in a nutshell, but there's more details here if you like: http://cutroni.com/blog/2013/10/07/auto-event-tracking-with-google-tag-manager/. You can do all that without having to touch the html at all.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2014-09-09)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。