The article provides few of the console commands that can be used to troubleshoot DTM implementation:

To check whether DTM library has loaded:

_satellite

If library has loaded the _satellite object will be returned

Object {initialized: true, uuid: 236, dataCache: Object, $data: function, keys: function…}

If library has not loaded:

Uncaught ReferenceError: _satellite is not defined

 

To get the web property for the DTM library hosted on a page:

_satellite.settings.libraryName

The DTM web property ID is the alphanumeric text after satelliteLib‐.

 

To enable debugging mode

_satellite.setDebug(true)

Expected response:

undefined

 

To switch to staging library: (reload required)

localStorage.setItem('sdsat_stagingLibrary', true)

Expected response:

undefined

 

To check if the staging or production library loaded on page:

_satellite.settings.isStaging

Expected response if staging library is present:

true

Expected response if product library is present:

false

 

To get the current value set in a data element:

_satellite.getVar("data_element_name")

 

To get the build date for the library on page:

_satellite.buildDate

Esta obra está autorizada con arreglo a la licencia de Reconocimiento-NoComercial-CompartirIgual 3.0 Unported de Creative Commons.  Los términos de Creative Commons no cubren las publicaciones en Twitter™ y Facebook.

Avisos legales   |   Política de privacidad en línea