aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/fixmystreet.com/tracking_code.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/fixmystreet.com/tracking_code.html')
-rw-r--r--templates/web/fixmystreet.com/tracking_code.html14
1 files changed, 5 insertions, 9 deletions
diff --git a/templates/web/fixmystreet.com/tracking_code.html b/templates/web/fixmystreet.com/tracking_code.html
index 0453e1a22..1dd176189 100644
--- a/templates/web/fixmystreet.com/tracking_code.html
+++ b/templates/web/fixmystreet.com/tracking_code.html
@@ -8,16 +8,12 @@ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
ga('create', 'UA-660910-4', {'cookieDomain': '.fixmystreet.com'});
ga('set', 'anonymizeIp', true);
[% IF created_report %]
-ga(function(tracker) {
- var page = tracker.get('location');
- var extra = '';
- if ( page.indexOf('?') != -1 ) {
- extra = '&created_report=1';
- } else {
- extra = '?created_report=1';
- }
- tracker.set('location', page + extra);
+ga('require', 'ecommerce');
+ga('ecommerce:addItem', {
+ 'id': 'report/[% problem.id %]',
+ 'name': 'Report'
});
+ga('ecommerce:send');
[% END %]
ga('send', 'pageview');