Getting Started
Installation

Installation

Add Convultra to your website using one of these methods. All methods provide the same functionality - choose based on your tech stack.

Method 1: CDN Script (Recommended)

The fastest way to get started. Add this single line to your website's <head>:

index.html
<script
  src="https://cdn.convultra.com/ultra.min.js"
  data-convultra-key="proj_your_api_key"
></script>

Replace proj_your_api_key with your actual project API key from the Convultra dashboard (opens in a new tab).

With Configuration Options

index.html
<script
  src="https://cdn.convultra.com/ultra.min.js"
  data-convultra-key="proj_your_api_key"
  data-auto-track="true"
  data-debug="false"
  data-analytics="true"
></script>

CDN Options

AttributeTypeDefaultDescription
data-convultra-keystringrequiredYour project API key
data-auto-trackbooleantrueAuto-track page views & clicks
data-debugbooleanfalseEnable console logging
data-analyticsbooleantrueEnable analytics features
data-cross-domainstring-Comma-separated domains for cross-domain tracking

Method 2: NPM Package

For React, Next.js, Vue, and other JavaScript frameworks:

npm install @convultra/sdk-js

Then initialize in your app:

src/App.jsx
import { useEffect } from 'react'
import Convultra from '@convultra/sdk-js'
 
function App() {
  useEffect(() => {
    Convultra.init('proj_your_api_key', {
      autoTrack: true,
      analytics: true
    })
  }, [])
 
  return <YourApp />
}

Method 3: Self-Hosted

Download and host the SDK on your own servers:

Download the SDK

curl -o ultra.min.js https://cdn.convultra.com/ultra.min.js

Add to your project

Place ultra.min.js in your /js or /assets folder.

Include in your HTML

index.html
<script src="/js/ultra.min.js"></script>
<script>
  Convultra.init('proj_your_api_key')
</script>
โš ๏ธ

Self-hosting means you won't receive automatic SDK updates. We recommend using the CDN for the latest features and bug fixes.


Method 4: Google Tag Manager

Add Convultra through GTM without code changes:

Create a Custom HTML Tag

In GTM, create a new Custom HTML tag.

Add the SDK script

<script>
(function() {
  var s = document.createElement('script');
  s.src = 'https://cdn.convultra.com/ultra.min.js';
  s.setAttribute('data-convultra-key', 'proj_your_api_key');
  document.head.appendChild(s);
})();
</script>

Set trigger to "All Pages"

Configure the tag to fire on all pages.

Publish container

Publish your GTM container to activate tracking.


Verify Installation

After installation, verify Convultra is working:

1. Check Console

Open browser DevTools (F12) and look for:

๐Ÿš€ Convultra initialized - Ultra tracking active!

2. Enable Debug Mode

Add ?debug=true to your URL or set data-debug="true":

<script
  src="https://cdn.convultra.com/ultra.min.js"
  data-convultra-key="proj_your_api_key"
  data-debug="true"
></script>

Debug mode shows detailed logging:

[Convultra] ๐Ÿš€ Convultra initialized - Ultra tracking active!
[Convultra] ๐Ÿ“„ Pageview event: { sessionId: 'ses_123...', url: '...', pageViews: 1 }
[Convultra] Event tracked: pageview { title: 'Home', path: '/' }

3. Check Network Tab

In DevTools โ†’ Network, look for requests to:

  • api.convultra.com/v1/track (or your custom endpoint)

4. View in Dashboard

Go to your Convultra Dashboard (opens in a new tab) โ†’ Traffic Analytics to see events arriving.


Troubleshooting Installation

โš ๏ธ

Events not appearing?

  1. Check API Key - Ensure it starts with proj_ and matches your dashboard
  2. Check Console - Look for JavaScript errors
  3. Check Network - Verify tracking requests are successful (200 status)
  4. Disable Ad Blocker - Some blockers may interfere during testing
  5. Clear Cache - Hard refresh with Ctrl+Shift+R (Windows) or Cmd+Shift+R (Mac)

Next Steps

After installation: