Because I get asked for certain snippets and examples rather frequently, I’ve posted them online for faster reference:
- Setting a global “s” analytics object
- Setting s.products and array-based variables
- DTM Load Order and custom code blocks
- General Troubleshooting and common code snippets
- Appending a Third-Party Tag Non-Sequentially
- Basic W3C Data Layer
- Single Page Apps and Data Layers
- Direct Call Rules
- Event-Based Rules