This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Regexp to recognize fake trafic from JS enabled crawlers | |
For use in Google Analytics **Filters** on the "ISP Organization" field, corresponding dimension in reporting is "Service Provider" | |
This lists fits within the 255 characters limit (!doesn't any more, to be optimized) of the filter field if you want to have a Profile/View that will include only that traffic | |
Most crawlers have Java disabled | |
You can also disable logging the activity of web monitoring services through a test on user-agent string, see https://gist.github.com/googleanalyticsresoneo/964266 | |
--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Regexp to recognize traffic from consumer ISP in Google Analytics | |
If you exclude those, you get a list of business organizations visiting your Web site | |
Beware to the length of this list | |
--> | |
pool\s?|bloc\s?|proxad|cable|free s|radiotel|orange|.?dsl|tele[kc]+om|tele[phf]+o|video|mobile|wireless|broadband|internet|fibre| ip |gprs|provider|[a-z ]+[0-9]+[a-z ]+|obs cu|\(not set\)|network|static ip|^test$|host(ing|ed)|isp|backbone|dhcp|ip address|dynamic|dialup|server|platform|inap z|completel|jet ?multi|users|aol|rue louvrex 95|brutele sc$|telenet|p&t|fttx|ovh (sas|sys)|verizon|online|belgacom|swisscom|psinet|nordnet|colt|citevision|service nsaii$|inktomi|yahoo|consumer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html> | |
<head> | |
<!-- | |
AddThis integration with Google Analytics Async - (c) 2013 analytics (chez) resoneo (point) com | |
https://gist.github.com/googleanalyticsresoneo/2887422 | |
see http://support.addthis.com/customer/portal/articles/1293805-using-addthis-asynchronously |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Expands the width of input fields in the GA v5 Interface | |
use within the Firefox Stylish extension | |
https://addons.mozilla.org/en-US/firefox/addon/stylish/?src=external-userstyleshome | |
or Google Chrome Stylish extension | |
https://chrome.google.com/webstore/detail/fjnbnpbmkenffdnngjfgmeleoegfcffe | |
initial code from Olaf Calderon <@blastam.com> | |
owner Olivier VIT @ resoneo.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! handling of secure google search keyword being hidden and set as (not provided) for Google Analytics sites using urchin.js , not ga.js | |
* see also : http://googleblog.blogspot.com/2011/10/making-search-more-secure.html | |
* Google handles it only in ga.js, we provide it for sites using urchin.js | |
* author : analytics(at)resoneo(dot)com 2011 | |
* https://gist.github.com/1373049 | |
* usage : include urchin.js ABOVE this code, set your parameters and call urchinTracker BELOW this code */ | |
/*jslint browser: true, sloppy: true, vars: true, white: true, nomen: true, maxerr: 50, indent: 4 */ | |
/* adding some search engines */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function trackErrorThroughEvent(exception, fct) { /* remontée des erreurs éventuelles pour détection des pbs */ | |
_gaq.push(['_trackEvent', 'Erreur JS ' + (fct || 'native'), exception + ' name: ' + (exception.name || 'Error') + ' #mess: ' + (exception.message || 'n/a') + ' #nav: ' + navigator.userAgent , ' #url: ' + document.location.href + '#ref: ' + document.referrer ,,true ]); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Format spécifique : vhost,time,request protocol,final response code,request URI,response size,user-agent | |
LogFormat "\"%v\",\"%t\",\"%H\",\"%>s\",\"%r\",\"%b\",\"%{User-Agent}i\"" vhosts-bots | |
# Conditionne le log en fonction du user-agent | |
SetEnvIf User-agent Googlebot isabot | |
SetEnvIf User-agent Slurp isabot | |
SetEnvIf User-agent msnbot isabot | |
CustomLog "logs/site_access_isabot.txt" vhosts-bots env=isabot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* http://www.roirevolution.com/blog/2011/01/google_analytics_subdomain_tracking.php */ | |
/* Ignorer les possibles affluents sur des domaines matchant une regex */ | |
try{ | |
if ( /vols\d{0,2}\.thomascook\.fr|www\.thomascook\.fr|booking\.thomascook\.fr|enwi\.norrisdata\.net|ypsilon\.net/.exec(document.referrer) ) { _gaq.push(['_addIgnoredRef', document.referrer.split('/')[2].split('.')[1]]); } } catch(e){} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> | |
<!-- a la fin du head --> | |
<script type="text/javascript"> | |
/*! marquage GA asynchrone de base pour projets SEO en France (c) analytics (chez) resoneo (point) com - 2013 | |
fork it on https://gist.github.com/googleanalyticsresoneo/964266 | |
*/ | |
/* moteurs déjà présents dans ga.js 5.3.8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- exemple de referral depuis le 22 juillet 2011 | |
http://www.google.fr/imgres?q=resoneo&um=1&hl=fr&sa=N&biw=1260&bih=832&tbm=isch&tbnid=oHqMFLKPHlmBuM:&imgrefurl=http://www.boitedeveille.fr/tag/resoneo/&docid=Hy5kqj7oMth2tM&w=191&h=82&ei=9kU4TtyKGcOs8gOq--z7Ag&zoom=1&iact=hc&vpx=602&vpy=176&dur=8629&hovh=65&hovw=152&tx=64&ty=32&page=1&tbnh=65&tbnw=152&start=0&ndsp=23&ved=1t:429,r:2,s:0 | |
--> | |
<script type="text/javascript"> | |
// now as a standard syntax | |
_gaq.push(['_addOrganic', 'google', 'q', true, 'google images', '/imgres?']); | |
</script> |
NewerOlder