Transformers
The Transformers or the transformation functions are the main building blocks of data while implementing tags. The data layer value may return an object and needs to convert it into a variety of other formats to be used within tags or provider attributes.
The standard approach is to create multiple Data elements and format the value each time while creating other Tag Managers. This results in the same data being redefined in various occurrences. However, if the source data changes, then you must update all the instances where it is being read and transformed to different formats.
A transformation function can accept any number of data elements as inputs, format the data, and return it in a different format as required for a dynamic template parameter.
Related Topics
The Transformers section includes the following topics:
Last updated