Mautic tracking site activities other than page view

this is a snippet from mautic documentation:

Other Online Monitoring

There are several other ways to monitor contact activity and attach points to those activities. Website monitoring is only one way to track contacts. Other contact monitoring activities can consist of forum posts, chat room messages, mailing list discussion posts, GitHub/Bitbucket messages, code submissions, social media posts, and a myriad of other options.

there is nothing else saying about this monitoring, neither examples on how to track, I would imagine it would be something similar as facebook or google analytics, but I could not find a place to confirm that.
can I use something like this:

mt('send', 'addcart',{ product: "XXXX" } )

that would track custom events? maybe by adding notes or a history entry for the contact so I can create campaings over it

This would also include custom segment creation and custom campaign events probably. Not that simple I think. Especially, that you are looking for multi dimansional data: event addcart + product name. Possible also price? :slight_smile:

See this discussion:

1 Like

Also: when you look at the event table, the events are connected to bundles, and objects there:
I guess you define them there.

You could essentially accomplish this by creating a segment using

and use the segment for a specific campaign.

in my specific scenario, adding products to the cart is build thru javascript, the user can add several products by clicking in add to cart button from a single page (which list several products), so no new Page hits will be recorded while performing those actions.

I think my approach to this problem will be to expand that existing javascript code to do one of the following:

  1. requesting mautic tracking gif with the parameter I want to track, example:
/mtracking.gif?page_url=mycart.add&page_title=Add%20Product%20To%Cart&email=...&product=...
  1. submiting a mautic form with the information I want

Both ways would be a viable solution in general, I think the form submission would be better since the data is send as a POST method without giving away information in GET url.

regarding adding contact to segments or campaigns: the form submission seems a better solution if you want to act right away after submission, such send e-mails , adding user to campaings, etc. the tracking.gif seems better fit for a later cross analysis of several pages navigation and creating segmentation after that, but I think it is possible to do a similar thing with form submission, I will have to look into more details about that.

I will update this post once I finish implementing a solution for myself. hopefully I will be able to provide some insights for people trying to achieve similar things.

2 Likes

@leoschuler did you ever get an example working? I would love to be able to do some of these things as well, such as track when someone clicks a button that opens a modal window. Right now, I’m thinking maybe I would use an iframe so that a ‘page hit’ gets generated, but while I don’t mind iframes, it seems cumbersome for this. I would much rather add a snippet of javascript to the button click that calls a function that updates the contact record.

Hi Eric,

I have created a video to answer you, explaining the current implementation that I am doing and additional things that I am planning - usually people don’t have 17 minutes to watch / read an answer, I tried to be brief, but I did not rehearse and sometimes was hard to find the words. here is a guide of what I talked:
00:00 - [Intro & Demo]
03:05 - [Overview of the Implementation]
03:39 - [Mautic Tracking Pixel]
5:05 - [About Tag Manager]
12:00 - [Google Analytics with Mautic]

To download the tag template, use this link: gtag-mautic-event on gitHub

3 Likes

and happy new year!

@leoschuler!! This is amazing! This is a very helpful video explanation, thank you very much. I understand what you are doing and how you are doing it and I will begin experimenting with it in the next few days. Your custom templates look like they will be very helpful, as well. I am familiar with GTM and have implemented it in my site, but have not explored some of the more complex abilities.

Again, thank you for taking the time to make such an excellent and in-depth tutorial. I have seen many posts around looking for this kind of functionality for Mautic and this is a big help.

Thank you, and Happy New Year to you!

This is awesome, thanks Leo!