orta / ARAnalytics

Simplify your iOS/Mac analytics
MIT License
1.84k stars 217 forks source link

Adobe provider screen views with props #247

Closed arifken closed 8 years ago

arifken commented 8 years ago

In our Omniture implementation, all screen views have custom properties associated with them. This PR overrides -didShowNewPageView:withProperties: to call -trackState:data: for page views that have custom context data. Without this PR, ARAnalytics triggers an event (-trackAction:data:). Is this something that would be useful to other developers? or is this too specific to our implementation? Thanks

orta commented 8 years ago

Is this something that would be useful to other developers? or is this too specific to our implementation? Thanks

@synthemesc - do you have an opinion on this? I don't really know enough about the Adobe SDK to make a call. Otherwise it makes sense to merge

synthemesc commented 8 years ago

It would probably break a lot of existing "workflow" with our analytics to do this by default. @arifken, any way you can expose a setting and default to the non-tracking behavior?

arifken commented 8 years ago

@synthemesc yes definitely, good call. Will do and I'll update the PR

arifken commented 8 years ago

Updated :) I also added a unit test for the AdobeProvider, and increased the version of OCMock to take advantage of new syntax features. Let me know if you think this is ok. Thanks

synthemesc commented 8 years ago

LGTM. +1

orta commented 8 years ago

Ace, @arielelkin - if you can rebase and ping me, I'll happily merge this :+1:

arielelkin commented 8 years ago

@orta you probably mean @arifken :-)

orta commented 8 years ago

doh, thanks!

arifken commented 8 years ago

rebased! thanks @orta!