Learn business growth with Google Analytics 4 Forums Google Analytics 4 GA4: Missing Geographic Data in Measurement Protocol Events

  • GA4: Missing Geographic Data in Measurement Protocol Events

    Posted by Vijay on 10 March 2023 at 12:10 pm

    Hey there, I have been sending events through Measurement Protocol and it’s all good when it comes to getting the data from the custom dimension’s parameters.

    But, there’s a small hiccup. The data for “City” and “Country” shows up as “(not set)” for all events I’ve sent till date.

    Got any clue why I’m sailing in this boat? Thanks in advance.

    Lincoln replied 1 year, 3 months ago 3 Members · 2 Replies
  • 2 Replies
  • Sophia

    Member
    20 May 2023 at 5:21 pm

    Ah, gotcha! It seems like there’s a simple reason for your geographic data not appearing. It turns out that the city and country information can only be automatically collected by some specific tools. These are: gtag, Google Tag Manager, or Google Analytics for Firebase. That’s probably why your city and country data is showing up as “(not set)”.

    You can find more information about this on Google’s own developer guide for the protocol you’re using. Here’s [the link](https://developers.google.com/analytics/devguides/collection/protocol/ga4) for the guide.

    Hope this clears up the confusion!

  • Lincoln

    Member
    8 June 2023 at 8:42 am

    When you’re using the Measurement Protocol to send data, the geographical information like “City” and “Country” are automatically determined by Google Analytics through the IP address from where the hit originated. If you are seeing “(not set)” for “City” and “Country”, it could be because the IP address from the hit can’t be geo-located. Google Analytics won’t be able to determine the geographical information for IP addresses that belong to a private network or a local network. Therefore, ensure that the hits you’re sending are coming from a location that can be geo-located.

Log in to reply.