diff --git a/frontend/web/js/events.js b/frontend/web/js/events.js index d1d5baa..eb39cf4 100644 --- a/frontend/web/js/events.js +++ b/frontend/web/js/events.js @@ -9,7 +9,8 @@ $(function() { $('.section-forms #contact-form') .on('submit', function() { - dataLayer.push({'event': 'formsend_send'}); + window.dataLayer.push({'event': 'formsend_send'}); + console.log('callback pushed'); }); $(document) -- libgit2 0.21.4