Incorporating GTM to EnrolHQ lets you collect analytics such as page clicks and form conversions from your website.
Add Google Tag Manager to EnrolHQ
- If not already, set up Google Tag Manager - you will get an ID like GTM-MZJZM2H after you set it up. https://tagmanager.google.com/
- Go to Settings > Custom Scripts > JS Custom Code
Paste in the following code and change out the highlighted code below with your individual GTM ID replaced in two spots. Then click save.
<!-- Google Tag Manager -->
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-MZJZM2H');
<!-- End Google Tag Manager -->
function enrolHQInitAlways(){
$(window).on('load',function(){
$('body').prepend("<noscript><iframe src='https://www.googletagmanager.com/ns.html?id=GTM-MZJZM2H' height='0' width='0' style='display:none;visibility:hidden'></iframe></noscript>");
});
}