• Analytics shows all visitors are in Pheonix, Arizona, USA.

    I am currently using the following settings

    Snippet type – Default
    Anonymize IP
    Stealth Mode
    using – Gtag.js (v4 API – beta)

    I noticed that somebody else has had the same problem, We are both using the Swift Performance plugin for caching and Cloudflare CDN

    I have a message that gtag.js has been renamed, is this a new feature?
    Also, I can not find the cron job for caos, has this been renamed as well?

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 23 total)
  • Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Yes, starting at CAOS v4.x the downloaded files are renamed to random strings, as an extra step to bypass ad blockers.

    I use CloudFlare, too without issue. What happens when you (temporarily) disable the Swift Performance plugin? Does that resolve the issue? Cause if so, I’d have to do some testing with Swift.

    Thread Starter learningstill

    (@learningstill)

    The IP address location for my Bluehost server is Pheonix, Arizona. This seems to be the reason all visitors appear to be in this location.

    I don’t know why it would be taking the IP location from my server though!

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    With Stealth Mode enabled, the requests to google-analytics.com are sent through your server, but CAOS sends the user’s IP to google-analytics.com.

    I suspect it might be wrongfully detecting a HTTP header, could you enable debug logging and share the file with me?

    Don’t copy paste it here, because it might contain private info of your users (IP addresses). Instead send it to me using this form.

    Thread Starter learningstill

    (@learningstill)

    Thanks for the reply Daan.

    I will get the log sent over to you tomorrow.

    Many thanks.

    Thread Starter learningstill

    (@learningstill)

    Hi, I have sent the debug log and some information on the form you linked to

    thanks

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Hi!

    I’m sorry, for some reason I didn’t get a notification of your submission in my inbox.

    I looked at your log file and it doesn’t appear to contain any information about visitors. Only information about the creation of the needed files. Your site did receive actual visitors (apart from you as a logged in administrator) while debug was on?

    Thread Starter learningstill

    (@learningstill)

    Hi Daan,

    I have had debug turned on since Friday the 3rd of April, I also visited the site myself on a mobile device to test if it was now recording the country correctly. GA is recording the visits, CAOS is definitely working as I have a 90seconds event being triggered by visitors in my engagement/events report, the cookies also appear to be being created correctly.

    As I mentioned, I am unable to find a cron job for CAOS, I had a message at the top of the Caos settings page saying something about a problem with the cron job being created, but I foolishly forgot to make a note of what the message said.

    Thread Starter learningstill

    (@learningstill)

    I have just checked the debug log file, it is still only 1.68kb and has not been modified since it was created on 3/4/2021

    • This reply was modified 3 years, 11 months ago by learningstill.
    Thread Starter learningstill

    (@learningstill)

    I am using the WP Crontrol plugin to view and schedule cron jobs. If possible, can you tell me the hooks and optional arguments for any cron jobs that should be being created by caos? I will attempt to add a new cron event manually.

    Thanks

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Hi!

    That’s great. You can indeed add the cron manually, CAOS’ cronjob is called caos_update_analytics_js.

    Btw. I just noticed you’re using super-stealth.php. Please update to v1.6.0 of CAOS Super Stealth Upgrade and update the super-stealth.php file from CAOS’ Extensions tab.

    Hopefully that’ll resolve your issue!

    Thread Starter learningstill

    (@learningstill)

    Hi,

    The debug log appears to be updated every 5 minutes, as this is the schedule I set up.
    However, the information in the debug log seems to be just repeating and not actually recording any visitor information.

    I am currently accessing my site via mobile network, GA is showing my visit in the real-time report(still showing the location as Pheonix, Arizona.)

    I am unsure as to why the debug log is not recording any visitor information

    any ideas?

    • This reply was modified 3 years, 11 months ago by learningstill.
    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    That’s the default name for the cronjob. It’s a standard cron event.

    Thread Starter learningstill

    (@learningstill)

    Hi,

    thanks for that.

    The cron job I created has one action which is CAOS_Setup->load_cron_script()
    is this correct?

    The debug log appears to be updated every 5 minutes, as this is the schedule I set up for the cron job. However, the information in the debug log seems to be just repeating and not actually recording any visitor information.

    I am currently accessing my site via mobile network, GA is showing my visit in the real-time report(still showing the location as Pheonix, Arizona.) so there should be information for the debug log to record

    I am unsure as to why the debug log is not recording any visitor information

    any ideas?

    • This reply was modified 3 years, 11 months ago by learningstill.
    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Yes, that makes sense, since you’re using super-stealth.php, which functions completely outside of WordPress. So the logger doesn’t ‘see’ it.

    For the sake of testing, switch Plugin Handling back to Experimental, so CAOS’ standard API will be used again. Then visit your frontend, then the debug log should contain some info for us to work with.

    Thread Starter learningstill

    (@learningstill)

    I have done this, but the debug log is still not recording any information for visitors.

    These are the cookies being created, is this correct?
    CaosGtag_ga
    CaosGtag_ga_********

    I have set the plugin handling mode to experimental and deselected the ‘enable super stealth mode’ button

    I am currently on the site and showing on the GA real-time report
    I am at a loss as to why the debug log is not showing any visitor information, it just keeps refreshing the same info repeatedly.

    ?

    • This reply was modified 3 years, 11 months ago by learningstill.
Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘GA4 showing all visits from one country’ is closed to new replies.