Issue with data element | Community
Skip to main content
February 22, 2017
Solved

Issue with data element

  • February 22, 2017
  • 3 replies
  • 1103 views

I created a data element with the below custom code and have it firing on a pageload rule (bottom of page but also same results with top of page) in DTM. Everything looks good except I get a few instances of my strings I am passing but randomly truncated. (see image below). Is there a way to ensure the whole string gets passed appropriately?

var adBlockDetection = (function() {
var test = document.createElement('div');
  test.innerHTML = ' '; //non-breaking space in div element
  test.className = 'adsbox'; //"adsbox" is on the adblocker definition list and will get blocked
  document.body.appendChild(test); // add the definition to the fake ad (div)
   if (test.offsetHeight === 0) {
     //console.log("AdBlocker Status: Active");
     return "AdBlocker Status: Active";
    } else {
     //console.log("AdBlocker Status: None");
     return "AdBlocker Status: None";
    }
})();

return adBlockDetection;

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 jantzen_b

Have you been able to replicate this behavior yourself? It looks like it's happening less than 0.1% of the time so I imagine replicating it is going to be difficult. Have you done further analysis of the data to know where these hits are coming from? I'd like to know if they are isolated to a specific browser, region, mobile device, etc.

3 replies

ParitMittal
March 2, 2017

HI Scott,

Ideally this shouldn't have been the case because eVar has a length of 255bytes and the "AdBlocker Status: Active" is less than it. Can you please share your DTM account details as well as URL of the website in a private message so that we can debug the issue at our end.

Thanks & Regards

Parit Mittal

jantzen_b
Adobe Employee
jantzen_bAdobe EmployeeAccepted solution
Adobe Employee
March 2, 2017

Have you been able to replicate this behavior yourself? It looks like it's happening less than 0.1% of the time so I imagine replicating it is going to be difficult. Have you done further analysis of the data to know where these hits are coming from? I'd like to know if they are isolated to a specific browser, region, mobile device, etc.

ParitMittal
March 9, 2017

Hi Scott,

Have you done further analysis of the data to know where these hits are coming from ?

Thanks &  Regards

Parit Mittal