Joshua's Docs - Google Tag Manager (GTM) - Cheatsheet

Resources

What Type Link
Official Dev Guide Guide Dev Guide
Simo Ahava's Site (of course) Industry Leader Blog / Tips simoahava.com
Trigger and JS Breakdown (mine) Guide joshuatz.com

Push

Practically anything can be pushed to the global dataLayer (whether or not you have a trigger/tag/variable to read it is another thing altogether).

// Push an event
dataLayer.push({
	'event': 'videoPlay'
});

// ... with details
dataLayer.push({
	'event': 'videoPlay',
	'progress': 50,
	'abc': 'def'
});

// Or push anything!
dataLayer.push({
	'lorem': 'ipsum'
});
Markdown Source Last Updated:
Sat Dec 14 2019 10:37:33 GMT+0000 (Coordinated Universal Time)
Markdown Source Created:
Mon Aug 19 2019 17:06:24 GMT+0000 (Coordinated Universal Time)
© 2024 Joshua Tzucker, Built with Gatsby
Feedback