# Mautic Anonymous -\> Known User: Cloudflare issues

**URL:** https://forum.mautic.org/t/mautic-anonymous-known-user-cloudflare-issues/24306
**Category:** Product Support
**Created:** [June 1, 2022, 11:26am UTC](https://forum.mautic.org/t/mautic-anonymous-known-user-cloudflare-issues/24306 "2022-06-01T11:26:05Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)
#### Post date: [June 1, 2022, 11:26am UTC](https://forum.mautic.org/t/mautic-anonymous-known-user-cloudflare-issues/24306/1 "2022-06-01T11:26:05Z")

</div>

**Your software**  
My Mautic version is: 4.2.2  
My PHP version is: 7.4

**Your problem**  
My problem is:

I have done this hundred of times and it is working on so many sites, however I have one Wordpress site that I have a Mautic Form integrated using the javascript provided and I can see when the user hits the page, fills out the form, but does not merge this with the anonymous user.

Any ideas on how to begin to debug this.

---

<div class="post-metadata">

### Author: ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)
#### Post date: [June 1, 2022, 1:04pm UTC](https://forum.mautic.org/t/mautic-anonymous-known-user-cloudflare-issues/24306/2 "2022-06-01T13:04:11Z")

</div>

A little bit more information and a question here.  
First the question. If a site is sitting behind Cloudflare or Mautic is sitting behind Cloudflare could this have an affect.

I did an experiment, I went to another Wordpress installation connected the exact same way with Mautic and did the exercise of visiting in incognito, then filling out a contact-us form and seeing that the anonymous user is converted into the new user details - and this worked.

I then went to the problematic Wordpress instance and changed the plugin to track from the ams of the working Wordpress site, then went to the problematic Wordpress site updated all the new information and tested it.

It did not convert the user.

---

<div class="post-metadata">

### Author: ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)
#### Post date: [June 1, 2022, 5:37pm UTC](https://forum.mautic.org/t/mautic-anonymous-known-user-cloudflare-issues/24306/3 "2022-06-01T17:37:24Z")

</div>

After a days investigation I think I am confident enough to say that this is a server issue with Cloudflare. Depending on the web server you are using you will need to modify it so that it can catch the real ip of the user and not Cloudflare IP.

I have found this article post however have no idea how to actually implement it: [GitHub - ergin/nginx-cloudflare-real-ip: This project aims to modify your nginx configuration to let you get the real ip address of your visitors.](https://github.com/ergin/nginx-cloudflare-real-ip)

---

<div class="post-metadata">

### Author: ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)
#### Post date: [June 1, 2022, 6:45pm UTC](https://forum.mautic.org/t/mautic-anonymous-known-user-cloudflare-issues/24306/4 "2022-06-01T18:45:14Z")

</div>

maybe someone can help she some light on this, I am checking the access logs and see that my own IP is actually being logged at each stage, so I am wondering if this show real ip needs to be configured on the Wordpress site

```auto
99.999.99.99 - - [01/Jun/2022:18:37:53 +0000] "GET /index.php/form/generate.js?id=2 HTTP/1.1" 200 6971 "https://www.wordpress-site.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36"
99.999.99.99 - - [01/Jun/2022:18:37:53 +0000] "GET /index.php/mtc.js HTTP/1.1" 200 100698 "https://www.wordpress-site.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36"
99.999.99.99 - - [01/Jun/2022:18:37:54 +0000] "GET /dwc/firstnamegreeting?page_title=Test%20Contact%20-%20Knup%20Sports&page_language=en-US&preferred_locale=en_US&page_referrer=&page_url=https%3A%2F%2Fwww.knupsports.com%2Ftest-contact%2F&counter=0&timezone_offset=-180&resolution=1920x1080&platform=MacOS&do_not_track=false&timezone=Asia%2FJerusalem&mautic_device_id=1eefceq3lwz0mwdf8htxmqr HTTP/1.1" 204 0 "https://www.wordpress-site.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36"
99.999.99.99 - - [01/Jun/2022:18:37:54 +0000] "POST /mtc/event HTTP/1.1" 200 122 "https://www.wordpress-site.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36"
99.999.99.99 - - [01/Jun/2022:18:38:13 +0000] "POST /form/submit?formId=2 HTTP/1.1" 200 254 "https://www.wordpress-site.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36"

```

---

<div class="post-metadata">

### Author: ![itsmunyrhere](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/itsmunyrhere/32/12657_2.png) [@itsmunyrhere](https://forum.mautic.org/u/itsmunyrhere)
#### Post date: [September 8, 2024, 3:04pm UTC](https://forum.mautic.org/t/mautic-anonymous-known-user-cloudflare-issues/24306/5 "2024-09-08T15:04:00Z")

</div>

Did you find any solution related to this?
