# Updating contact via /mtc/event

**URL:** <https://forum.mautic.org/t/updating-contact-via-mtc-event/27970>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [May 10, 2023, 9:27am UTC](https://forum.mautic.org/t/updating-contact-via-mtc-event/27970 "2023-05-10T09:27:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [May 10, 2023, 9:27am UTC](https://forum.mautic.org/t/updating-contact-via-mtc-event/27970/1 "2023-05-10T09:27:36Z")

</div>

Maybe I don’t get it, but shouldn’t it be possible to update a contact also via call to …/mtc/event/ with parameters? I could call this URL with ID or email in parameters, but still the cookie has priority and creates a new anonymous contact - or ads to the current user in the cookie?

Thanks!

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [May 10, 2023, 11:46am UTC](https://forum.mautic.org/t/updating-contact-via-mtc-event/27970/2 "2023-05-10T11:46:37Z")

</div>

Hi,  
Are you asking about javascript tracking?

---

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [May 10, 2023, 12:42pm UTC](https://forum.mautic.org/t/updating-contact-via-mtc-event/27970/3 "2023-05-10T12:42:05Z")

</div>

Nope. Its by calling an URL direkt:

```auto
https://mauticbaseurl/mtc/event?email=leaduser@theirdomain.dom&page_title=decision&tags=direkt

```

It already creates the page hit event and ads the tag. However - not mapped to the Mautic user, but a new anonymous user.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/7/7ff3bd81840f827e88c57fc00212fd383084fc67.png)

Whats the use case? I want to send a mail within the campaign to a Mautic User to make a decision. I can easily create that URL for the button. But as long as I can’t map the call to a defined lead contact, its not working the way I thought it could 😉

(Workaround is to call a prefilled form in kiosk mode. I’d still prefer the initial idea, as it could then directly continue in the campaign, based on the Mautic User decision.)

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [May 10, 2023, 1:11pm UTC](https://forum.mautic.org/t/updating-contact-via-mtc-event/27970/4 "2023-05-10T13:11:32Z")

</div>

I think the idea is to call the tracking gif which displays the image + reads the cookie and identifies the user.

---

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [May 10, 2023, 1:26pm UTC](https://forum.mautic.org/t/updating-contact-via-mtc-event/27970/5 "2023-05-10T13:26:00Z")

</div>

The tracking.gif definitely uses the cookie and thus its not possible to link the parameters with the concerned contact. (I tried it with the tracking.gif too.)

As far as I understand my research, the call to the …/mtc/event with parameters should work too. Just not sure, if the user should be selectable by email (or ID) via the parameter. Its not working.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [May 10, 2023, 1:41pm UTC](https://forum.mautic.org/t/updating-contact-via-mtc-event/27970/6 "2023-05-10T13:41:49Z")

</div>

The tracking.gif will update the person who opens the gif. Are you trying to update another person based on ID? Why not to make an API call?

---

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [May 10, 2023, 4:00pm UTC](https://forum.mautic.org/t/updating-contact-via-mtc-event/27970/7 "2023-05-10T16:00:44Z")

</div>

Hi,  
because I looking for a low level solution, where a campaign sends a mail to e.g. a sales person for them to to a decision, which influences the campaign for a particular lead. Its not the first time this requirement comes up from my clients… It would be easy to generate this link within a simple button.

If I work with the API just for this scenario, I need to have one more active component to be setup and maintained 😉

So did I missunderstand the Call to /mtc/event/ ? I was successful with “page\_hit” and “tags”. But not with matching the contact ID / email.

([Mautic Developer Documentation](https://developer.mautic.org/?php#hooking-into-the-tracking-process-and-returning-custom-responses))
