Documentation

Get started with Claymore in minutes. No build tools required.

๐Ÿ“š Documentation Index

1. Add the SDK to your page

Add the following script tag to your HTML, just before the closing </body> tag:

<!-- Claymore SDK -->
<script
  src="https://sdk.claymore.one/loader.js"
  data-src="https://sdk.claymore.one/claymore.js"
  data-project-id="YOUR_PROJECT_ID"
  async
></script>

Replace YOUR_PROJECT_ID with your actual project ID from the dashboard.

2. Identify users

When a user logs in on your platform, call identify to connect their identity with the current session. This enables you to search for all sessions by user ID.

// Safe to call anywhere, anytime - even before SDK loads
window.Claymore = window.Claymore || { push: function(m, a) { (this.q = this.q || []).push([m, a]) } };
Claymore.push('identify', ['user-123']);

You can call this method with any unique identifier for the user โ€” their user ID, email, or any other string that uniquely identifies them in your system.

3. Track events

Track custom product events to understand user behavior. Events are automatically linked to the current session and replay.

// Track a purchase event
Claymore.push('event', ['purchase', { 
  amount: 99.99, 
  currency: 'USD',
  productId: 'prod-123'
}]);

// Track a button click
Claymore.push('event', ['button_click', { buttonId: 'signup-cta' }]);

Events can be pushed from your code, GTM, or any tag manager. They will be queued if the SDK hasn't loaded yet.

That's it!

Claymore will automatically start recording sessions. You can view replays, logs, and events in your dashboard.

Go to Dashboard โ†’