Solved

Question about collecting data

  • 19 January 2022
  • 4 replies
  • 54 views

Badge

Dear Amplitude support team,

 

I have a question about collecting data.I want to send the content shown in the figure below, that is the content in the cookie stored in the website browser, to the Amplitude as user properties,and display it at the position marked in the second figure. What should I do, and is there any relevant developer documents that I can refer to?

Looking forward to your reply.Thank you.

 

kind regards,

YuNing Yan

icon

Best answer by Saish Redkar 19 January 2022, 17:46

View original

4 replies

Userlevel 7
Badge +4

Hey @yuning.yan 

From what I understand, you will need to parse the cookie string and extract the content you want to explicitly set as a custom user property. If you are using the JS SDK, then you can refer to this documentation for setting user properties.

Hope this helps.

Badge

Hi @Saish Redkar ,

Thank you very much.It’s really helpful.

Badge

Hi @Saish Redkar ,

I have one more question about user properties. Can I send user properties to Amplitude directly from our server side?

Thank you in advance.

Userlevel 7
Badge +4

Hey @yuning.yan 

Yes, you can. The best way would be to use Amplitude’s HTTP API.

Here are some Community posts which talk more about server side event tracking for your reference -

Reply