# API creates new contact instead of transform anonymous into known -?

**URL:** <https://forum.mautic.org/t/api-creates-new-contact-instead-of-transform-anonymous-into-known/13899>\
**Category:** Product Support\
**Created:** [April 14, 2020, 7:18pm UTC](https://forum.mautic.org/t/api-creates-new-contact-instead-of-transform-anonymous-into-known/13899 "2020-04-14T19:18:23Z")\
**Posts on this page:** 1\
**Showing post:** 13

<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 5, 2024, 4:17pm UTC](https://forum.mautic.org/t/api-creates-new-contact-instead-of-transform-anonymous-into-known/13899/13 "2024-05-05T16:17:41Z")

</div>

This is why it happens:

> [@Page hits before contact form submission](https://forum.mautic.org/t/page-hits-before-contact-form-submission/17941/14):
>
> Hi Joey Sorry missed your question if this is expected behaviour. Normally it should merge the contact but ONLY if the email is opened in the same browser he got the cookie from point 1. In Point 1. the user should get a cookie with a lead id. In Point 2 you create another lead id with the email. In point 3. you send a welcome email (make sure you enabled track\_by\_tracking\_url in the config) which got the lead id encoded in the email links. If the visitor opens the email link in the same br…

---

_[View the full topic](https://forum.mautic.org/t/api-creates-new-contact-instead-of-transform-anonymous-into-known/13899)._
