How can I create a customer-specific point system without an app?

Hi!
I have an idea to give points for customers after doing things (buy specific things or something like this).

I already have tag system that I want to apply

And I don’t want an app for this.

My idea is to have a js/liquid variable för every customer, so I can use this variable to apply my conditons on customer.

How to have a variable for every cusotmer that its value is deppends on the customer behavior.

exemple.

var point;

and I have customers:

customer a

customer b

customer c

customer d

how to create this variable (point) that it is attached for customers.

as resault it will be like this.

custome a has var point

custome b has var point

custome c has var point

custome d has var point

I don’t wanna an app for this( giving customer pint)..I want to code it myselft.

If there is an app that kan help me with giving variables for customer, then it is ok.

Sorry for my english :slightly_smiling_face: