Skip to content
Aropath logo
Documentation

Build and Understand Your Business Better On Aropath

Quick starts, API references, and SDKs for every language your team already uses.

SDKs & Client Libraries

Integrate Aropath seamlessly into your software stack using our official server SDKs and client tracking libraries.

Node.js

Official
typescript
npm install @aropath/sdk

Python

Official
python
pip install aropath-analytics

Go

Official
go
go get github.com/aropath/aropath-go

HTML Script

Official
html
<script src="https://cdn.aropath.com/track.js" data-id="YOUR_TRACKING_ID" async></script>

Node.js / TypeScript SDK (@aropath/sdk)

Initialize the tracker with your secret API key to record backend conversions, track custom checkout flows, or push offline customer events.

typescript
import { Aropath } from "@aropath/sdk";

const tracker = new Aropath({ apiKey: process.env.AROPATH_API_KEY });

// Track a custom checkout event and assign a revenue value
await tracker.track("checkout_completed", {
  value: 79.00,
  currency: "USD",
  items_count: 2,
});

console.log("Event tracked successfully");

Python SDK (aropath-analytics)

python
from aropath import AropathClient

client = AropathClient(api_key="YOUR_API_KEY")

# Track custom server event
client.track(
    event_name="checkout_completed",
    properties={"value": 79.00, "currency": "USD", "items_count": 2}
)

Go SDK (aropath-go)

go
package main

import "github.com/aropath/aropath-go"

func main() {
    client := aropath.NewClient("YOUR_API_KEY")
    client.Track("checkout_completed", map[string]interface{}{
        "value": 79.00,
        "currency": "USD",
    })
}

SDK Feature Comparison Matrix

FeatureHTML Script TagNode.js SDKPython / Go SDKs
Auto Visitor Session Tracking✓ IncludedManual EventManual Event
Custom Event Tracking✓ Supported✓ Supported✓ Supported
Revenue Transaction Values✓ Supported✓ Supported✓ Supported
Authentication CredentialPublic tracking_keySecret AROPATH_API_KEYSecret AROPATH_API_KEY

Ready to get started?