Core library for browser environment data collection and personalization
npm install @mitosite-ai/mitosite-corePersonalize your website for every user!
``bash`
npm install @mitosite/core
Attach directly to interactive elements without blocking navigation:
`tsx
import { logClick } from '@mitosite-ai/mitosite-core'
`
Options:
- mclid (string, required): Marketing click id.gatewayUrl
- (string, optional): Override Gateway URL for this call.
Default Gateway URL: https://gateway-production-7f1e.up.railway.app
Example with custom gateway:
`tsx``
onClick={() => logClick({ mclid: 'main-cta-button', gatewayUrl: 'https://gateway.example.com' })}