Joshua's Cheatsheets
Light
help

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:
Mon Nov 04 2019 04:09:26 GMT+0000 (Coordinated Universal Time)
Markdown Source Created:
Mon Aug 19 2019 17:06:24 GMT+0000 (Coordinated Universal Time)