Question

add a counter to an attribute

  • 5 March 2023
  • 1 reply
  • 14 views

Hello!
Could you please tell me how i can increment (increase) the value of the attribute in customer.io ?
for example i have an attribute, called ‘number_of_page_views’ and i want it to increase it’s value by 1, every time user logins the page. (1,2,3,4 etc).


1 reply

Userlevel 2

Hey Alex,

as long as you send an event or webhook to CIO in case the user logs in, you can do the following:

Create a campaign and simple add “create or update a person” in the workflow. There you can select your attribute number_of_page_views and use liquid to increase the value by 1 with the filter “plus” (in my case it named the attribute page_views):

 

Hope that helps,

Felix

Reply