Your software
My Mautic version is: 4.4.4
My PHP version is: 7.4.30
My Database type and version is: Maria DB 10.5.15
Your problem
My problem is: On an email campaign, the email has two links, one that brings to the Mautic Landig and one that goes to an external landing page. The external landing have all the Mautic-tracking script. The first click from the email to the landings is properly associated to the contact but once the user lands on the landings (Can see it from the browser cookies), on the mautic landing pages it properly has the mtc_id equal to the contact id and therefore all the events are properly tracked and associated to the user while on the external landing it seems that the script creates a new user (anonymous) each time and so all the events that happend from there on are associated to this new anonymous user and not to the user to whom i sent the email. I have read a lot these days about CORS problems but I don’t see to have any. No errors on console and the external landing domain is properly added to the CORS settings on mautic and checking the local.php file the domain is actually is there.
These errors are showing in the log:
the only error on log is
ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\BadRequestHttpException: “Untrusted Host “xx.xx.xx.xx”.” at /var/www/html/vendor/symfony/http-kernel/HttpKernel.php line 83
where xx.xxx.xxx.xx is the ip of the server, which has been added to the trusted list bu Sympfony continues to give the error
Steps I have tried to fix the problem:
- Tried to put Restrict domains to FALSE in CORS SETTINGS
- Added the external domain to the Valid Domains
- Added #Header set Access-Control-Allow-Origin “*” to the htaccess of the external server