Skip to content

Instantly share code, notes, and snippets.

@keithws
keithws / mkto.form.listener.html
Last active March 18, 2025 07:14
Marketo Form Listener for Google Tag Manager (GTM)
<script>
/**
* push events to Google Tag Manager when the Marketo Forms 2 Javascript is
* loaded and executed and when Marketo form events occur
* uses the Marketo Forms 2.0 API
* http://developers.marketo.com/documentation/websites/forms-2-0/
*
* @author Keith W. Shaw <[email protected]>
* @license MIT
*/