You can track individual forms more easily with Google Tag Manager. There are several options available, which you can ask your developers about:
Forms should only send valid submit events. The event should not be triggered in the event of an error.
If the form was created with AJAX, ask your developer to return a clear response that can be used as a trigger.
Or ask a developer to fire a dataLayer.push event when the form is successfully submitted. You can catch this event later with a custom event trigger.
Add unique IDs to key web elements. Defining these IDs will make it much easier to france phone number data track individual interactions. Click ID and form ID variables will be your best friends here.
Use the prefix “data-” for additional information and retrieve it with Google Tag Manager.
If possible, ask your developer to add additional and useful information to the elements of your website. For example, "id" or "data-id=123" to the elements you need to clearly identify for tracking.
A concrete example of this: The startup company Omnisend offers an email marketing platform that can be easily integrated into popular e-commerce platforms such as Shopify, BigCommerce, etc. This allows various logos of e-commerce providers to be displayed on a website, some of which redirect visitors to their own app store. Using the appropriate tags for each individual logo or link, it is possible to determine which link was most popular. Technically, this works with the help of the auto-event variable, which is used to pass the data to Google Analytics. This attribute can also be accessed via the variable DOM element.
If you can't figure out how to track an interaction yourself, ask your developer to fire a dataLayer.push event. In fact, the "dataLayer.push first" approach is recommended, as it's more robust than, for example, DOM scraping.
One part of the Google Tag Manager container snippet should be placed in the (head) section, and the second part should be placed directly after the opening of the (body) tag. If that's not possible, place both codes as high as possible in the (body) section of your website.
For single-page websites, you should use URL fragments. These are parts of the web address that come after a hash symbol (#). This allows you to track different sections of the page and trigger virtual page views using a history change trigger and its variables.
Preparing the website and installing Google Tag Manager
-
- Posts: 298
- Joined: Sun Dec 22, 2024 5:00 am