Figer's Technology Consulting | Determine what part of your site is actually used

Determine what part of your site is actually used

Why put your development effort / dollars into areas of the site / web application no one is using. Or use this to question areas you are developing and verbally ask clients why they don't use a certain portion of your site, you might find out only a small change makes all the difference in the world to your client. Google analytics is a great tool to determine where users are going and what they're doing on your site. On top of the typical usage on seeing which pages get hit, here is the necessary code to see which buttons get clicked or any other event on your site. 

 ------------------------------------------- 
Place this in the <head> tag of your page (use your correct Account ID, the rest will stay the same)

 
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-1111111-1']);
_gaq.push(['_setDomainName', 'none']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
(function () {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<script type="text/javascript"> var _gaq = _gaq || [];            _gaq.push(['_setAccount', 'UA-1145632-1']);            _gaq.push(['_setDomainName', 'none']);            _gaq.push(['_setAllowLinker', true]);            _gaq.push(['_trackPageview']); (function () {                var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;                ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';                var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);            })(); </script> 

------------------------------------------- 
Place this in the hyperlink or button's onclick event (ClickDescHere is what will show up in Google Analytics), if you have multiple subdomains like we have Google even breaks down the click events for you by hostname. onclick="_gaq.push(['_trackEvent', 'ClickDescHere']);"
Comments are closed