Get your site ID to start optimizing conversions.
Your site ID is ready. Add the snippet to start AI-powered optimization.
Add NUNAMI to any website in 2 minutes. One script tag analyzes your pages, generates variants, and runs AI-powered optimization.
<script src="https://nunami.ai/snippet.js?key=YOUR_API_KEY"></script>
// When a visitor views a product
nunami.viewProduct({
id: 'SKU-001',
name: 'Blue Running Shoes',
price: 89.99,
category: 'Shoes',
image: 'https://example.com/shoe.jpg',
url: window.location.href
});
// When they add to cart
nunami.addToCart({
id: 'SKU-001',
name: 'Blue Running Shoes',
price: 89.99
});
// On purchase
nunami.purchase({
id: 'SKU-001',
name: 'Blue Running Shoes',
price: 89.99
});
// Get personalized product recommendations
nunami.getRecommendations({ limit: 6 })
.then(products => {
products.forEach(p => {
console.log(p.name, p.price, p.image);
});
});
# Track an event
curl -X POST https://nunami.ai/api/track \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{
"visitor_id": "user_123",
"event_type": "product_view",
"product": { "id": "SKU-001", "name": "Running Shoes" }
}'
# Get recommendations
curl "https://nunami.ai/api/recommend?key=YOUR_API_KEY&visitor_id=user_123&limit=6"