[IMP] Added code to track new GA goals
authorvta vta@openerp.com <>
Tue, 15 Jan 2013 10:54:23 +0000 (11:54 +0100)
committervta vta@openerp.com <>
Tue, 15 Jan 2013 10:54:23 +0000 (11:54 +0100)
bzr revid: vta@openerp.com-20130115105423-icv69atfjpt9rqsi

addons/web_analytics/static/src/js/web_analytics.js

index 1d3efbb..0ea7632 100644 (file)
@@ -84,6 +84,12 @@ openerp.web_analytics = function(instance) {
                 });
         },
         /*
+        * Method called in order to send _trackPageview to GA
+        */
+        _push_pageview: function(url) {
+            _gaq.push(['_trackPageview', url]);
+        },
+        /*
         * Method called in order to send _trackEvent to GA
         */
         _push_event: function(options) {