Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

How can I set up custom code using do_plugins to stop events firing twice


Level 3

Our shopping cart has a number of popups that, after selected, cause the page to refresh and the scView or Checkout event to reload again. For this reason, in the 5 years we've had Adobe (I'm new so not my fault haha), they've never created a path for the 6 page shopping cart. 


I tried to use this code to limit the shopping cart view page to once per visit or session with this:


s.usePlugins = true;
s.doPlugins = function() {"scView,event52"; = s.getValOnce(,"event52,scView")


What am I doing wrong or is there a better way?

1 Reply


Community Advisor

Hi Anderson,


If the goal is to fire the mentioned events once per visit, just update the event settings in the report suite by setting Unique Event Recording to Record Once per Visit.


Alternatively, you may want to create an advanced calculated metric for each event to dedupe them by Visit.