• Basics
  • Setup

How to Add a Tracking Code using Google Tag Manager

Oct 29, 2024

Add a Tracking Code

Our tracking code is lightweight and won't slow down your site. You can add it to your site by simply pasting it on all pages before the closing </body> tag, or you can do this using Google Tag Manager. Just follow a few simple steps below to start using Monolytics with GTM — record user sessions and conduct research with surveys.

Video walkthrough for adding a tracking code Play
  • Register and Add Your Site Upon registering, you'll see a pop-up prompting you to specify the website address you want to analyze. Enter your site's URL, then click "Next." Your site will now appear in the dashboard.

    Registering Monolytics and adding your site
  • Install the Tracking Code Click "Install Tracking Code," and copy the code provided by our assistant.

    Copying the Monolytics tracking code
  • Set Up in Google Tag Manager

    • Open Google Tag Manager and navigate to Tags.

    • Click "Add a New Tag," select Custom HTML as the tag type, and paste the tracking code.

    • Add a trigger, choose All Pages, and name the tag, such as "HTML Monolytics."

    • Click Save and Submit to publish. Name the version, for example "Add Monolytics", and press Publish.

    Opening the tags screen in Google Tag Manager
    Selecting a custom HTML tag in Google Tag Manager
    Configuring the All Pages trigger
    Publishing the Google Tag Manager version
  • Verify Installation Once published, use the Verify Installation button in Monolytics to confirm setup. Verification requires initial data to reach our servers, which may take a few minutes.

    Verifying the Monolytics installation
    Installation verification helper step one
    Installation verification helper step two
    Installation verification helper step three

That's all!

If you need any help - write us at mykola@monolytics.app