Getting Started
Installation
Install the Idlen Pixel on your website
Installation
Add the Idlen Pixel to your website to start tracking page views and conversions.
Prerequisites
- An Idlen Ads Manager account
- Your Advertiser ID (found in Settings > Pixel)
Script Tag (Recommended)
Add this snippet to your website's <head> section, just before the closing </head> tag:
<!-- Idlen Pixel -->
<script>
!function(i,d,l,e,n){i.idlen=i.idlen||function(){
(i.idlen.q=i.idlen.q||[]).push([].slice.call(arguments))};
var s=d.createElement('script');s.async=1;
s.src='https://pixel.idlen.io/v1/pixel.js';
d.head.appendChild(s)}(window,document);
idlen('init', 'YOUR_ADVERTISER_ID');
idlen('track', 'PageView');
</script>
<!-- End Idlen Pixel -->
Replace
YOUR_ADVERTISER_ID with your actual Advertiser ID from the Ads Manager.NPM Installation
SoonFor JavaScript/TypeScript projects:
npm install @idlen/pixel
import { init, track } from '@idlen/pixel';
// Initialize with your advertiser ID
init('YOUR_ADVERTISER_ID');
// Track page view
track('PageView');
Verify Installation
- Go to Ads Manager > Settings > Pixel
- Visit your website in a new tab
- Check the "Recent Events" section for incoming events
Debug Mode: Enable console logging to troubleshoot issues:
idlen('init', 'YOUR_ID', { debug: true });