# Problem with tracking a contact created via API

**URL:** <https://forum.mautic.org/t/problem-with-tracking-a-contact-created-via-api/35184>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [March 5, 2025, 8:51am UTC](https://forum.mautic.org/t/problem-with-tracking-a-contact-created-via-api/35184 "2025-03-05T08:51:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![darkfireleaf](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/darkfireleaf/32/13311_2.png) [@darkfireleaf](https://forum.mautic.org/u/darkfireleaf)\
**Post date:** [March 5, 2025, 8:51am UTC](https://forum.mautic.org/t/problem-with-tracking-a-contact-created-via-api/35184/1 "2025-03-05T08:51:15Z")

</div>

**Your software**  
My Mautic version is: 4.4.10.

I have this problem when creating a contact using the API:

‘email’ =\> $email,  
‘firstname’ =\> $name,  
‘telephone’ =\> $phone,  
‘ipAddress’ =\> $ip,  
‘overwriteWithBlank’ =\> true,

The contact is created correctly. However, the problem is that tracking does not work.

After creating the contact, I tried running:

mt(‘send’, ‘identify’, { email: ‘test@test.com’ });

But it didn’t work. I also tried:

mt(‘send’, ‘pageview’, { email: ‘test@test.com’ });

What should I do to make tracking work for a new contact?
