Skip to content
SDKs & Libraries

Official Client Libraries

Use our official SDKs to integrate CONSETO into your applications. Available for JavaScript, Node.js, Python, and PHP.

JavaScript SDK

Client-side SDK for web applications. Includes cookie banner and event tracking.

2-13KB gz
<script src="https://www.conseto.io/dist/conseto.min.js"></script>
Cookie BannerEvent TrackingGA4 IntegrationConsent Mode v2
DocumentationAvailable

Node.js SDK

Server-side SDK for Node.js applications. Track events and conversions securely.

Lightweight
npm install @conseto/node
Server-side TrackingConversion APIBatch EventsTypeScript Support
DocumentationAvailable

Python SDK

Server-side SDK for Python applications. Django, Flask, and FastAPI compatible.

Lightweight
pip install conseto
Django IntegrationFlask SupportAsync SupportType Hints
DocumentationAvailable

PHP SDK

Server-side SDK for PHP applications. Works with WordPress, Laravel, and more.

Lightweight
composer require conseto/conseto-php
WordPress PluginLaravel SupportPSR-4 CompliantComposer Package
DocumentationAvailable

Quick Start Examples

JavaScriptBrowser
// Initialize CONSETO
const conseto = await Conseto.init({
  clientId: 'conseto_xxx_xxx',
  language: 'sk',
  theme: 'dark'
});

// Track custom event
conseto.track('button_click', {
  button: 'signup',
  page: '/pricing'
});
Node.jsServer-side
import Conseto from '@conseto/node';

const conseto = new Conseto({
  clientId: 'conseto_xxx_xxx',
  apiKey: 'csk_xxx'
});

// Track server-side conversion
await conseto.trackConversion('purchase', {
  value: 99.99,
  currency: 'EUR'
});
PythonServer-side
from conseto import Conseto

conseto = Conseto(
    client_id='conseto_xxx_xxx',
    api_key='csk_xxx'
)

# Track conversion
conseto.track('purchase', {
    'value': 99.99,
    'currency': 'EUR'
})
PHPServer-side
<?php
use Conseto\Conseto;

$conseto = new Conseto([
    'client_id' => 'conseto_xxx_xxx',
    'api_key' => 'csk_xxx'
]);

// Track conversion
$conseto->track('purchase', [
    'value' => 99.99,
    'currency' => 'EUR'
]);

Need a different language?

Use our REST API directly or let us know what SDK you need.

Documentation — CONSETO | CONSETO