[FIX] Don't alter bounce rate when tracking events
authorvta vta@openerp.com <>
Tue, 15 Jan 2013 12:46:04 +0000 (13:46 +0100)
committervta vta@openerp.com <>
Tue, 15 Jan 2013 12:46:04 +0000 (13:46 +0100)
bzr revid: vta@openerp.com-20130115124604-ttg5ct8x83iog6ee

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

index 0ea7632..26171cb 100644 (file)
@@ -162,6 +162,7 @@ openerp.web_analytics = function(instance) {
                             'category': r.model,
                             'action': 'form',
                             'label': url,
+                            'noninteraction': true,
                         });
                     });
                     this.on('record_saved', self, function(r) {
@@ -170,6 +171,7 @@ openerp.web_analytics = function(instance) {
                             'category': r.model,
                             'action': 'form',
                             'label': url,
+                            'noninteraction': true,
                         });
                     });
                 }
@@ -204,6 +206,7 @@ openerp.web_analytics = function(instance) {
                         'category': category,
                         'action': action,
                         'label': url,
+                        'noninteraction': true,
                     });
                     return this._super.apply(this, arguments);
                 },