none
pageView telemetry is not capturing client_city, client_countryorregion correctly

    Question

  • We are using pageView on Dynamics 365 forms to captured pageViews. However although our users are located in India and accessing the Dynamics 365 from Indian offices, page count by such Users is captured under client_city as SanJose and client_countryorregion as USA. client_ip is always 0.0.0.0 for all pageView records.

    How to resolve this issue?

    Thanks

    Mak


    MaKeer

    Thursday, December 6, 2018 3:04 AM

Answers

  • Can you confirm if you're using the Application Insights JavaScript SDK for collecting Browser-side telemetry?

    Because, if not, location could be taken from the Server-side itself, wherever your server is hosted.

    Here is another thread that provides more insight in this regard:

    "In most cases, City/Country/Region/State/Province are retrieved from IP of the machine that submitted telemetry (in case of server-side collection with .NET/Java/Node.js SDKs) and from IP of the machine with the browser (in case of client-side collection with JS SDL). There is also an initializer that allows to propagate client IP with server-side telemetry.

    When the app is submitting telemetry, AI endpoint gets client IP it cannot resolve to the certain location (using MaxMind Geo DB, I guess), so the location fields show up empty."

    Hope this helps!

    Wednesday, January 23, 2019 4:39 PM
    Moderator

All replies

  • Hello Mak,

    Azure uses GeoLite2 to look up the IP address of the web client when collecting Geolocation data such as City, Country or Region. But I must say that it is rare to see incorrect Geolocation data being reported as part of Telemetry, and would encourage you to run over the results once more to ascertain.

    Regarding Client IP being 0.0.0.0:

    There was an announcement made around February 2018 informing that Client IP will be zeroed out after AI has extracted Geolocation information from it. This was done to make sure the privacy concerns of Application Insights customers are addressed in light of GDPR law in EU. More here.

    Nevertheless, you may still submit IP as a custom property (if required) via Telemetry Initializers available in most AI SDKs, however, this moves responsibility for handling that IP as well.



    Tuesday, December 11, 2018 5:09 PM
    Moderator
  • Hi BhargaviAnnadevara-MSFT,

    Apart from issue mentioned above, there are several entries where city or region/country is coming up as blank (no values). Is this expected behavior for some exceptional scenarios?


    MaKeer

    Thursday, January 3, 2019 12:38 AM
  • Hello MaKeer,

    Please check this scenario in the Troubleshooting guide for Application Insights.


    Tuesday, January 8, 2019 6:50 PM
    Moderator
  • Hi MaKeer,

    Have you had a chance to check if any of the above options help? Please let us know otherwise and we'll be happy to assist you!
    Monday, January 14, 2019 8:47 AM
    Moderator
  • Hello Makarand Keer,

    Have you had a chance to check if any of the above options worked for you? Please let us know otherwise and we'll be happy to assist you!

    Thursday, January 17, 2019 4:42 PM
    Moderator
  • I understand the reasoning given here however what should we do fix this issue? 

    MaKeer

    Friday, January 18, 2019 3:11 PM
  • Can you confirm if you're using the Application Insights JavaScript SDK for collecting Browser-side telemetry?

    Because, if not, location could be taken from the Server-side itself, wherever your server is hosted.

    Here is another thread that provides more insight in this regard:

    "In most cases, City/Country/Region/State/Province are retrieved from IP of the machine that submitted telemetry (in case of server-side collection with .NET/Java/Node.js SDKs) and from IP of the machine with the browser (in case of client-side collection with JS SDL). There is also an initializer that allows to propagate client IP with server-side telemetry.

    When the app is submitting telemetry, AI endpoint gets client IP it cannot resolve to the certain location (using MaxMind Geo DB, I guess), so the location fields show up empty."

    Hope this helps!

    Wednesday, January 23, 2019 4:39 PM
    Moderator