Mar 18, 2017
0
Level 7
Add analytics event when user registers account - spark vue.js
Hi All,
So i am trying to run a google analytics event after a user registers to my app. However with the default registration in laravel spark using vue.js, the registation form has this
@click.prevent="register"
Which from my understanding prevents the actual html form from submitting.
So i have some js code that I can put in to create this event
ga('send', 'event', [eventCategory], [eventAction], [eventLabel], [eventValue], [fieldsObject]);
however I have no idea where to put it.
Anyone have an ideas on what I should do?
Please or to participate in this conversation.