Skip to content

Instantly share code, notes, and snippets.

@dmongeau
Created November 13, 2013 19:26
Show Gist options
  • Save dmongeau/7454835 to your computer and use it in GitHub Desktop.
Save dmongeau/7454835 to your computer and use it in GitHub Desktop.
Exemple de code de tracking
<script type="text/javascript">
var _echolo = _echolo || [];
//S'il y a un utilisateur de connecté, on le spécifie avec son ID
_echolo.push(['setUser', 12]);
//Pour tracker une visite sur une page
_echolo.push(['trackVisit']);
(function() {
var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true;
script.src = 'http://sedna.radio-canada.ca/echologistes/tracking.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(script, s);
})();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment