Some implementations, such as on single-page applications, require multiple hits sent on the same page load. Use the
clearVars() method to clear variable values so they don’t persist to subsequent hits.
This method does not take any arguments, and does not return any value. Its only purpose is to clear variable values from the instance object. This method sets the following elements to
Set the Clear Variables action when configuring a rule.
You can call the
s.clearVars() method anywhere in your implementation after you instantiate the Analytics object instance.