Files
pulse/content/integrations/script-tag.mdx
Usman Baig 066f1288f1 feat: trim integration pages from 75 to 25 + migrate to MDX
- Add dedicatedPage flag to integration registry (25 true, 50 false)
- Delete hardcoded nextjs/react/vue/wordpress route pages (wrong metadata)
- Hub page routes non-dedicated integrations to /integrations/script-tag
- Add 301 redirects for 50 removed slugs → /integrations/script-tag
- Migrate guide content from TSX to MDX (content/integrations/*.mdx)
- Add gray-matter, next-mdx-remote, remark-gfm dependencies
- Add content loader (lib/integration-content.ts) matching ciphera-website pattern
- Add prebuild script for integration guide index generation
- Sitemap reduced from 83 to 35 URLs with real lastmod dates
- Remove seoDescription from registry (now in MDX frontmatter)
2026-03-29 00:28:47 +01:00

46 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:
<CodeBlock filename="index.html">{`<head>
<!-- ... other head elements ... -->
<script
defer
src="https://pulse.ciphera.net/script.js"
data-domain="your-site.com"
></script>
</head>`}</CodeBlock>
## 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.