Allow FF to send events.

This commit is contained in:
James Cole
2015-04-03 23:22:23 +02:00
parent 74aa6e911e
commit 75d92bc7f0
3 changed files with 8 additions and 0 deletions

View File

@@ -146,6 +146,11 @@
ga('create', '<?php echo env('ANALYTICS_ID', 'XXX-XX-X'); ?>', 'auto');
ga('send', 'pageview');
// send an event if relevant:
@if(Session::has('gaEventCategory') && Session::has('gaEventAction'))
ga('send','event','{{Session::get('gaEventCategory')}}','{{Session::get('gaEventAction')}}');
@endif
</script>
</body>
</html>