Add Tracking Tool to All Pages
To add a tracking script or pixel to your landing page, JUNE offers two setting options that are used in different combinations by all common analysis tools:
You can add Javascript and metadata to the <head> of your landing page so that it is executed as early as possible and allows seamless analysis, even if your users' connection speed should slow down.
You can add tracking pixels, Javascript and "no-script" tags to the end of the <body>. This is used for solutions that should not affect the loading times of the rest of the page. These codes are executed as late as possible and thus guarantee that the remaining content of your landing page has already been loaded and displayed, even for scripts that take longer to load
In both cases, you will find the settings option in your Landing Pages under the Settings menu item. This menu item contains various setting options that affect all landing pages in the current project.
If you now select the Tracking configurator, you will see two text areas with the setting options described above. Enter the scripts here according to the requirements of your tracking tool and then click Save in the top right-hand corner.
The next time you publish your landing pages, the tracking scripts will be added to the page and tracking will be active.
๐ก Tip: The header metadata area is perfect for adding a cookie consent, as it can be used to ensure that the cookie consent script is executed before other scripts can start.
Add Tracking Tools to Individual Pages
If you want to add special codes to individual pages, you will find the same two setting options on each subpage:
Open the JUNE Editor by clicking on Editor on the relevant page in the sitemap.
Once the editor is open, click on the Settings section at the bottom of the left sidebar.
Click on Tracking at the top.
Click on the HTML tab to be able to edit the two setting options.
Enter your tracking scripts and then click Save at the top.
In the HTML Head metadata text field, you should enter scripts that should be executed at the beginning when the page is loaded.
In the HTML Body append content text field, you should enter scripts that should be executed after the page has loaded.