Simple tip, but often overlooked. Remember that only an 'event' push to dataLayer can fire tags. Thus, if you add an 'event' key with some value to every single push, you won't need to worry about workarounds to make tags fire when some message (without the 'event key) has been pushed to dataLayer.
This is especially important for Enhanced Ecommerce, since only the most recent 'ecommerce' object push is processed by the Tag which carries the payload to GA. Thus, if you don't have the 'event' key in an 'ecommerce' push, you might find yourself in a difficult situation, having to come up with some workaround to make sure the payload is sent to GA before another 'ecommerce' push is made.
You can also add 'event' keys to pre-container-snippet pushes, which will then enable you to fire tags before the first "default" event of GTM (Pageview AKA gtm.js) takes place.
#gde #googleanalytics #blogpost #gtmtips