FeaturesHow it worksPricingDocsBlog
Sign inGet started

Win back the shoppers who almost bought.

Get startedChat on WhatsApp

Product

  • Features
  • How it works
  • Pricing

Resources

  • Docs
  • Blog
  • Recovery guide

Company

  • Careers
  • Support

Legal

  • Privacy
  • Terms
  • Data Deletion

© 2026 Nerja AI · Customer Intent & Retention

support@nerja.ai·+880 1886-157091

Chat on WhatsApp
  • Nerja AI documentation
  • Quick start
  • How Nerja works
  • Install the Nerja Tag
  • Events the tag detects
  • Tag JavaScript API
  • Privacy & consent
  • Mobile SDK overview
  • Get the SDK
  • Android SDK
  • iOS SDK
  • Push notifications setup
  • Push templates
  • Deep links: app or website
  • Connect email (AutoSend, Resend, Amazon SES)
  • Connect SMS (Twilio, BulkSMSBD)
  • Connect WhatsApp (WAAPI, Meta, Twilio)
  • Connect push (Firebase)
  • Campaign types
  • Delivery, open and click tracking
  • Signed user ids
  • Permissions explained
  • API reference
  • Store integrations
  • Troubleshooting
  • FAQ

Nerja Tag (website)

Tag JavaScript API

window.NerjaTracker: identify users, send custom events, set consent and clear the cart.

The tag exposes window.NerjaTracker once it has loaded. All calls are safe to make before sign-up completes — guard with if (window.NerjaTracker).

identify#

Call after your sign-up or login API succeeds. This is what turns an anonymous visitor into a contact you can email or push.

js
window.NerjaTracker?.identify("user_42", {
  email: "sara@example.com",
  first_name: "Sara",
  phone: "+15550100",
});
// alias: NerjaTracker.onSignUpSuccess(userId, traits)

// what

Send a stable user id (your database id or the email) plus whatever traits you have.

// why

Nerja links the earlier anonymous browsing, any app installs and the order history to this one person.

track#

js
window.NerjaTracker?.track("quiz_completed", { quiz: "fragrance", result: "oud" });

Custom events show up in Data Brain and can be used as campaign triggers.

setConsent#

js
// after the visitor accepts your cookie banner
window.NerjaTracker?.setConsent("full");   // "none" | "identity" | "full"

clearCart#

Call on your real order-confirmation page so a bought cart is never treated as abandoned.

js
window.NerjaTracker?.clearCart();

Reference#

MethodPurpose
identify(userId, traits)Link this browser to a person (alias: onSignUpSuccess)
track(eventName, properties)Send a custom event
getAnonymousId()The browser's anonymous id
getSessionId()The rolling session id
flush()Send buffered events now (debugging)
setConsent(level) / getConsent()Control what form data may leave the browser
clearCart()Clear the abandoned-cart model on a real order

Prefer to talk it through? Book a 30-minute call with the Nerja team.

PreviousEvents the tag detectsNext Privacy & consent

Something unclear or missing? Email support@nerja.ai and we will improve this page.

on this page

  • identify
  • track
  • setConsent
  • clearCart
  • Reference