# Passing custom parameters to Auth0 Post User Registration Flow using New Universal Login

**URL:** <https://community.auth0.com/t/passing-custom-parameters-to-auth0-post-user-registration-flow-using-new-universal-login/139190>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [July 18, 2024, 12:16am UTC](https://community.auth0.com/t/passing-custom-parameters-to-auth0-post-user-registration-flow-using-new-universal-login/139190 "2024-07-18T00:16:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex21](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alex21/32/49981_2.png) [@alex21](https://community.auth0.com/u/alex21)\
**Post date:** [July 18, 2024, 12:16am UTC](https://community.auth0.com/t/passing-custom-parameters-to-auth0-post-user-registration-flow-using-new-universal-login/139190/1 "2024-07-18T00:16:12Z")

</div>

When a user is redirected to my universal login / sign up page with google tag manager query params, I would like to be able to pass custom parameter to the universal login / sign up page and read these query params in an Auth Post User Registration Flow.

These redirects can occur from our web application where we use the `@auth0/auth0-react` package. They can also occur on other sites with our marketing material.

It seems like when we send a user to the universal login page, these query params are lost when they begin signing up.

For example, in my react application I can redirect an unauthenticated user to our login page like so:

```auto
import { withAuthenticationRequired } from "@auth0/auth0-react";

export default withAuthenticationRequired(
  function SomeRoute() {
    return (
     <></>
    );
  },
  {
    loginOptions: {
      appState: {
        foo: "bar",
      },
      authorizationParams: {
        "auth-param": "foo-bar",
      },
      fragment: "some-fragment",
      customParam: "foo-bar-baz",
    },
  }
);

```

From this login page, the user can then click “Sign up” and create an account. I have tried many different ways to read query params or additional information from _a user signing up for the first time_ with Auth0 actions, and I am not successful.

The use case is to track which campaign resulted in a successful sign up for a user by using Auth0 actions. We can detect a new user signing up and we’d like to know which marketing campaign resulted in that sign up.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [July 18, 2024, 6:34pm UTC](https://community.auth0.com/t/passing-custom-parameters-to-auth0-post-user-registration-flow-using-new-universal-login/139190/3 "2024-07-18T18:34:11Z")

</div>

Hi @alex21,

Welcome to the Auth0 Community!

Unfortunately, it is not possible to send custom query parameters to the Post User Registration Action.

One possible workaround might be to [configure additional sign-up steps using Forms](https://auth0.com/docs/customize/forms/configure-additional-signup-steps) to ask the user for the marketing campaign name.

Let me know if you have any questions.

Thanks,  
Rueben

---

<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:** [August 1, 2024, 6:34pm UTC](https://community.auth0.com/t/passing-custom-parameters-to-auth0-post-user-registration-flow-using-new-universal-login/139190/4 "2024-08-01T18:34:43Z")

</div>

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