Prevent specific virtual pageviews or events from firing with specific values

Bronze Contributor
Bronze Contributor

I would like to block some previously coded utag.links and utag.views from firing/executing without modifying the source code. Is this possible? If so, how? 

Psuedo logic I want to happen

If (condition)
{
prevent execution to one or all tags
}
else
{
proceed
}

1 REPLY 1

Prevent specific virtual pageviews or events from firing with specific values

Bronze Contributor
Bronze Contributor
Found another answer that helped me by searching for suppression. Wouldn't let me retract the question.
I modified this code example to do what I need.
if (document.URL.indexOf('/search') > -1 && a ==="link" && b.EventType === "xyz"){return false;}
Public