-
Notifications
You must be signed in to change notification settings - Fork 11
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
Screen Spec #68
Comments
@neiker I am also very interested to do this. 'Screen' needs to also work for the mobile app. I understand that you are using the analytics-node logic, which does not have a screen. Is there a workaround to have "Screen" as well? Should we use "Page" instead? Not sure if this is proper though. Any ideas? Thanks. |
May I assume that we also miss other goodies by using the analytics-node variant of segment? For example, what happens with the anonymous ID? How can we use the automatic feature? Also, how can we get information related to the device? |
Hi @afilp and @zachrnolan Since now you can use this package in node, browser and react native, I think is a good idea to rename it to analytics-universal and then create another project who uses analytics-universal and add there the mobile only features like screen tracking or device info (this will require a native module like react-native-device-info). I'm interested in know what do you think. Here's the PR: https://github.com/neiker/analytics-react-native/pull/37/files |
@neiker I think that's a great idea. We'll need to hook into https://github.com/segmentio/analytics-ios to get access to the Screen API. It requires the use of cocoapods or a manual setup with quiet a long list of dependencies. @afilp As a current workaround, I'm using a regular event and calling it "ScreenView" and passing in the name of the screen as part of the properties. It seems to be okay data wise for our team using Segment/Mixpanel. |
@zachrnolan Thanks. As a workaround I am using the ".page" method, with custom properties, seems to be working. Is this a bad workaround? (please let me know if I miss something here), is your workaround better? Thanks. |
Also, would that help to get rid of CocoaPods? segmentio/analytics-ios#531 I see that someone mentioned this before and the issue is closed in favor of the issue above: |
@afilp I don't see anything wrong with using Page as a workaround. It really just depends on how you are using the data in other applications connected to segment (mixpanel, etc). I'm guessing there are some applications out there that do something special with the Screen data, otherwise they probably wouldn't bother with a separate method. Thanks for the links, I did see that you could get rid of CocoaPods, but it requires the installation of the segmentio ios library which seemed like more work at the time than this library =). |
@zachrnolan Do you think that you can implement this idea? "We'll need to hook into https://github.com/segmentio/analytics-ios to get access to the Screen API" I really want to use your library rather than https://github.com/smore-inc/react-native-segment-io-analytics Thanks! |
I take a look on this and think it's easy to implement. Just need to duplicate page method https://github.com/neiker/analytics-react-native/blob/master/src/index.js#L130 changing the type from 'page' to 'screen' I will make this changes in a couple of days, or if someone want to do it, make the changes, tests and send a pull request |
New version was released with those changes https://github.com/neiker/analytics-react-native/releases/tag/v1.1.0 |
Hi, thanks for all your work on this!
How would I call the screen spec? I have Identity and Track working properly, but it doesn't seem to accept analytics.screen().
Using this in a React Native project and would be awesome if I could track screen views as well.
Thanks!
The text was updated successfully, but these errors were encountered: