]> git.wh0rd.org - chrome-ext/clearhistory-advance-fork.git/blobdiff - javascript/clearhistory.js
delete Google Analytics usage
[chrome-ext/clearhistory-advance-fork.git] / javascript / clearhistory.js
index af8fdcebc4184ebe38963620be859328a55da2fa..d73827a7e57aed5349752130ab9baa38eea0044b 100644 (file)
@@ -87,8 +87,6 @@ function clearHistory() {
  * {@code localStorage}
  */
 chrome.browserAction.onClicked.addListener(function(tab) {
-  //calls the method to provide the Google Analytics Data
-  getAnalyticsData();
   // Get the value from localStorage
   var showPrompt = localStorage['prompt'] || CONSTANTS.YES;
 
@@ -102,20 +100,3 @@ chrome.browserAction.onClicked.addListener(function(tab) {
     clearCookies(clearHistory);
   }
 });
-
-   var _gaq = _gaq || [];
-/**
- * provides the Google analytics data
- */
-function getAnalyticsData() {
-  _gaq.push(['_setAccount', 'UA-28968723-1']);
-  _gaq.push(['_trackPageview']);
-
-  (function() {
-    var ga = document.createElement('script'); ga.type = 'text/javascript';
-    ga.async = true;
-    ga.src = 'https://ssl.google-analytics.com/ga.js';
-    var s = document.getElementsByTagName('script')[0];
-    s.parentNode.insertBefore(ga, s);
-  })();
-}