MaestroThe UI design product. | Form Builder | 21.11 This feature was updated in 21.11.
Maestro allows you to add Analytics properties to a Maestro form using Form Options. You usually do this after you have updated the form's standard page tracking configuration in Manager.
Maestro has limited support for GTMGoogle Tag Manager (GTM) is a tag management system (TMS) that allows you to quickly and easily update tracking codes and related code fragments collectively known as tags on your website or mobile app., so it only checks for window.gtag
or window.ga
presence in the Page Controller and a Modal Page (when it is visible). For more information, see how to add Google Tag Manager in a Maestro form. However, Maestro is fully integrated with the Journey Analytics module where it send all analytics events t.
To add Analytics properties using the Form Options:
// Google Analytics - Page Tracking can add GA to the global window scope
if (!!window.gtag) {
gtag('event', 'page_view', {
page_title: newPage.label,
page_path: baseUrl + newPage.id
});
} else if (!!window.ga) {
ga("set", {
page: baseUrl + newPage.id,
title: newPage.label
});
ga("send", "pageview");
}
Next, learn how to configure form accessibility.