Skip to content

Instantly share code, notes, and snippets.

@joshkehn
joshkehn / gtm_macros.js
Created January 16, 2014 19:09
Google Tag Manager Macros
/*
* Custom JS macros for creating tags in GTM that populate event information from
* element attributes.
*
* Author: Joshua Kehn <[email protected]>
* Copyright: (c) 2014 by Joshua Kehn
* License: ISC <http://www.isc.org/downloads/software-support-policy/isc-license/>
*/
function () {