Initialization
Configure the Alke Analytics SDK with your property settings and customize behavior for your application.
Configuration Options
Each platform SDK accepts configuration parameters that control how analytics data is collected and sent.
setConfig(options)
alkeAnalytics.setConfig({
propertyId: 'your-property-uuid', // Required
autoPushPageview: true, // Default: true
countryCode: 'FR', // Optional
cookie: {
domain: '.example.com' // Optional
}
});
| Parameter | Type | Description |
|---|---|---|
propertyId | stringrequired | Your Alke Analytics property UUID from the dashboard |
autoPushPageview | booleanoptional | Automatically track a pageview on initialization. Default: `true` |
countryCode | stringoptional | ISO 3166-1 alpha-2 country code. Overrides automatic detection. |
cookie.domain | stringoptional | Custom cookie domain for cross-subdomain tracking |
Verifying Installation
Open your browser’s Developer Tools (F12) and check the Network tab for requests to ca.alketech.eu.
// Check if alkeAnalytics is available
console.log(typeof alkeAnalytics); // Should output: "object"
For mobile SDKs, enable debugMode to see detailed logs in the console.
Debug Mode
Enable
debugMode during development to see detailed logs. Remember to disable it in production builds.