- Convert MDX CodeBlock components to standard markdown code fences - Add rehype-mdx-code-props to pass filename meta to code components - Custom pre/code MDX components map fences to CodeBlock - Add brand color badges (product + category) matching /learn layout - Match prose styling: orange inline code, orange links, white strong - Remove brand color background glow (not in /learn)
48 lines
1.5 KiB
Plaintext
48 lines
1.5 KiB
Plaintext
---
|
|
title: "Script Tag"
|
|
description: "Add privacy-first analytics to any website with a single script tag. Works with any platform, CMS, or framework."
|
|
category: "platform"
|
|
brandColor: "#F97316"
|
|
officialUrl: "https://pulse.ciphera.net"
|
|
relatedIds: []
|
|
date: "2026-03-28"
|
|
---
|
|
|
|
Add Pulse to any website by pasting a single script tag into your HTML. This works with any platform, CMS, or static site.
|
|
|
|
---
|
|
|
|
## Installation
|
|
|
|
Add the following script tag inside the `<head>` section of your website:
|
|
|
|
```html filename="index.html"
|
|
<head>
|
|
<!-- ... other head elements ... -->
|
|
<script
|
|
defer
|
|
src="https://pulse.ciphera.net/script.js"
|
|
data-domain="your-site.com"
|
|
></script>
|
|
</head>
|
|
```
|
|
|
|
## Configuration
|
|
|
|
- `data-domain` — your site's domain as shown in your Pulse dashboard (e.g. `example.com`), without `https://`
|
|
- `defer` — loads the script without blocking page rendering
|
|
|
|
## Where to paste the script
|
|
|
|
Most platforms have a "Custom Code", "Code Injection", or "Header Scripts" section in their settings. Look for one of these:
|
|
|
|
- **Squarespace:** Settings -> Developer Tools -> Code Injection -> Header
|
|
- **Wix:** Settings -> Custom Code -> Head
|
|
- **Webflow:** Project Settings -> Custom Code -> Head Code
|
|
- **Ghost:** Settings -> Code Injection -> Site Header
|
|
- **Any HTML site:** Paste directly into your `<head>` tag
|
|
|
|
## Verify installation
|
|
|
|
After deploying, visit your site and check the Pulse dashboard. You should see your first page view within a few seconds.
|