From fb2481ebaa0e9053148c661b3c2373d77483e5de Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 25 May 2015 07:26:19 +0200 Subject: [PATCH] Add some GA events. --- app/Http/Controllers/ProfileController.php | 2 ++ resources/twig/layout/guest.twig | 23 ++++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index af7c07bdd5..6b46ed2a03 100644 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -109,6 +109,8 @@ class ProfileController extends Controller // DELETE! Auth::user()->delete(); Session::flush(); + Session::flash('gaEventCategory', 'user'); + Session::flash('gaEventAction', 'delete-account'); return Redirect::route('index'); } diff --git a/resources/twig/layout/guest.twig b/resources/twig/layout/guest.twig index 1d81e22141..90a026e44d 100644 --- a/resources/twig/layout/guest.twig +++ b/resources/twig/layout/guest.twig @@ -58,5 +58,28 @@ + +