Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding minified version og Google Analytics Proxy javascript file to …

…src/
  • Loading branch information...
commit 8bb6b57563b55b74c2675a35d64655c88446cad5 1 parent 627645c
@robbyrussell authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  src/google_analytics_proxy.min.js
View
3  src/google_analytics_proxy.min.js
@@ -0,0 +1,3 @@
+var GoogleAnalyticsProxy=Class.create();
+GoogleAnalyticsProxy.prototype={initialize:function(){this.googleAnalyticsEnabled=this.checkForGoogleAnalytics()},checkForGoogleAnalytics:function(){return"undefined"==typeof window._gat?!1:!0},log:function(a){console.log("[GoogleAnalyticsProxy] "+a+" was triggered")},pageTracker:function(){return window.pageTracker},_trackPageview:function(a){this.googleAnalyticsEnabled?this.pageTracker()._trackPageview(a):this.log("_pageTracker("+a+")")},_trackEvent:function(a,b,c,d){this.googleAnalyticsEnabled?
+this.pageTracker()._trackEvent(a,b,c,d):this.log("_trackEvent("+a+", "+b+", "+c+", "+d+")")}};
Please sign in to comment.
Something went wrong with that request. Please try again.