Expand my Community achievements bar.

Join us for an upcoming in-person Adobe Target Skill Builders event ~~> We're hosting these live learning opportunities to equip you with the knowledge and skills to leverage Target successfully. Learn more to see if we'll be coming to a city near you!
SOLVED

counting product views using profile script

Avatar

Level 6

Hi, 

 

I would like to make last seen recommendations but I would like to be sure that the user visited at least 5 product pages. I created this profile script however it always returns 1 as token... Do you see any mistake?

Michael_Soprano_0-1713476956631.png

 

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Yes, you should always use the user. prefix to refer to the Profile Script, rather than profile. 

You could make the script more simple too, based on this example from our Experience League docs
e.g.
Skærmbillede 2024-04-25 kl. 11.23.25.png

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

Yes, you should always use the user. prefix to refer to the Profile Script, rather than profile. 

You could make the script more simple too, based on this example from our Experience League docs
e.g.
Skærmbillede 2024-04-25 kl. 11.23.25.png