Docs
Integrations

npm package (developers)

@oculy.io/tracker for React, Next.js, Vue or vanilla. Cookieless pixel and a typed API.

For JavaScript apps. Loads the pixel and gives you a typed API for your events. Zero dependencies.

Installation

npm install @oculy.io/tracker

React / Next.js

Place the provider once at the root (in Next App Router, in a client component).

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

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

Vanilla

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

init({ site: "YOUR_SITE_ID" });

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

Events

Available shortcuts: viewProduct, addToCart, beginCheckout, purchase and track for custom events.

Cookieless

Oculy uses no cookies and collects no personal data. You don't need a consent banner for analytics.

On this page