Get started

Code Examples

Intenxio works on any website — e-commerce, logistics, insurance, healthcare, property, and more. Show visitors relevant content based on what they want right now.

Logistics company

A visitor browsing express shipping pages sees more express-related content. Someone researching freight sees freight services first.

Intenxio.init({
  websiteId: 'web_abc123',
  publicKey: 'pk_live_...',
  disclosure: { enabled: true, privacyUrl: '/privacy' }
});

// Visitor views express delivery page
Intenxio.signal({
  type: 'view',
  category: 'retail',
  subcategory: 'marketplace',
  item: 'Express same-day delivery'
});

// Visitor clicks freight calculator
Intenxio.signal({
  type: 'click',
  category: 'automotive',
  subcategory: 'commercial-vehicles',
  item: 'Freight shipping quote'
});

// Rank service cards on homepage
const ranked = await Intenxio.rank({
  items: [
    { id: 'express', category: 'retail', tags: ['marketplace'] },
    { id: 'freight', category: 'automotive', tags: ['commercial-vehicles'] },
    { id: 'last-mile', category: 'retail', tags: ['delivery'] }
  ]
});

Insurance website

// Auto-classify from page content
Intenxio.signal({ type: 'view', item: 'Car insurance quote' });
// → insurance / auto

Intenxio.signal({ type: 'view', item: 'Homeowners coverage' });
// → insurance / home

const prefs = await Intenxio.getPreferences();
// { insurance: { auto: 85, home: 60 } }

Healthcare portal

Intenxio.signal({
  type: 'view',
  category: 'healthcare',
  subcategory: 'mental-health',
  item: 'Therapy appointments'
});

Intenxio.signal({
  type: 'click',
  category: 'healthcare',
  subcategory: 'pharmacy',
  item: 'Prescription refill'
});

Property listings

Intenxio.signal({ type: 'view', item: 'Luxury penthouse for sale' });
Intenxio.signal({ type: 'view', item: 'Apartment to rent downtown' });

const ranked = await Intenxio.rank({
  items: [
    { id: '1', category: 'property', tags: ['luxury-homes'] },
    { id: '2', category: 'property', tags: ['rental'] },
    { id: '3', category: 'property', tags: ['residential'] }
  ]
});

Consent before tracking

Intenxio.init({ websiteId, publicKey, disclosure: { enabled: true, privacyUrl: '/privacy' } });

// Wait for consent before personalising
if (Intenxio.hasConsent()) {
  const prefs = await Intenxio.getPreferences();
  renderPersonalisedContent(prefs);
}

// Let visitors change their mind
document.getElementById('privacy-settings').addEventListener('click', () => {
  Intenxio.revokeConsent();
});