Developer Notes

Unable to track form submissions in Google Tag Manager

Are you having trouble getting Google Tag Manager (GTM) to track form submissions in your website?

Chances are your form is being submitted to the website using AJAX (Asynchronous Javascript and XML). AJAX requests are not detected by web browsers as form submissions, and neither are they detected as such in Google Tag Manager.

What is AJAX?

AJAX is a technique used by websites to retrieve or submit data to a server after the initial page has loaded, without having to reload the page. The website can then be programmed to perform a specific action based on the response from the server, like updating the content in the current page or providing an alert box for the visitor.

AJAX is quite popular in modern websites because it provides a better user experience. It also tends to be more efficient on server resources because it does not require a full page load.

Tracking AJAX requests in GTM

You need to register a custom event in GTM in order to detect AJAX events. You can follow this helpful guide.

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Articles

Want your website to turn up in Google Search results? You can submit your website for indexing in Google Search
Occasionally, we need to bring our website visitors to a maintenance page. Don't worry, you can spin up a Maintenance
When you are deploying changes to a WordPress website, you might encounter an error about PHP's upload_max_filesize. Here is one
After installing Android Studio in Ubuntu, you might experience getting a blank screen instead of the Android Studio Setup Wizard.
It might surprise you how much storage space Snap packages use. You will most likely find that your Snap packages
The Loop Grid widget allows you to set the total number of items to load and display in the Loop

Recent Articles

Topics

Related Topics