matomo-org / matomo-sdk-ios

Matomo iOS, tvOS and macOS SDK: a Matomo tracker written in Swift
MIT License
390 stars 164 forks source link

tracker-proxy support #90

Closed hector28933 closed 7 years ago

hector28933 commented 8 years ago

From the source code, it looks like using the tracker-proxy at https://github.com/piwik/tracker-proxy should work (it works with the Android SDK), at PiwikTracker.m we have:

if ([lastPathComponent isEqualToString:@"piwik.php"] || [lastPathComponent isEqualToString:@"piwik-proxy.php"]) {
    baseURL = [baseURL URLByDeletingLastPathComponent];
  }

But it doesn't seem to work. (Our code works directly against the piwik server).

Is piwik-sdk-ios tested against tracker-proxy? Is there any workaround needed?

mattab commented 8 years ago

Hi @hector28933 @tiopez Maybe you are able to troubleshoot this issue further and figure out where is the problem, ie. is the HTTP request sent correctly by the SDK? is it sent to the right URL?

At the moment we are looking for a maintainer for the iOS SDK so if you can help, please comment:https://github.com/piwik/piwik-sdk-ios/issues/91

brototyp commented 7 years ago

I am closing the issue for now. Please test this issue with the new swift 3 alpha and reopen the issue if you can provide more detailed information.