fr: Un des problèmes avec les systèmes d'analyses c'est que sur certaines pages, nous sommes nous même ceux qui allons visiter ces pages.
fr: Alors, voici un moyen très simple de ne plus compter ses propres visites de son blog dans les statistiques.
fr: Tout d'abord, vous devriez jeter un coup d'œil sur comment [je gère les systèmes de récupération de statistiques](/Scratch/fr/blog/2010-06-17-track-events-with-google-analytics).
fr: Parce que tout est centralisé dans un seul javascript, ce qui rend les choses bien plus simple.
en: This is a way not to count your own visits to your blog.
en: First you should look on how [I handle analytics](/Scratch/en/blog/2010-06-17-track-events-with-google-analytics). All analytics are handled in one javascript file, this make things really convenient.
fr: Ensuite ma méthode nécessite l'utilisation du module `jquery-cookie` et bien entendu de `jquery`.
en: Then you need to know my method use the `jquery-cookie` module and of course `jquery`.
fr: Ensuite avant de lancer les moteurs d'analyse, je vérifie que la clé `admin` n'est pas utilisée dans mes cookies.
en: First before launching analysis, I check if the key `admin` is not set in the cookie.
<codeclass="javascript">
var admin = $.cookie('admin');
if (! admin) {
// put your analytics code here
} else {
console.log("[WARNING] you're HIDDEN to analytics");
}
</code>
fr: et il suffit de créer deux fichier <sc>html</sc>. Un pour se cacher :
en: then create two <sc>html</sc> files. One to hide:
<codeclass="html"file="become_hidden.html">
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
fr: Maintenant en accédant à ces fichiers depuis votre navigateur vous pouvez *disparaître* des systèmes d'analyses ou bien être considéré comme tous les autres individus.
fr: Pensez à accéder à ces fichiers depuis tous les navigateurs que vous utilisez et vos visites ne seront plus comptabilisées.
en: Now accessing these files with you browser you can *hide* or *appear* in your statistics. You just have to think to access these file from all you browser.