aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Tokens.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2014-04-09 12:45:19 +0100
committerStruan Donald <struan@exo.org.uk>2014-04-09 12:45:19 +0100
commit33bf702edceb459954b5b6a3ef41e6cddd6756a3 (patch)
tree22b01f7ca49a7b41914b0ea97c0a57b1dab5cb70 /perllib/FixMyStreet/App/Controller/Tokens.pm
parentb82228ce014cc87866d976eeb3ce6e454e87c336 (diff)
Fire a google analytics event on report completion
At the moment it's hard to use google analytics to track when someone has completed a report due to the various redirects which can occur too quickly for the analytics javascript to fire. So now we fire an event if we've set a flash value. This also allows us to track how they created the report.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Tokens.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Tokens.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Tokens.pm b/perllib/FixMyStreet/App/Controller/Tokens.pm
index 5e536afa3..19130e25f 100644
--- a/perllib/FixMyStreet/App/Controller/Tokens.pm
+++ b/perllib/FixMyStreet/App/Controller/Tokens.pm
@@ -102,6 +102,7 @@ sub confirm_problem : Path('/P') {
$c->res->redirect($report_uri);
}
+ $c->flash->{created_report} = 'fromemail';
return 1;
}