We have a Target Case where we need to Target Visitors on 3rd Visit.
Since we don't have inbuilt Visits Num, we are supposed to create profile scripts to set Visit Number, thereby we thought we can target them.
But when we tried to implement, the profile script didn't seems like working. Can anyone help? Or suggest idea to target the case?
Below is the code we used for Visit Number in profile script.
return (user.get('numVisits') || 0) + 1;
First let me mention that implementation/development is definitely not my strong suit. With that out of the way I can see you really need help and I'm hoping that even by sharing ideas that might give you a little help in the right direction. Here is how I would attempt to accomplish this if I were tasked with it:
1. Write custom code on the site that increments the visit number. (Sorry don't know the exact code to do this.)
2. Once the visitor reaches visit#3 set mbox parameter visit3=true.(Pass Parameters to a global mbox)
3. Set up audience that targets to mbox parameter visit3=true.
I hope this has helped you out even if just a little.
Mihnea Docea | Technical Support Rep, Customer Care | Customer & Employee Experience | Adobe | (:: 1 (800) 497-0335
First of all, thanks for your revert. Appreciate!
Yes, as said i can implement this using page level scripts or through DTM/Launch. But i want to explore and do it using Profile Script and thus asked for help. Will wait for other members.