# Contact Custom Parameters not being updated

**URL:** <https://forum.mautic.org/t/contact-custom-parameters-not-being-updated/3927>\
**Category:** Product Support\
**Created:** [July 6, 2016, 6:32pm UTC](https://forum.mautic.org/t/contact-custom-parameters-not-being-updated/3927 "2016-07-06T18:32:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tripp](https://avatars.discourse-cdn.com/v4/letter/t/e79b87/32.png) [@tripp](https://forum.mautic.org/u/tripp)\
**Post date:** [July 6, 2016, 6:32pm UTC](https://forum.mautic.org/t/contact-custom-parameters-not-being-updated/3927/1 "2016-07-06T18:32:24Z")

</div>

Contacts not getting custom parameters being passed.  
  
  
  
So testing out my mautic integration, none of my custom parameters were being passed, even though the visit was being recorded, IP address etc sent.  
  
  
  
So I changed the script to hard code parameters, to make sure that it was working. I used the exact same example that’s in the documentation:  
  
  
  
mt(‘send’, ‘pageview’, {email: ‘my@email.com’, firstname: ‘John’});  
  
  
  
The visits are still being recorded, and new contacts created for new IP addresses, etc. But those parameters never get created/updated, even though they should be for literally every visit. I checked from my browser, and I do indeed see the request passing along those custom parameters :  
  
  
  
[http://my.url/index.php/mtracking.gif?page\_title=Landing%20Page&page\_language=en-US&page\_referrer=&page\_url=http%3A%2F%2Fwww.my.url%2F&email=my%40email.com&firstname=John&fingerprint=0190b9ad552083816d053b0eb177257c&resolution=1280x720&timezone\_offset=420&platform=Win32&do\_not\_track=unknown&adblock=false](http://my.url/index.php/mtracking.gif?page_title=Landing%20Page&page_language=en-US&page_referrer=&page_url=http%3A%2F%2Fwww.my.url%2F&email=my%40email.com&firstname=John&fingerprint=0190b9ad552083816d053b0eb177257c&resolution=1280x720&timezone_offset=420&platform=Win32&do_not_track=unknown&adblock=false)  
  
  
  
Any idea why this wouldn’t update the contact with those parameters? What’s the best way to troubleshoot this? No errors in the logs…

---

<div class="post-metadata">

**Author:** ![tripp](https://avatars.discourse-cdn.com/v4/letter/t/e79b87/32.png) [@tripp](https://forum.mautic.org/u/tripp)\
**Post date:** [July 6, 2016, 6:46pm UTC](https://forum.mautic.org/t/contact-custom-parameters-not-being-updated/3927/2 "2016-07-06T18:46:55Z")

</div>

So I think it may be a DB issue:

> [@](#):
>
> SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘mautic.lead\_fields’ doesn’t exist"

When I run

```auto
app/console doctrine:schema:update --dump-sql
```

I get

[quote]DROP INDEX email\_search ON leads;  
CREATE INDEX lead\_fieldemail\_search ON leads (email);  
DROP INDEX country\_search ON leads;  
CREATE INDEX lead\_fieldcountry\_search ON leads (country);[/quote]

But still, no update. Still looking for the right command to make sure the schema is correct.

---

<div class="post-metadata">

**Author:** ![tripp](https://avatars.discourse-cdn.com/v4/letter/t/e79b87/32.png) [@tripp](https://forum.mautic.org/u/tripp)\
**Post date:** [July 6, 2016, 7:24pm UTC](https://forum.mautic.org/t/contact-custom-parameters-not-being-updated/3927/3 "2016-07-06T19:24:10Z")

</div>

Ah, good catch. I had for most of the fields, but I left one out. When I changed that it started working. Thanks!

---

<div class="post-metadata">

**Author:** ![tripp](https://avatars.discourse-cdn.com/v4/letter/t/e79b87/32.png) [@tripp](https://forum.mautic.org/u/tripp)\
**Post date:** [July 6, 2016, 6:32pm UTC](https://forum.mautic.org/t/contact-custom-parameters-not-being-updated/3927/4 "2016-07-06T18:32:24Z")

</div>

Contacts not getting custom parameters being passed.

So testing out my mautic integration, none of my custom parameters were being passed, even though the visit was being recorded, IP address etc sent.

So I changed the script to hard code parameters, to make sure that it was working. I used the exact same example that’s in the documentation:

```
mt('send', 'pageview', {email: 'my@email.com', firstname: 'John'});

```

The visits are still being recorded, and new contacts created for new IP addresses, etc. But those parameters never get created/updated, even though they should be for literally every visit. I checked from my browser, and I do indeed see the request passing along those custom parameters :

[http://my.url/index.php/mtracking.gif?page\_title=Landing%20Page&page\_language=en-US&page\_referrer=&page\_url=http%3A%2F%2Fwww.my.url%2F&email=my%40email.com&firstname=John&fingerprint=0190b9ad552083816d053b0eb177257c&resolution=1280x720&timezone\_offset=420&platform=Win32&do\_not\_track=unknown&adblock=false](http://my.url/index.php/mtracking.gif?page_title=Landing%20Page&page_language=en-US&page_referrer=&page_url=http%3A%2F%2Fwww.my.url%2F&email=my%40email.com&firstname=John&fingerprint=0190b9ad552083816d053b0eb177257c&resolution=1280x720&timezone_offset=420&platform=Win32&do_not_track=unknown&adblock=false)

Any idea why this wouldn’t update the contact with those parameters? What’s the best way to troubleshoot this? No errors in the logs…
