Documentation

Get your AI anime mascot running on your website in under 2 minutes.

Quick Start

1. Sign up and add your site

Create an account, go to the Dashboard, and add your website domain under Sites.

2. Copy the install script

After adding your site, you'll get a single script tag. Add it before the closing </body> tag on your website:

<script src="https://your-app.vercel.app/widget/anime-sales.js" 
        data-site-id="YOUR_SITE_ID"></script>

3. Choose a mascot and triggers

Select a mascot from the library, pick which events trigger it (welcome, exit-intent, cart, etc.), and you're live.

Layer 1 — Universal Detection

These triggers work on any website, no integration required:

EventDescription
welcomeFires 1.5 seconds after page load
exit-intentMouse moves above the viewport (about to close tab)
idleNo mouse/keyboard/scroll activity for 30 seconds
scroll_75Visitor scrolls past 75% of the page

Layer 2 — E-commerce Plugins

Deep integrations that hook into native platform events:

Shopify

Install via Shopify App or add the script tag manually. Automatically detects:
product viewed, add to cart, cart update, checkout started, purchase completed.

WooCommerce

Install the WordPress plugin. Hooks into WooCommerce jQuery events for native
cart, checkout, and purchase tracking.

Layer 3 — Developer API

For custom-built sites or any event not covered by Layers 1 & 2:

// Track a custom event (also triggers mascot if configured)
window.AnimeSales.track('purchase_completed', {
  orderId: '12345',
  value: 49.99,
  currency: 'USD'
});

// Manually show the mascot with a message
window.AnimeSales.show('Hey! Thanks for your purchase! 🎉');

// Hide the mascot
window.AnimeSales.hide();

Generate an API key from your dashboard to authenticate custom events.

Performance

  • Core script: ~20-40KB (no external dependencies)
  • Mascot media loaded lazily — only when triggered
  • AI messages fetched on-demand, not pre-loaded
  • Media served via Cloudinary CDN with caching
  • No impact on Core Web Vitals (LCP, FID, CLS)