Google Tag Manager Utility Function Library

A set of common helper functions for creating custom tracking scripts within GTM. This micro-library is contained within a single variable so it can be pulled in to any other tag or variable using the underscorejs pattern of: var _ = {{Utility Library}}; _.addEvent(document.querySelector('.article a'), 'click', function(e){ console.log('article link click!'); }); This approach provides a few benefits: … Continue reading Google Tag Manager Utility Function Library