# Two different links for user sign up, tracking the link that has been clicked

**URL:** <https://community.auth0.com/t/two-different-links-for-user-sign-up-tracking-the-link-that-has-been-clicked/71255>\
**Category:** Get Help\
**Created:** [October 13, 2021, 5:42pm UTC](https://community.auth0.com/t/two-different-links-for-user-sign-up-tracking-the-link-that-has-been-clicked/71255 "2021-10-13T17:42:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![augusto](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/augusto/32/32311_2.png) [@augusto](https://community.auth0.com/u/augusto)\
**Post date:** [October 13, 2021, 5:42pm UTC](https://community.auth0.com/t/two-different-links-for-user-sign-up-tracking-the-link-that-has-been-clicked/71255/1 "2021-10-13T17:42:25Z")

</div>

Hi,  
we are integrating Auth0 in our application and we find it awesome!

We want to have two different links for signup, e.g. “Sign up as customer” and “Sign up as retailer”.  
Either link will take the user to an Auth0 provided signup form using email/password or social login (Google, Facebook, …). We want to “track” the information on the kind of user that is signing up.

If the user clicked on “Sign up as customer” we’ll want to save the type “customer” on the user metadata on Auth0, otherwise if the user clicked on “Sign up as retailer” we’ll want to save the type “retailer” on the user metadata.

We tried the [additionalSignUpFields option](https://auth0.com/docs/libraries/lock/lock-configuration#additionalsignupfields-array-), but this works only for email/password sign up, and not for social sign up. We are thinking to save a cookie on the client to track the type of signup that the user clicked, but we are wondering if there is a more elegant solution using Auth0.

Did someone faced a similar issue? Thank you very much for your help!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [October 14, 2021, 7:59pm UTC](https://community.auth0.com/t/two-different-links-for-user-sign-up-tracking-the-link-that-has-been-clicked/71255/3 "2021-10-14T19:59:05Z")

</div>

Hi @augusto,

Welcome to the Auth0 Community!

You should be able to accomplish this with some custom query params in your request and a Post Login Action (we can’t use a registration action here if you want social providers to be included).

You can send query params with your request and access them in a post-login action via `event.request.query` property.

In your Action you set the data in user’s `app_metadata` unless it already exists.

> **[Login Flow](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow)**
>
> Learn about the Actions Login Flow and the post-login Action trigger, which is executed after a user logs in and when a Refresh Token is requested.

---

<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:** [October 29, 2021, 7:59pm UTC](https://community.auth0.com/t/two-different-links-for-user-sign-up-tracking-the-link-that-has-been-clicked/71255/4 "2021-10-29T19:59:30Z")

</div>

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