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



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

“Removes spaces from the beginning and end of a string and then returns the result”.

If non-string parameter is passed into this method, the JavaScript error will be occurred because “replace()” is String method. This method is very similar to jQuery.trim().

Object Type

  • function with parameters


  • a string (must be string type, otherwise the JavaScript error will be occurred.)

Return Value

  • a string without spaces in the beginning and end

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



Example 1



Leave a Reply

Your email address will not be published. Required fields are marked *