API Key

Your key for SDK integration. Generating a new key will revoke the current one.

Integrate an SDK

Pick your platform. You'll be sending events in under 5 minutes.

Web
Android
iOS
cURL
<script src="https://app.crosstrackdata.com/crosstrack.js"></script> <script> CrossTrack.init({ apiKey: 'YOUR_API_KEY', collectionUrl: 'https://crosstrack.onrender.com' }); CrossTrack.consent('opted_in'); // Track events CrossTrack.track('page_view'); // When user logs in: CrossTrack.identify('user_123'); </script>
// 1. Add JitPack to settings.gradle.kts // repositories { maven { url = uri("https://jitpack.io") } } // // 2. Add dependency to build.gradle.kts // implementation("com.github.CrossTrackData:crosstrack-android:0.1.0") // 3. Initialize in your Application class CrossTrack.init( context = applicationContext, config = CrossTrackConfig( apiKey = "YOUR_API_KEY", collectionUrl = "https://crosstrack.onrender.com" ) ) CrossTrack.consent().setConsent(ConsentState.OPTED_IN) // Track events CrossTrack.api().track("screen_view", mapOf("screen" to "home")) // When user logs in: CrossTrack.api().identify("user_123")
// 1. In Xcode: File → Add Package Dependencies // URL: https://github.com/CrossTrackData/crosstrack-ios // 2. In AppDelegate CrossTrack.shared.initialize( config: CrossTrackConfig( apiKey: "YOUR_API_KEY", collectionUrl: "https://crosstrack.onrender.com" ) ) CrossTrack.shared.consent().optIn() // Track events CrossTrack.shared.track("screen_view", properties: ["screen": "home"]) // When user logs in: CrossTrack.shared.identify("user_123")
curl -X POST https://crosstrack.onrender.com/v1/events \ -H "Content-Type: application/json" \ -H "X-API-Key: YOUR_API_KEY" \ -d '{ "anonymousId": "test-visitor-001", "type": "page_view", "properties": {"url": "/hello"} }'

What happens next

Once events start flowing, CrossTrack automatically creates profiles for anonymous visitors. When a user logs in and you call identify(), the anonymous session merges into a known profile. Check the Overview to see your events and profiles, or read the full docs for WebView bridging, cross-domain linking, and more.