# Is it possible to Send "Events" to Mautic?

**URL:** https://forum.mautic.org/t/is-it-possible-to-send-events-to-mautic/17647
**Category:** Product Support
**Created:** [January 3, 2021, 11:09am UTC](https://forum.mautic.org/t/is-it-possible-to-send-events-to-mautic/17647 "2021-01-03T11:09:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![danieleaccuware](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/danieleaccuware/32/627_2.png) [@danieleaccuware](https://forum.mautic.org/u/danieleaccuware)
#### Post date: [January 3, 2021, 11:09am UTC](https://forum.mautic.org/t/is-it-possible-to-send-events-to-mautic/17647/1 "2021-01-03T11:09:01Z")

</div>

**Your software**  
My Mautic version is: 3.2.1  
My PHP version is: 7.4.3

**Your problem**

I need help to understand if it is possible to send “Events” to Mautic, to record specific events and trigger actions based on that.

**Background** :

- On our website users can register and post some text to be analyzed by our editors.
- Each user has to register with an email, and we can easily track that.
- Each user can submit multiple texts to be analyzed.
- Each text is then available for the user at an URL like [https://example.com/revisions/{revision\_id}/](https://example.com/revisions/%7Brevision_id%7D/)

We want the user to receive a series of emails for each texts he submits, remembering him to check the URL above for updates and to check the analyzed text. This can be easily done with a Campaign.  
We use API to send all the relevant data to Mautic.

**Problem**  
If a user submits more than 1 text, we would like to send to Mautic the “Event”, meaning that we can keep track of all the events on Mautic (text submitted, payments…) is that possible at all? How?

Speaking about the example above, if one user submits one text, which is then stored on our website with ID 4701, we can start the “text submitted” campaign in Mautic. We can set a custom field “Text ID” in Mautic that can be updated with 7401, and use it inside the emails to send the user directly to the right page.

But what if the user submits a second text, with ID 7402?

- He is still in the first campaign: can I restart it AND let the user also finish the current “session” of the campaign?
- The Text ID has changed: how can I send the emails about ID 7401 if I update the field to 7402?

Ideally, this could be done with “events”, which is something doable in Active Campaign for example. See here: [https://developers.activecampaign.com/reference#track-event](https://developers.activecampaign.com/reference#track-event) and here [https://help.activecampaign.com/hc/en-us/articles/221870128-An-overview-of-Event-Tracking](https://help.activecampaign.com/hc/en-us/articles/221870128-An-overview-of-Event-Tracking)

Any idea or suggestion?

Thanks,  
Daniele

---

<div class="post-metadata">

### Author: ![namratasaun](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/namratasaun/32/2801_2.png) [@namratasaun](https://forum.mautic.org/u/namratasaun)
#### Post date: [January 4, 2021, 7:31am UTC](https://forum.mautic.org/t/is-it-possible-to-send-events-to-mautic/17647/2 "2021-01-04T07:31:56Z")

</div>

need a similar thing, any update on this?

---

<div class="post-metadata">

### Author: ![pierre\_a](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pierre_a/32/7031_2.png) [@pierre\_a](https://forum.mautic.org/u/pierre_a)
#### Post date: [April 21, 2022, 5:19pm UTC](https://forum.mautic.org/t/is-it-possible-to-send-events-to-mautic/17647/3 "2022-04-21T17:19:50Z")

</div>

Hello @danieleaccuware,

Yes it is possible to submit events using the JS tracking code :

> **[Contact tracking](https://docs.mautic.org/en/contacts/manage-contacts/contact-monitoring#tracking-of-custom-parameters)**
>
> . The act of monitoring the traffic and activity of contacts can sometimes be somewhat technical and frustrating to understand. Mautic makes this monitoring simple and easy to configure.Website Monitoring. Monitoring all traffic on a website can be...

Add to that the fact that a campaign can be launched several times for the same contact and that covers a good part of the needs you express.

Can you keep us updated on the results of your tests?

Pierre
