I found the mistake,
but not how I can handle it?
The error is in the JavaScript loop.
This is my JavaScript Script:
var resultcomparisonBrand = "";
var comparisonBrandArray = digitalData.comparisonInfo;
var arrayBig = comparisonBrandArray.length;
var comparisonBrand =new Array();
console.log(comparisonBrandArray.length);
for (var i = 0; i < arrayBig; i++) {
comparisonBrand += digitalData.comparisonInfo[i].comparisonBrand + "|";
}
var sillyString = comparisonBrand.slice(0, -1);
return sillyString;
Unfortunately I get an error message in the Adobe Analytics console.
satelliteLib-246d9334a8fac8f7242fe07a80421dd5e091a6aa-staging.js:15 Uncaught TypeError: Cannot read property 'length' of undefined
at Object.customJS (satelliteLib-246d9334a8fac8f7242fe07a80421dd5e091a6aa-staging.js:15)
at Object.A.realGetDataElement (satelliteLib-246d9334a8fac8f7242fe07a80421dd5e091a6aa-staging.js:11)
at Object.A.getDataElement (satelliteLib-246d9334a8fac8f7242fe07a80421dd5e091a6aa-staging.js:11)
at Object.A.getVar (satelliteLib-246d9334a8fac8f7242fe07a80421dd5e091a6aa-staging.js:11)
at satelliteLib-246d9334a8fac8f7242fe07a80421dd5e091a6aa-staging.js:11
at String.replace (<anonymous>)
at Object.A.replace (satelliteLib-246d9334a8fac8f7242fe07a80421dd5e091a6aa-staging.js:11)
at o (satelliteLib-246d9334a8fac8f7242fe07a80421dd5e091a6aa-staging.js:11)
at s (satelliteLib-246d9334a8fac8f7242fe07a80421dd5e091a6aa-staging.js:11)
at Object.A.preprocessArguments (satelliteLib-246d9334a8fac8f7242fe07a80421dd5e091a6aa-staging.js:11)
but why?
This is the URL from the Site.
Reifen online günstig kaufen beim Shop von ReifenDirekt.de
Only in the Debug and Staging Mod see.
https://chrome.google.com/webstore/detail/launch-and-dtm-switch/nlgdemkdapolikbjimjajpmonpbpmipk
BR,
Vitali