Getting Started
Configuration
Configurer les options du Pixel Idlen
Configuration
Pour la liste complète des options d'initialisation (autoTrack, trackHash, excludeRoutes), voir Référence des Événements.
Options d'Initialisation
idlen('init', 'VOTRE_ADVERTISER_ID', {
debug: false, // Activer la journalisation console
endpoint: null, // Point de terminaison personnalisé (avancé)
});
| Option | Type | Défaut | Description |
|---|---|---|---|
debug | boolean | false | Activer la journalisation console pour le débogage |
endpoint | string | https://pixel.idlen.io | Point de terminaison API personnalisé (usage avancé) |
Mode Debug
Activez le mode debug pour voir les logs détaillés dans la console du navigateur :
idlen('init', 'VOTRE_ADVERTISER_ID', { debug: true });
Vous verrez des logs comme :
[Idlen Pixel] Initialized { advertiserId: "adv_xxx", visitorId: "abc-123" }
[Idlen Pixel] Event sent: { type: "pageview", url: "/pricing" }
Content Security Policy (CSP)
Si votre site utilise CSP, ajoutez ces directives :
script-src 'self' https://pixel.idlen.io;
connect-src 'self' https://pixel.idlen.io;
Subresource Integrity (SRI)
Pour une sécurité supplémentaire, vous pouvez utiliser SRI :
<script
src="https://pixel.idlen.io/v1/pixel.js"
integrity="sha384-..."
crossorigin="anonymous">
</script>
Contactez le support pour obtenir le hash SRI actuel.