Hello,
We've implementend dtm on an SPA. In the condition of every rule we have the following script
var s = _satellite.getToolsByType('sc')[0].getS();
s.clearVars();
return true;
The strange thing is that for pages with load times with longer load times (more than 4 seconds) we get the following error and the rule will not fire:
SATELLITE: Condition for rule "AA: page load" not met. Error: Cannot read property 'clearVars' of null
How can we fix this problem?
*On each page load a rondomID is set in the dataLayer. We use this as trigger for the rule. (dataelementchanged)
Regards,
Guido