Skip to content

Instantly share code, notes, and snippets.

@SoerenS
Created February 8, 2012 10:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SoerenS/1767984 to your computer and use it in GitHub Desktop.
Save SoerenS/1767984 to your computer and use it in GitHub Desktop.
Javascript code to disable graphs in Google Analytics
javascript:(function(e,a,g,h,f,c,b,d){if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){c=a.createElement("script");c.type="text/javascript";c.src="https://ajax.googleapis.com/ajax/libs/jquery/"+g+"/jquery.min.js";c.onload=c.onreadystatechange=function(){if(!b&&(!(d=this.readyState)||d=="loaded"||d=="complete")){h((f=e.jQuery).noConflict(1),b=1);f(c).remove()}};a.documentElement.childNodes[0].appendChild(c)}})(window,document,"1.3.2",function($,L){$('[id$="ID-graph"]').toggle();$('[id$="-segmentExplorer"]').toggle();$('[id$="-table-tableControl"]').parent().toggle();$('[id$="graphFilteringDisclaimer"]').toggle();$('[id$="graphOptions"]').toggle();$('[id$="graphMode"]').toggle();$('[id$="-graphOptions"]').parent().toggle();});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment