Comment tester si un code google analytics fonctionne?

J'ai fait de légères modifications au code décrit ici afin de suivre les liens sortants clics. C'est mon code:

function recordOutboundLink(link, label) {
  try {
    var myTracker=_gat._getTrackerByName();
    _gaq.push(['myTracker._trackEvent', 'Outbound Links', label, link.href ]);
    setTimeout('document.location = "' + link.href + '"', 100)
  }catch(err){}
}

Puis je l'ai ajouté à ma href balises comme ceci:

<a href="http://example.com/user/5" onclick="recordOutboundLink(this, 'example.com');return false"></a>

Je pense que ça ne marche pas, cependant. Il est vraiment difficile de vérifier si cela fonctionne ou pas. Comment puis-je vérifier si ça fonctionne ou pas?

EDIT: l'Utilisation de google analytics débogueur pour chrome, j'ai pu voir ce qu'il se passe. Il affiche:

Account ID               : UA-XXXXX-X

C'est bizarre, parce qu'normal de la page de suivi fonctionne comme prévu. Voici comment j'ai configuré le code de google analytics:

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'my-id']);
_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);
})();

source d'informationauteur Rafael Almeida