Show Menu

The s.clearVars() Function

Clears the following values from the instance object. This function removes the elements (sets them as "undefined.")
  • props
  • eVars
  • hier
  • list
  • events
  • eventList
  • products
  • productsList
  • channel
  • purchaseID
  • transactionID
  • state
  • zip
  • campaign
For example:

clearVars() is included in AppMeasurement for JavaScript but is not available in H code and previous versions.