splithub_analytics_connect
Configure SplitHub analytics in a React or Next.js app: assign a property to the provider, create one if missing, and get wiring status plus tracking snippets.
Instructions
Set up analytics in this app: use a property (id), create one (name, or nothing when the project has none), then name it on the one / in the code (property="sh-…"). Answers property, created, wired { status: added | already | other | none | many, file, line }, snippets { provider, script (sh.js tag with data-property), track, identify } and next. status none or many: add the provider snippet yourself (or the sh.js tag on a site without React). other: the provider names another property; ask before calling again with force. Pageviews are sent for you; events are track(name, props). In an app, script is empty and snippets.screen shows useScreen for screens the navigation tracker does not see. In cloud mode a new property is created in the cloud at once (live: applied), so no push: deploy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | create a new property with this name | |
| force | No | replace another property already named on the provider | |
| property | No | property id to use (added to the config when new) |