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

이 작업에는 Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License의 라이센스가 부여되었습니다.  Twitter™ 및 Facebook 게시물은 Creative Commons 약관을 적용받지 않습니다.

법적 고지 사항   |   온라인 개인 정보 보호 정책