Integration · Developers

Oculy for your JavaScript stack

A lightweight, dependency-free, typed package. Loads the pixel and fires your events with a clean API.

Install the package

npm install @oculy.io/tracker

React / Next.js

"use client";
import { OculyProvider } from "@oculy.io/tracker/react";

export function Analytics() {
  return <OculyProvider site="TU_ID_DE_SITIO" replay />;
}

Vanilla

import { init, purchase } from "@oculy.io/tracker";

init({ site: "TU_ID_DE_SITIO" });

purchase({
  value: 79.9,
  currency: "EUR",
  products: [{ name: "Camiseta", price: 39.95, qty: 2 }],
  order_id: "1234",
});

Built for devs

Lightweight, typed and no surprises.

No dependencies

Zero dependencies and tree-shakeable. Minimal footprint.

TypeScript

Types included for init and every store event.

SPA ready

Tracks SPA route changes out of the box.

Cookieless

Privacy-respecting analytics, with no cookie banner for analytics.

Measure your app

Create your Oculy account and connect it in minutes.