MM 6.0 Tracking code injection

WARNING: ONLY INSERT CODE FROM TRUSTED SOURCES
The snippets you specify, are inserted into the index.html page as is, without any sanitation.
Ensure your snippets are valid and safe HTML/JavaScript


To add 3rd party tracking code to your site, go to
Settings > Portal Config Manager > Configuration > Tracking code

Screenshot 2024-03-11 at 13.51.19.png
  1. Copy your code snippets into the provided fields.

    1. Tracking code for <body> tag
      Ensure your snippet is valid and safe HTML! Your code will be placed after the opening <body> tag of the index.html page

    2. Tracking code for <head> tag
      Ensure your snippet is valid and safe JavaScript, wrapped in a <script> tag. It will be placed in the <head> tag of the index.html page

  2. Tick ‘Inject tracking code’ to enable and save your changes

  3. Whitelisted CSP URLs
    In the Deployment manager, go to your site and add any 3rd-party urls, that your code snippets are communicating with and re-deploy.

Screenshot 2024-03-27 at 08.37.06.png
Example of CSP urls required for Google Analytics Read Google documentation

 

  1. Test your site
    Navigate to your site and check the browser console and network requests for any errors