_satellite.values([object/array])

Please read Limitations before using this reference. The object was tested on June 28, 2016. Other _satellite objects are on DTM _satellite Object List.

 

Description

Return the list of values in an {object} or [array].
Object Type

  • function with parameters

Parameters

  • {object} / [array] (type = object or array)

Return Value

  •  the list of values in an {object} or [array] (type = array)

JavaScript on Developer Console
The following codes were found when “_satellite.values” was typed on Developer Console.

 

Examples

Example 1
Return the list of values in the object.

Example 2
Return the list of values in the array.

Example 3
Return an empty array, if the parameter is a number, “” (empty string), undefined or null.

A string is converted to an array [“s”, ” t”, ” r”, ” i”, “n”, “g”].

 

References

_satellite.keys([object/array])

Please read Limitations before using this reference. The object was tested on June 28, 2016. Other _satellite objects are on DTM _satellite Object List.

 

Description

Return the list of key names in an {object} or index numbers in an [array].
Object Type

  • function with parameters

Parameters

  • {object} / [array] (type = object or array)

Return Value

  •  the list of key names in an {object} or index numbers in an [array] (type = array)

JavaScript on Developer Console
The following codes were found when “_satellite.keys” was typed on Developer Console.

 

Examples

Example 1
Return the list of key names in the object.

Example 2
Return the list of index numbers in the array.

Example 3
Return an empty array, if the parameter is a number, “” (empty string), undefined or null.

A string is converted to an array [“s”, ” t”, ” r”, ” i”, “n”, “g”], and the index numbers are returned as strings. [“0”, “1”, “2”, “3”, “4”, “5”].

 

References

_satellite.URI()

Please read Limitations before using this reference. The object was tested on June 26, 2016. Other _satellite objects are on DTM _satellite Object List.

 

Description

Return the path name and parameters from the url (location.pathname and location.search).

Object Type

  • function without parameters

Parameters

  • none

Return Value

  • the path name and parameters from the url (type = string)

JavaScript on Developer Console
The following codes were found when “_satellite.URI” was typed on Developer Console.

 

Examples

Example 1
Return the path name and parameters from the url (location.pathname and location.search). Hash (#) is not included in the return.

 

References

_satellite.URL()

Please read Limitations before using this reference. The object was tested on June 26, 2016. Other _satellite objects are on DTM _satellite Object List.

 

Description

Return the current url (location.href).
Object Type

  • function without parameters

Parameters

  • none

Return Value

  • url (type = string)

JavaScript on Developer Console
The following codes were found when “_satellite.URL” was typed on Developer Console.

 

Examples

Example 1
Return the current url (location.href).

 

References

_satellite.hasAttr([element], [attribute])

Please read Limitations before using this reference. The object was tested on June 26, 2016. Other _satellite objects are on DTM _satellite Object List.

 

Description

Check if the element has the attribute or not. Return true if the attribute is existed, otherwise false.

Object Type

  • function with parameters

Parameters

  • element: HTML element
  • attribute name: HTML attiribute

Return Value

  • true / false (type = boolean)

JavaScript on Developer Console
The following codes were found when “_satellite.hasAttr” was typed on Developer Console.

 

Examples

Example 1
Check if the <html> element has “class” or “lang” attributes or not.

Example 2
Check if the <a> element has “class” or “tag” attributes or not.

Example 3
Find the “class1” elements. Check if each element has “target” attribute or not.

References

_satellite.setDebug([true/false])

Please read Limitations before using this reference. The object was tested on June 20, 2016. Other _satellite objects are on DTM _satellite Object List.

 

Description

According to Dynamic Tag Management Object Reference PDF (2013),

“Enables or disables JavaScript console debugging. Only works if window.localStorage exists. Sets ‘sdsat_debug’ in window.localStorage”.

locaStorage is available in HTML5 supported browsers. Also, DTM Switch Plugins (Chrome and Firefox) can enable and disable the console debugging as well.

Object Type

  • function with parameters

Parameters

  • true / false (type = string or boolean)

Return Value

  • none

JavaScript on Developer Console
The following codes were found when “_satellite.setDebug” was typed on Developer Console.

 

Examples

After changing the debug mode, please try to reload the website.

 

References

 

DTM “Unofficial” Object Reference

About _satellite Object in DTM

“_satellite”, JavaScript object is the built-in object in DTM (Adobe Dynamic Tag Management). _satellite.track which fires a direct call and _satellite.getVar which gets a data element value are probably the two most popular methods in _satellite. In fact, there are a lot of useful methods and objects that you can use for your DTM implementation. In order to see the all objects in _satellite, you can check them on your website with DTM installed. You can type “_satellite” on Google Developer Tools Console. If you are familiar with jQuery, you may notice that some _satellite methods are very similar to the one in JQuery.
(more…)