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

Piwik-iOS Event tracker issue. #72

Closed issueli closed 9 years ago

issueli commented 9 years ago

Server version : 2.12.1 piwik-iOS-sdk version : 2.5

1.set parameters according document . 2.call method [sendEventWithCategory:@"Event" action:"Launch_App" label:nil];

expected result : The event will show in "Dashboard->Actions->Events" . But real result: The event show in "Dashboard->Actions->Pages" , and "Dashboard->Actions->Events" no data report.

and I call method [sendView:"LoginView"]; also will show in "Dashboard->Actions->Pages". How can I do that make the event will show in "Dashboard->Actions->Events" ?

Please help me to fix this bug, thanks!

mattiaslevin commented 9 years ago

Older versions of the Piwik server only had support for page views. The Piwik SDK did offer an API for reporting events, but they were shown under "Dashboard->Actions->Pages" as a workaround.

Then the Piwik server offered a dedicated section for showing events and the SDK was updated to send events to this section.

I think you are using an old version of the Piwik SDK that are still sending events as page view. If you change to a new version of the Piwik SDK I think you should be fine.

mattiaslevin commented 9 years ago

Closing for now.

minhkte commented 9 years ago

@mattiaslevin Exactly which version got this issues?

Thanks

mattiaslevin commented 9 years ago

If I remember correctly the event support was added in Piwik server 2.3. Support in the SDK was added June 2014 in commit 5b1fb06835a112f3c004eac10cf845ee0cf38459 (both the new and the legacy way to reporting was supported in parallel for some time).

The first official release of the SDK through CocoaPods that included this change was 3.0.0 (b918e8bd29fca9782c12c10bfc814ffdcd9812a8)

All version before 3.0.0 would have this issue (unless you point out a commit directly from Github)