Where to add client-side JS to detect a behavior and build a corresponding Adobe Target profile script?
I am trying to create a profile script in Adobe Target for users that scroll more than 50% of a page. I was told that I have to place some client-side javascript so the info can be collected client-side and passed into Target as profile parameters using targetPageParams() or adobe.target.trackEvent().
So my questions is WHERE and HOW do I do this? Do I just add the snippet to the <head> in a modification in an Adobe Target activity and then create the corresponding profile script? Or is there an actual example of how to implement something like this available for me to work off of? Thank you!