# New Universal Login event hooks

**URL:** <https://community.auth0.com/t/new-universal-login-event-hooks/83355>\
**Category:** Get Help\
**Tags:** new-universal-login, analytics\
**Created:** [May 12, 2022, 4:30pm UTC](https://community.auth0.com/t/new-universal-login-event-hooks/83355 "2022-05-12T16:30:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dsc](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dsc/32/37277_2.png) [@dsc](https://community.auth0.com/u/dsc)\
**Post date:** [May 12, 2022, 4:30pm UTC](https://community.auth0.com/t/new-universal-login-event-hooks/83355/1 "2022-05-12T16:30:37Z")

</div>

Hello!

We are currently migrating to the New Universal Login Experience from the classic one.

When using the classic experience, we were able to utilize the `lock.js` library in order to track certain events in the login/signup flow. For example, using `lock.js`, we would subscribe to certain events in the signup lifecycle and then propagate these events to our analytics service:

```auto
lock.on("signin submit", function () {
  analyticsLibrary.track('identity sign in submitted', {}, {
    context: {
        origin: 'identity',
    }
  });
});

```

With the new universal login experience, is there any support for this kind of integration? Does the new experience expose anything that we can hook into to track what a user is doing inside of the login/signup pages?

Thanks!

---

<div class="post-metadata">

**Author:** ![dsc](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dsc/32/37277_2.png) [@dsc](https://community.auth0.com/u/dsc)\
**Post date:** [May 23, 2022, 8:10pm UTC](https://community.auth0.com/t/new-universal-login-event-hooks/83355/2 "2022-05-23T20:10:29Z")

</div>

Never mind, looks like we can recreate this functionality with this: [Auth0 Actions](https://auth0.com/docs/customize/actions)

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [May 23, 2022, 9:34pm UTC](https://community.auth0.com/t/new-universal-login-event-hooks/83355/3 "2022-05-23T21:34:49Z")

</div>

Hey there @dsc - Sorry no one got back to you on this one 😕 You nailed it though, Actions are the way to go moving forward.

Thanks for following up!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [June 7, 2022, 9:35pm UTC](https://community.auth0.com/t/new-universal-login-event-hooks/83355/4 "2022-06-07T21:35:23Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
