Welcome to the Instapage Support Center

|

Form Submission tracking for Google Tag Manager

The HTML/CSS and Javascript settings are available under our professional plan or above.

1. Implement your Google Tag Manager container ID on your landing page. Implementation guide available here.

2.

3. Paste the following code inside the Header section:

<script type="text/javascript">
window.instapageFormSubmitSuccess = function( form ){
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
'event' : 'formSubmissionSuccess',
'formId' : 'contactForm'
});
};
</script>

With this code snippet on your landing page, you will be able to create custom events and triggers within Google Tag Manager that fire upon a form submission.

 

Have more questions? Submit a request
Was this article helpful?
2 out of 3 found this helpful

Need Further Help?

Tell us what you need and we will be happy to assist you.

Our team of expert support staff and our community can answer your questions. Submit a ticket, reach out on live chat or call us now!