Want to assign a number to registered account upon registration

Want to assign a number to registered account upon registration

Ronin
Shopify Partner
5 0 1

Trying to find a way to automatically assign a number for customers who register an account. Ex; First customer ever registers on site, they're assigned #1. Second customer is assigned #2. and so on. 

We want to use this assigned number for marketing purposes. 

Any ideas? 

Replies 2 (2)

PaulNewton
Shopify Partner
7450 657 1562

Hi Ronin 👋 this could be done in shopify-flow or usemechanic with the customer count api endpoint and set either a metafield or a tag( 💣 remember not overwrite all tags).

REST: https://shopify.dev/docs/api/admin-rest/2024-01/resources/customer#get-customers-count 

graphQL https://shopify.dev/docs/api/admin-graphql/2024-10/queries/customerSegmentMembers#field-customersegm... 

 

Bearing in mind a sign up is not the same as a customers that's made an actual purchase.

Or that when a customer is deleted it's a different issue to change ALL customers "number".

 

 

If you need this type of automation built then contact me for services
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


Ronin
Shopify Partner
5 0 1

We want to count users who register, as we built a custom onboarding flow where we have customers registering for accounts when they come to the site. We would then assign them a number, and that number is intended to follow that account specifically, so if someone deletes their account, it wouldn't necessarily need to change anyone else's assigned number, the person whose account is deleted would simply lose their assigned number.

For context, the flow we are going for here is -> Customer registers, they're assigned a customer # based on when they register, then our marketing team uses Klaviyo to read the customer number assigned and pushes out a marketing email saying "Thank you for registering, you're customer #X"