- TLC Home Home
- Discussions & Ideas Discussions & Ideas
- Product Guides Product Guides
- Knowledge Base Knowledge Base
- Developer Docs Developer Docs
- Education Education
- Blog TLC Blog
- Support Desk Support Desk
The following describes the changes available in the SiteCatalyst templates released on Sept 2, 2015. The Tag names are "SiteCatalyst" and "SiteCatalyst AppMeasurement for JS."
How do I know that I have the latest template that has this feature?
At the top of the template is a date (timestamp) that begins with the template ID and the date in format YYYYMMDD. This feature is added in "20150827" template.
//~~tv:19004.h27.20150827
Note:
If I have "myevent" in my data layer and this is mapped to "click:event5" in mapping toolbox then the following would trigger "event5" with the serialization number 12345.
utag.view( { myevent : "click:12345" } );
The updated template allows for two or more events by adding another mapping and using a comma-separated list of strings in the data layer. In the example below, we have "product-view:prodView" in mapping and also add a "product-view" string in the list of values in our data layer variable "myevent".
utag.view( { myevent : "product-view,click:12345" } );
Because Javascript is nice enough to convert arrays to strings, and add a comma in the process, the following array works the same as a comma-separated list in a string:
utag.view( { myevent : ["product-view", "click:12345"] } );
Note:
Copyright All Rights Reserved © 2008-2021