This guide explains how to register events on your website. Events help you understand what happens on the site: product interactions, form submissions, sign-ins, purchases, and system-level actions.
Pls note: event names are case-sensitive. If you create two events that differ only by letter case, Monolytics will treat them as two separate events.
Before You Begin
Make sure the Monolytics tracking code is already installed on your site. After that, you can choose one of two event-tracking approaches:
1) Add event calls directly in your site code
2) Configure event forwarding in Google Tag Manager
If you need help, write us at mykola@monolytics.app.
Use Events Already Sent to DataLayer
If your site already pushes events to dataLayer, you can forward the same event name to Monolytics through a Custom HTML tag.
Open Tags in GTM and create a new tag.
Select Custom HTML as the tag type.
Paste the following code:
<script>
(function () {
if (window.monolytics_send_conversion) {
monolytics_send_conversion({{Event}});
}
})();
</script>
Attach the tag to the trigger for the event you already send to dataLayer, for example add_to_cart. Name the tag, save it, and publish the container.




Manually Configure an Event in GTM
If your site does not push events to dataLayer, you can still fire Monolytics events with a dedicated GTM tag and the right trigger.
Create a new Custom HTML tag.
Paste the following code and replace
YOUR_EVENT_NAMEwith the real event name you want to track.
<script>
(function () {
if (window.monolytics_send_conversion) {
monolytics_send_conversion('YOUR_EVENT_NAME');
}
})();
</script>
Add the trigger that matches the user action you want to capture. For example, you can use a Click - Just Links trigger when a user clicks a specific outbound link.
Save the tag and publish the GTM container.
If you need any help, write us at mykola@monolytics.app.





