It seems that it has nothing to do with the new libary version.
Our website is an SPA and we measure page loads by using event based rules. Each time afunctional page load takes place we generte a random ID in our dataLayer and we use this as a trigger for the page load rule. In this rule I use the above script. The script works fine, but not in the case I reload the page. Then I get the following error:
SATELLITE: Condition for rule "AA: page load" not met. Error: Cannot read property 'clearVars' of null
It seems this prevents the rule from firing. Can you please tell me what is going wrong?
We tried the same at our end and the below piece of code is working at our end with AppMeasurement library version 1.6.4.Please share your DTM account details in a mail (firstname.lastname@example.org) or in a private message so that we can debug the issue at our end.
var s = _satellite.getToolsByType('sc').getS(); s.clearVars(); return true;