![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@cmpsr/analytics
Advanced tools
To be analytic provider agnostic while mirroring itself into the React ecosystem. Since Segment is also trying to do the same thing, their API makes sense as a good base.
React app is wrapped in <AnalyticsProvider>
which passes context
down with functions to track user activities. When these functions are called, it will loop through all valid analytics providers and call their equivalent api.
identify: Let the provider know who the logged in user is group: If there are multiple portals, this helps separate them. This is advanced. page: Track a new page, can be added to Next's router track: Track an even such as a button click user: Returns the auto assigned id reset: Clear the identity
More information can be found on Segment
To compile this library please run npm run libbuild
Wrap the root of your React app in <AnalyticsProvider><YOUR APP /></AnalyticsProvider>
.
Here are the props you can pass in to enable these providers.
export interface IAnalyticsProvider {
segment?: ISegmentConfig;
gtag?: IGTagConfig;
ga?: IGAConfig;
}
import useAnalytics from 'useAnalytics';
const { track } = useAnalytics();
track('Hello World');
Add tests
FAQs
## Philosophy
We found that @cmpsr/analytics demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.