counting product views using profile script | Community
Skip to main content
Michael_Soprano
Level 10
April 18, 2024
Solved

counting product views using profile script

  • April 18, 2024
  • 1 reply
  • 558 views

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?

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by alexbishop

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.

1 reply

alexbishop
Adobe Employee
alexbishopAdobe EmployeeAccepted solution
Adobe Employee
April 25, 2024

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.