Expand my Community achievements bar.

Join us for the next Community Q&A Coffee Break on Tuesday April 23, 2024 with Eric Matisoff, Principal Evangelist, Analytics & Data Science, who will join us to discuss all the big news and announcements from Summit 2024!
SOLVED

Not Tracking Data with Adobe Analytics?

Avatar

Level 4

Hello,

we have problems with our Adobe Analytics figures.

Too few visits are displayed, although we still have many visitors.

It's not ranking or marketing measures, it's Adobe Analytics.

Can you tell us exactly what is wrong here?

That comes as an error message:

Error, missing Report Suite ID in AppMeasurement initialization

Can the problem be? And how do I solve it?

1 Accepted Solution

Avatar

Correct answer by
Level 4

Hall all together,

I solved the problem.

My DataLayer was only on a subpage.

My script queried the data on every page, and of course didn't find the DataLayer on all pages.

That's why it always produced errors.

My new code

Rules -> Data Elements -> comparisonBrandrisonBrandArray

var resultcomparisonBrand = "";

var comparisonBrandArray = digitalData.comparisonInfo;

if ( comparisonBrandArray !== undefined ) {

  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;

} else {

}

View solution in original post

5 Replies

Avatar

Level 2

Can you provide more information, how you have implemented adobe analytics? Using javascript, DTM or launch?

Avatar

Community Advisor

Dear Vitalin,

Can you share you public URL? If you cannot share here, you can message. Will validate and advice you.

As said by Vinoth, we would need more information to understand and debug.

Thank You!

Arun

Avatar

Level 4

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

Avatar

Community Advisor

Dear Vitalin,

The Data Layer 'digitalData' didn't have comparisonInfo at all and thus it is throwing error. The Data Layer only have 'pageinfo' and also there are no arrays. Can you check?

Thank You!

Arun

Avatar

Correct answer by
Level 4

Hall all together,

I solved the problem.

My DataLayer was only on a subpage.

My script queried the data on every page, and of course didn't find the DataLayer on all pages.

That's why it always produced errors.

My new code

Rules -> Data Elements -> comparisonBrandrisonBrandArray

var resultcomparisonBrand = "";

var comparisonBrandArray = digitalData.comparisonInfo;

if ( comparisonBrandArray !== undefined ) {

  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;

} else {

}