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).
Solved
add a counter to an attribute
Best answer by alex_mustafa
{% if customer.number_of_page_views != blank %}
{{customer.number_of_page_views | plus: 1 }}
{% else %}
{{ 1 }}
{% endif %}
Reply
Login to the community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.