Documentation
Get started with Claymore in minutes. No build tools required.
๐ Documentation Index
SDK Configuration
Complete reference for the JavaScript SDK. Privacy levels, sampling, events, and framework integration guides.
Sessions & Identity
GDPR-compliant session tracking with secure user binding, OAuth support, and automatic user isolation.
Heatmap Architecture
Deep dive into how Claymore captures, processes, and visualizes heatmap data. Includes competitor comparison.
Conversions & Attribution
Track revenue with full UTM attribution, multi-touch journey tracking, and automatic deduplication. Compare with GA4, Mixpanel.
AI Query Examples
Ask questions in plain English. See example queries for revenue analysis, error tracking, and user behavior insights.
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 โ