Hi I’m currently on a project with typescript and amplitude data collecting is working well. Though I have a question, my project is getting user properties including referrer domain and referrer, however I’m wondering if there is a way to get the data on my code and maybe group them? For example, if the users are coming from Google, the referrer domain is “https://google.com”, and I wish I could change it to just “google” and send this to user properties or event properties even. I browsed through tons of documentations but couldn’t find the right answer. I hope someone can help me. Thanks a lot!
Hey there, to work with user properties we usually suggest Identify API . Not sure if this fits your use case though since I can see that our TypeScript SDK automatically collects referrer but maybe you could trigger an API call to overwrite those values by making an API call to Identify so instead of default values you truncate them and send the updated value.
Reply
Welcome to the Amplitude Community!
If you don't have an Amplitude account, you can create an Amplitude Starter account for free and enjoy direct access to the Community via SSO. Create an Amplitude account. You can also create a Guest account below!
If you're a current customer, select the domain you use to sign in with Amplitude.
analytics.amplitude.com analytics.eu.amplitude.comWelcome to the Amplitude Community!
If you don't have an Amplitude account, you can create an Amplitude Starter account for free and enjoy direct access to the Community via SSO. Create an Amplitude account. Want to sign up as a guest? Create a Community account.
If you're a current customer, select the domain you use to sign in with Amplitude.
analytics.amplitude.com analytics.eu.amplitude.comEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.