# Google Analytics event on signup success using lock 10

**URL:** <https://community.auth0.com/t/google-analytics-event-on-signup-success-using-lock-10/8655>\
**Category:** Get Help\
**Tags:** lock-10, event, signup, lock\
**Created:** [November 2, 2017, 4:05pm UTC](https://community.auth0.com/t/google-analytics-event-on-signup-success-using-lock-10/8655 "2017-11-02T16:05:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mads](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@mads](https://community.auth0.com/u/mads)\
**Post date:** [November 2, 2017, 4:05pm UTC](https://community.auth0.com/t/google-analytics-event-on-signup-success-using-lock-10/8655/1 "2017-11-02T16:05:36Z")

</div>

We are using lock 10 for angular 4 web app, and we would like to send a google analytics(ga) event on successful signup using lock 10. It seems to me that the lock.on event `signup submit` is activated both on success and failure.  
So the idea was to send a ga event on `logins_count=1`, since login happens after signup, but this attribute is not found when calling lock.getUserInfo(accessToken, callback).  
Can we detect a successful signup in others ways or how do we get the `logins_count`?  
Other approaches are also warmly welcome.

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [November 7, 2017, 9:25pm UTC](https://community.auth0.com/t/google-analytics-event-on-signup-success-using-lock-10/8655/2 "2017-11-07T21:25:01Z")

</div>

That information about the login count is only available in rules, however, you can [add a custom claim to the issued ID token](https://auth0.com/docs/api-auth/tutorials/adoption/scope-custom-claims#custom-claims) signaling that this is the first authentication event being completed for that end-user and as such the client application could react differently after validating and parsing the ID token.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:57am UTC](https://community.auth0.com/t/google-analytics-event-on-signup-success-using-lock-10/8655/3 "2018-03-02T05:57:15Z")

</div>


