Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Mikael Malmgren
Added: Feb 27, 2019 2:48 PM
Views: 37
Tags: no tags
  1. var formElement = document.querySelector('#form');
  2. formElement.addEventListener('change', function(){ dataLayer.push({event: 'formInteraction'});});