Event Tracking

How to use the Event Tracking feature in the Statistics module

Updated over a week ago

Article Navigation


Introduction

In the Statistics module, it is possible to track events on your website. The Event Tracking feature lets users monitor and track the number of clicks on each button or link and use this data to improve the browsing experience for your website visitors.

Note: One Click = One Event. For example, if the same user interacts with the item 10 times, it is counted as 10 events.


Prerequisites

  1. The Monsido customer needs to have the Monsido script installed on their website.

    For more information, see the User Guide chapter:

  2. The Statistics module needs to be activated on the domain.

    For more information, see the User Guide chapter:


Setup

Add the following code snippet to each page element where you wish to track user interactions.

onclick="window.monsido_functions.trackEvent('Category', 'Action', 'Event', 1);"

For more information, see the User Guide chapter:


Instructions

This section gives instructions on how to navigate to Event Tracking in the Statistics module.

  1. From the Monsido Domain Overview, click Select Domain. The Domain Overview page opens.

    Image showing the location of the Select Domain button.

  2. Click on the domain name. The Dashboard for the domain opens.

    Image showing the full dashboard view.

  3. Locate the Statistics section and click to open it, or click Statistics (the broken pie chart icon) on the page menu bar. The Statistics landing page opens.

    This is the Statistics landing page.

  4. From the menu on the left, click Content.

    The location of the Content button, third item down in the left-hand menu.

    The menu expands.

  5. From the expanded menu, click Events.

    Location of the Events button, sixth item down in the expanded Content menu.

    The Events page opens by default to the Categories view.


Event Categories

From the options on the upper right-hand side of the window, click Categories.

The location of the Categories button, on the upper right-hand side of the Events window.
  • The Categories view is a table with the following headers:

    • Category: User-assigned category. This can be, for example: Contact.

    • Action: This is the element that is assigned to be tracked, for example, a Contact Us button.

    • Events: This column tracks and shows the number of times that users interact with the element, for example clicks on the Contact Us button.

      Note: One Click = One Event. For example, if the same user interacts with the item 10 times, it is counted as 10 events.


Event Actions

From the options on the upper right-hand side of the window, click Actions.

Actions button, on the upper right-hand side of the Events window.
  • The Actions view sorts the chart per tracked item, for example a link or button. The Actions view table has the following headers:

    • Action: This is the element that is assigned to be tracked, for example, a Contact Us button.

    • Name: This category is defined by the user. It usually defines the element further if needed.

    • Events: This column tracks and shows the number of times that users interact with the element, for example the number of clicks on the Contact Us button.

      • Note: One Click = One Event. For example, if the same user interacts with the item 10 times, it is counted as 10 events.


Event Export

Export the Events statistics.

  1. Click Export.

  2. A dialog opens. Select the export from the list.

  3. Monsido sends the export to the email on the account.


Event Names

From the options on the upper right side of the window, click Names.

Names button, on the upper right-hand side of the Events window.
  • The Names view is a table with the following headers:

    • Name: This category is defined by the user. It usually defines the element further if needed.

    • Action: This is the element that is assigned to be tracked, for example, a Contact Us button.

    • Events: This column tracks and shows the number of times that users interact with the element, for example number of clicks on the Contact Us button.

      Note: One Click = One Event. For example, if the same user interacts with the item 10 times, it is counted as 10 events.


How to set up onclick Events with Google Tag Manager

The onclick event executes a certain functionality when, for example, the user clicks on any button.
This event lets website owners monitor and track the number of clicks on each button or link, and use this data to improve the browsing experience for website visitors.

  1. Make sure that the Monsido script is already deployed on Tag Manager, so that the statistics are ready to collect data.

    For more information, see the user guide chapter:

  2. Click Tags, from the menu on the left.

  3. Click New, on the top right of the page.

  4. Create a new tag with the type should be Custom HTML.

    Note: The event is set with Javascript.

  5. Rename the tag. That option is on the top left corner of the window.

  6. Add the event onclick script.

    1<a class="b-btn-t" href="#">Click me</a> 2<script type="text/javascript"> 3function trackEvent() { 4 return window.monsido_functions.trackEvent('Category', 'Action', 'Event', 1); 5} 6document.querySelector('a.b-btn-t').addEventListener("click", trackEvent); 7</script>

    Note: Make sure to adjust the script, since it is set to trigger on a specific button.

  7. Select the tag to be triggered on one or several pages.


    Note: The trigger configuration might need to be adjusted.

  8. Save the changes.

  9. Publish to the website.

For more information, see the Google document:


Additional Resources

It is important to remember that One Click = One Event. For example, if the same user interacts with the item 10 times, it is counted as 10 events.

For more information, see the User Guide chapter:

For definitions and explanations of acronyms and abbreviations used in the Monsido User Guide, see:

For further assistance, contact the Monsido support team at support@monsido.com or use the Monsido chat and help features inside the application.

Image of the toolbar with the Help Center buttons highlighted.

Did this answer your question?