weeveo
  • Features
  • How it works
  • Revenue
  • Agents
  • Pricing
  • Docs
Sign in
Start free
weeveoanalytics

Understand your traffic.See what leads to sales.

See where visitors come from, what they do and which visits lead to purchases. Basic statistics without a popup. Recordings require permission.

Start freeService status

© 2026 Weeveo. All rights reserved.

Product

  • Features
  • Revenue reporting
  • Realtime
  • Funnels & journeys
  • Pricing

Developers

  • Documentation
  • Agents & MCP
  • Browser SDK
  • REST API
  • Start free
  • Sign in

Company

  • Changelog
  • Support
  • Contact
  • Privacy policy
  • Terms of service
  • Refund policy
  • Status

weeveo

Skip to content
Documentation home
Start here
Meet WeeveoYour first siteFind your way aroundCore concepts & metrics
Install & track
Install the trackerFramework & CMS recipesTracker configurationBrowser SDK referenceConsent & your CMPVisitor identity & payment matchingVerify your installationCustom tracking domains
Understand your traffic
Overview & realtimeDates, filters & comparisonsSources & campaignsPages & engagementEvents & visitor timelinesExplore, paths & saved viewsTraffic quality & anomalies
Conversions & revenue
Goals & conversionsFunnels & bottlenecksRetention cohortsRevenue reportingConnect a payment providerAttribution modelsCustomer journeysAll payment providers
Experience & performance
Session replaysClick & scroll heatmapsWeb Vitals & performance
Developers & agents
Connect ChatGPT, Claude & agentsCreate & manage API keysREST API quickstartAnalytics query referenceErrors, limits & safe retriesJavaScript & Python examplesMCP transport & tool discoveryOAuth discovery & authorizationPermissions & write consentAsk Weeveo & saved chatsApp identity & plugin metadataHTTP surface referenceAll API & MCP tools
Workspace & privacy
Workspaces & multiple sitesTeam, roles & invitationsSite preferences & notificationsPublic reports, embeds & badgesAccount & securityPrivacy & collection controlsVisitor export & erasure
Operate Weeveo
Background jobs & maintenanceTroubleshooting & common questionsQuestions & analysis recipes
Building something?Explore every API tool Download JSON reference ↗
DocsInstall & track
Install & track

Browser SDK reference

Track actions, inspect consent and identify a permitted persistent visitor.

On this page
Available globalTrack an actionAdd declarative trackingUnderstand the data boundaryRead session information

Available global#

The script exposes window.weeveo after loading. There is no separate published Weeveo npm or Python SDK required for these methods. REST examples later in these docs use standard language HTTP clients.

MethodArgumentsResult / behavior
track()noneManual pageview
track(name)event name stringCustom event, subject to consent and name validation
track(object){ name?, url? }Named event at a path, or a pageview when name is omitted
identify(id, data)stable user ID, optional { email }Identity event only with separate purpose consent and persistent identity
setConsent(choice, purposes?)granted or denied; optional recording / identification booleansUpdates choice and returns the applied state
getConsent(purpose?)analytics (default), recording or identificationCurrent permission state
getConsentRecord()noneStatus, timestamp, version, notice URL, mode and purpose flags
getSession()none{ projectId, visitorId }; visitorId may be undefined

Track an action#

javascript
window.weeveo?.track("signup_complete");
window.weeveo?.track({ name: "pricing_cta", url: "/pricing" });

Names must start with a letter, use letters, digits, spaces, underscores, dots, colons or hyphens, and be at most 64 characters. Strings containing eight consecutive digits are rejected. Do not put names, emails, order IDs or free text into event names.

Add declarative tracking#

html
<button data-weeveo-event="pricing_cta">View plans</button>

Declarative clicks require automatic tracking to be enabled. The legacy data-umami-event attribute is also recognized.

Understand the data boundary#

The current tracker accepts event names and sanitized paths, not an arbitrary custom-properties analytics store. Ordinary custom properties are discarded. Internal numeric performance and engagement fields are allowlisted. Passing a second object to track(name, properties) does not create custom property reports.

Read session information#

javascript
const session = window.weeveo?.getSession();
// visitorId is available only when persistent identity is permitted.

The return value does not include a public sessionId. Do not invent an ID or assume cookieless visitor continuity. See identification for payment matching.

Still looking for an answer? Try troubleshooting or get in touch.

PreviousTracker configurationNextConsent & your CMP
ON THIS PAGE
Available globalTrack an actionAdd declarative trackingUnderstand the data boundaryRead session information
Your sites. Your permission.

Start with read access. Grant changes when you need them.

Understand access

Search Weeveo documentation

Good places to start

Start hereYour first siteGo from a new workspace to your first verified visit.Install & trackInstall the trackerOne shared script, configured for your site and consent policy.Install & trackBrowser SDK referenceTrack actions, inspect consent and identify a permitted persistent visitor.Developers & agentsConnect ChatGPT, Claude & agentsUse OAuth sign-in for hosted agents, with optional API keys for other clients.Developers & agentsAnalytics query referenceExact shared date, traffic, comparison and filter parameters.Developers & agentsAll API & MCP toolsEvery tool, argument schema and permission in the shared registry.
K to open↑ ↓ to select · Enter to open · Esc to close