Contact Custom Parameters not being updated

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



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…

So I think it may be a DB issue:

When I run

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.

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

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

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…