-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set location parameters (lat, long, city, region, country) without having to specify token_auth #11563
Comments
Yes, this might be possible. This feature is available in our HTTP tracking API, which is used by the iOS SDK. See: https://developer.piwik.org/api-reference/tracking-api#other-parameters-require-authentication-via-token_auth So if functions to set these values are not available in the iOS SDK yet, please consider submitting a pull request or creating an issue. |
Dear @mattab , Thanks, but that produced some questions from my side:
And I still have old question:
Regards, |
I just realised that currently, setting location details require -> Solution would be to make location parameters settable without requiring token_auth either by default, or to introduce a new config setting (or reuse |
Maybe @Sobhika2 you could test this: this workaround solution should let you track city/country/region of your iOS apps users (if you know the country/city by another mean than IP addresses):
|
Hi @Sobhika2, just a short information on the state of the iOS SDK here. Neither version 3.x nor the new 4.x release supports setting the Geoposition parameters for an event. Please open a new issue in the piwik iOS SDK repository and we will look into adding it. |
@brototyp Maybe geo location function don't need to be added to the SDK yet because currently it's not really supported by Piwik core without changing a config setting, which is not recommended. By default setting location details require instead we would need
|
@mattab Yes, thank you for the idea for the piwik/piwik-sdk-ios#153 Issue. That sounds like a really good idea! |
Let's continue discussion in matomo-org/matomo-sdk-ios#153 |
Hi All, |
See previous comment #11563 (comment) and also https://matomo.org/docs/geo-locate/ otherwise if you want to location to be detected automatically |
Can someone explain why using JavaScript it is possible to set the user but not the location? |
Hi ,
We are using the IOS SDK for tracking usage of one of our mobile application PIWIK. However, all mobile devices are localized in the US, even if we access it from Europe. This might be related to the fact that we are routed through Mobile Iron.
We tried sending the location using custom variable as below
_paq.push([ 'setCustomVariable', 1 , "Location", location, "page" ]); which did not work.
This project(same source code) is used/launched/deployed on 2 different environments:
So in second case web application is launched in local mobile browser, from file:// protocol, and in addition to this all requests (PIWIK requests too) from this application goes through MobileIron proxy servers.
That’s why sending window.location to PIWIK doesn’t help, cause we are sending file://folder /folder/folder as location object, and PIWIK server cannot detect our real – local IP address for location detection.
In conclusion we have question –
How to enable PIWIK location detection in our case?
We have user coordinates (lon, lat), from mobile device using our app logic, is there way to pass this info to PIWIK and show it on the map?
Please assist.
Regards,
Sobhika
The text was updated successfully, but these errors were encountered: