PiwikPRO / piwik-pro-sdk-framework-ios

MIT License
2 stars 2 forks source link

appName property not sent as custom variable #3

Open aeirola opened 3 years ago

aeirola commented 3 years ago

The PiwikTracker.h header file (https://github.com/PiwikPRO/piwik-pro-sdk-framework-ios/blob/1.0.6/PiwikPROSDK.framework/Headers/PiwikTracker.h#L189) mentions that the value of the appName property will be sent as the custom variable in index 2. On the other hand, the SDK documentation https://developers.piwik.pro/en/latest/sdk/Piwik_PRO_SDK_for_iOS.html#default-custom-variables that the custom variable at index 2 will be populated with the system version. It is confusing that the different pieces of documentation contradict each other.

In my quick testing, I noticed that the SDK documentation would be correct, and the header file untrue. Additionally, I noticed that setting the appName property affected the domain part of the screen tracking urls. Similarly to how the applicationDomain property behaves in the Android SDK.