Skip to main content
Tracking

In this article, you will learn how to integrate Google Analytics and similar tracking tools into your landing page.

Mathis Tomelzick avatar
Written by Mathis Tomelzick
Updated over 8 months ago

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:

  1. 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.

  2. 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:

  1. Open the JUNE Editor by clicking on Editor on the relevant page in the sitemap.

  2. Once the editor is open, click on the Settings section at the bottom of the left sidebar.

  3. Click on Tracking at the top.

  4. Click on the HTML tab to be able to edit the two setting options.

  5. Enter your tracking scripts and then click Save at the top.

    1. In the HTML Head metadata text field, you should enter scripts that should be executed at the beginning when the page is loaded.

    2. In the HTML Body append content text field, you should enter scripts that should be executed after the page has loaded.

Did this answer your question?