I'm currently working on enhancing the user experience for our fashion marketplace and am looking to implement a feature that displays a user’s last 3 searches. I would appreciate any insights or examples on how to effectively set this up within Customer.io.
Specifically, I'm curious about how to efficient ways to track and store the last 3 searches per user.
To give some more context, we capture every search request (e.g. “Nike”, “Adidas”, “Reebok”) and I’d like to, in the people attribute, save that as e.g. “Last search 1: Nike, Last search 2: Adidas etc. However, when there is a 4th search, the 1st one drops off (making it dynamic).
The idea is that we can then display “your last 3 searches” in broadcasts.
I would assume that you would need to update the person with each event that happens but if someone has any idea on the correct liquid to use that would be amazing.
I believe the best way to implement this is through Collections. However, if that it is not possible you can do the ff. below:
Capture Search Events: Whenever a user performs a search, you should trigger a custom event in Customer.io.
Update Last 3 Searches Attribute: In the same event, you need to update a custom attribute that keeps track of the last 3 searches. You can use Liquid to manipulate this attribute:
I believe the best way to implement this is through Collections. However, if that it is not possible you can do the ff. below:
Capture Search Events: Whenever a user performs a search, you should trigger a custom event in Customer.io.
Update Last 3 Searches Attribute: In the same event, you need to update a custom attribute that keeps track of the last 3 searches. You can use Liquid to manipulate this attribute:
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.