> For the complete documentation index, see [llms.txt](https://cryptique.gitbook.io/cryptique/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cryptique.gitbook.io/cryptique/technical/sdk-integration-guide.md).

# SDK Integration Guide

### Prerequisites

* A Cryptique account at [app.cryptique.io](https://app.cryptique.io)
* Access to your website's HTML files or CMS
* Admin access to your website's codebase

***

#### Step 1: Log in to Cryptique

1. Go to [app.cryptique.io/login](https://app.cryptique.io/login)
2. Log in with your credentials

#### Step 2: Navigate to Integrations

<figure><img src="/files/epfKDUD9uY6yMMM2jNdc" alt=""><figcaption></figcaption></figure>

1. In the left sidebar, click **"Integrations"**
2. You’ll see your websites and integrations dashboard

#### Step 3: Add a New Website

<figure><img src="/files/oXCiTgvI8wFV2T9HB9XF" alt=""><figcaption></figcaption></figure>

1. Click **"Add Website"** (top right or in the websites section)
2. A modal opens for website details

#### Step 4: Enter Website Information

<figure><img src="/files/PM6qXILOuQSS4TCFTFw7" alt=""><figcaption></figcaption></figure>

1. Enter the website name (e.g., "My Website")
2. Enter the domain where you’ll install the SDK (e.g., `example.com` or `www.example.com`)
3. Click **"Add Website"**

#### Step 5: Copy the Installation Script

<figure><img src="/files/xkAUA3IUEOvrfsX7vCLH" alt=""><figcaption></figcaption></figure>

1. After adding, a popup shows the installation script
2. The script will look like this:

```html
<script>
    var script = document.createElement('script');
    script.src = 'https://xxx.xxx.xx/scripts/analytics/1.0.1/cryptique.script.min.js';  
    script.setAttribute('site-id', 'YOUR_SITE_ID_HERE');
    document.head.appendChild(script);
</script>
```

3. Click **"Copy Script"** or copy the code manually
4. Keep the popup open for verification

***

### Troubleshooting

#### Verification fails

1. Check the script is in the `<head>` section
2. Verify the domain matches exactly (including www)
3. Ensure the script is on all pages (or the main template)
4. Wait 5–10 minutes and try again
5. Check browser console for JavaScript errors
6. Verify the site ID is correct

#### Script not loading

1. Check your network tab for 404s on the SDK URL
2. Verify no ad blockers or security software are blocking it
3. Check CORS settings if applicable
4. Ensure JavaScript is enabled

#### Analytics data not appearing

1. Wait 24–48 hours for initial data collection
2. Verify the installation is confirmed as "Verified"
3. Check that visitors are accessing pages with the script installed
4. Ensure your subscription is active

***

### Support

* Email: <support@cryptique.io>
* Documentation: docs.cryptique.io
* Dashboard: [app.cryptique.io](https://app.cryptique.io)

***

### Additional Notes

* The SDK is lightweight and non-blocking
* It automatically tracks page views, sessions, and user interactions
* No additional configuration is required after installation
* The script is compatible with all modern browsers
* Works with both HTTP and HTTPS websites

***
