Mautic Community Forums

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