- My Mautic version is: 4.0.2
- My PHP version is: 7.4.24
- My Database type and version is: Mysql 5.7.34-37
- These errors are showing in the log: Unfortunately there are no errors in the Mautic’s log as well in the DevTools console on the website.
- This Mautic instance is set behind the reverse proxy.
Main problem is that Mautic is not tracking all the visitors. Google Analytics shows that there are around 7k unique visits on the page per day, but Mautic tracks only around 20-30 of them(as anonymous contacts ofc). These tracked users use different devices, operation systems and are from different locations so there is no common thing for them that will be helpful with diagnosis.
I’ve tried to debug this issue and looks like Mautic don’t create cookies in the browser(checked on smartphone, different computer with several browsers as well as on different ISP). When I embed Mautic’s form on the page and submit my email to create new contact then cookies are created but Mautic don’t track any further moves on the site. No things change in the newly created contact’s log.
I’ve got also a 2nd Mautic instance that is hosted on external VPS server(without proxy) so I made a test. I implemented the tracking code on the website to point to this 2nd instance and this Mautic tracked ca. 40 new contacts in around 5 minutes. So it looks like on this 1st Mautic traffic is lost on server level.
Unfortunately I don’t have access to the server but I am looking for any clues for SysAdmin.
I am wonder if anyone maybe have an example configuration of Apache server and reverse proxy that can resolve that kind of Mautic’s issue?
Steps I have tried to fix the problem:
I’ve tried to add our proxy ip addresses to the “Trusted proxies” field in configuration.
Thank you in advance for any piece of information about possible solutions.
P.S We’ve already faced the problem with redirection loop between https and http that we solved bu adding $_SERVER[‘HTTPS’] = ‘on’ to the configuration.