Not Tracking Data with Adobe Analytics? | Community
Skip to main content
Level 4
May 15, 2019
Solved

Not Tracking Data with Adobe Analytics?

  • May 15, 2019
  • 5 replies
  • 4370 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by vitalin58577727

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 {

}

5 replies

Level 4
May 15, 2019

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

PratheepArunRaj
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
May 15, 2019

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

Thank You, Pratheep Arun Raj B (Arun) | Xerago | Terryn Winter Analytics
Level 4
May 15, 2019

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

PratheepArunRaj
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
May 15, 2019

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

Thank You, Pratheep Arun Raj B (Arun) | Xerago | Terryn Winter Analytics
vitalin58577727AuthorAccepted solution
Level 4
May 17, 2019

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 {

}