Configure the consent management settings for the specified source by choosing the Consent management provider from the dropdown and entering the relevant consent category IDs.
The identify call lets you identify a visiting user and associate them to their actions. It also lets you record the traits about them like their name, email address, etc.
To get the userId associated with an identified user, you can use the getUserId() method as shown:
rudderanalytics.getUserId();
Retrieve anonymousId
An anonymous ID (anonymousId) is an autogenerated UUID (Universally Unique Identifier) that is assigned to each unique, unidentified visitor coming to your website.
You can retrieve the anonymousId of any visitor by running the getAnonymousId() method:
rudderanalytics.getAnonymousId();
If the value of anonymousId is null in the SDK, calling getAnonymousId() automatically sets a new anonymousId in RudderStack.
Track
The track call lets you record user activities along with their associated properties.
The group call lets you link an identified user with a group, like a company, organization, or an account. You can also record any custom traits associated with that group, for example, the company name, number of employees, etc.
The alias event lets you merge different identities of a known user.
alias is an advanced method that lets you change the tracked user’s ID explicitly. This method is useful when managing identities for some of the downstream destinations.
This site uses cookies to improve your experience while you navigate through the website. Out of
these
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
essential
for the working of basic functionalities of the website. We also use third-party cookies that
help
us
analyze and understand how you use this website. These cookies will be stored in your browser
only
with
your
consent. You also have the option to opt-out of these cookies. But opting out of some of these
cookies
may
have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
This site uses cookies to improve your experience. If you want to
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.