Journey Manager (JM) The transaction engine for the platform. | Platform Developer | All versions This feature is related to all versions.
Manager allows you to add third-party page tracking and analytics tags to a form using Google Analytics, Marketo and NetResults template scripts. You can also add any other page tracking as a custom JavaScript.
To configure page tracking for a form:
<!-- Google Tag Manager -->
<noscript/noscript>
< script >(function(w,d,s,l,i){...});</script>
<!-- End Google Tag Manager -->
For example, you can add the following Google Analytics scrip to track your Maestro forms:
<!-- Google Tag Manager -->
<noscript/noscript>
<script>window.addEventListener('DOMContentLoaded', function(){
(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-XXX');
});</script>
<!-- End Google Tag Manager -->
You can't add an input tag HTML element within the body tag, such as the one shown below:
<input type="hidden" name="formCode" id="submission_formCode" value="$form.formCode"/>
However, you can add it into the actual Maestro form as the HTML element into a static text component label.
For more information on Google Tag Manager, see how to add Google Tag Manager support.
Next, learn how to assign form spaces to a form.