The W3C data layer is multi-level deep and follows the W3C syntax, which isn't the best practice for Tealium's Tag Management implementation. Tealium's utag_data object is a flat data layer and one layer deep. The converter code will transform the W3C Data Layer to follow utag_data object's syntax. Post conversion, all the variables will be available for Load Rules, Mappings, etc.
The W3C Converter Code is attached as Additional Resources for this article. This ready-to-use code does not require changes as long as the W3C data layer adheres to the W3C syntax, which is outlined in this link. Otherwise, the code has to be modified suitably.
Take it a step further and test the code in your sandbox using the four sample data layer objects (Confirmation Page, Cart Page, Page, and Product Page) attached to this article.
|Getting Started with The Data Layer|
|1. The Data Layer Explained
2. Adding Data Sources
3. Data Source Types
4. W3C Data Layer Converter