Skip to main content
Solved

Adding Subscriber attributes


Forum|alt.badge.img+4

Is there a way to add user info when they purchase, like email for example?

Best answer by ryan

Yup! You can attach any arbitrary metadata to a customer in RevenueCat. More info here: https://docs.revenuecat.com/docs/subscriber-attributes


There are some reserved attributes for some common fields as well, such as email.

View original
Did this post help you find an answer to your question?

6 replies

ryan
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 391 replies
  • Answer
  • March 28, 2022

Yup! You can attach any arbitrary metadata to a customer in RevenueCat. More info here: https://docs.revenuecat.com/docs/subscriber-attributes


There are some reserved attributes for some common fields as well, such as email.


Forum|alt.badge.img+6
  • Dedicated Member
  • 29 replies
  • June 16, 2022

I am using this code to update user name and email, but the changes don’t show up on Customer Profile page for this user on RevenueCat dashboard.

Purchases.setDisplayName(“John Doe”);

Purchases.setEmail(“john@doe.com”);

Does it take a while to update? Is this really the correct way to update user profile info?


Forum|alt.badge.img
  • New Member
  • 1 reply
  • June 17, 2022
UlyssesAlves wrote:

I am using this code to update user name and email, but the changes don’t show up on Customer Profile page for this user on RevenueCat dashboard.

Same here, I’m setting attributes via the REST API, and they show up when I hit the subscriber status endpoint, but they do not show up in the RevenueCat dashboard.


Andy
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 237 replies
  • June 20, 2022

@goleary which attributes are you setting? I’m wondering whether they might be reserved attributes or otherwise showing up slightly differently


Forum|alt.badge.img+1
  • Member
  • 7 replies
  • March 12, 2025

I realize this is an old thread -- but I also don’t see any answers or resolution.  How did this resolve?


Forum|alt.badge.img+8
  • RevenueCat Staff
  • 525 replies
  • March 13, 2025

Hi ​@Red-Rob, when subscriber attributes via the SDK syncing happens when the app is foregrounded, backgrounded, or when making a purchase. If you want you can also use the syncAttributesAndOfferingsIfNeeded() method to explicitly sync attributes mid-session, see our docs here

Setting them via our API endpoint here will set them right away, but our customer lists cache and refresh every two hours so that could be a reason why viewing a user’s customer profile may not show this immediately. 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings