Back to Integrations
Preact Integration
Add the Pulse script to your index.html like any Vite or HTML project.
Add the Pulse script to index.html
Preact's setup is identical to any Vite-based project. Add the script to your entry HTML file.
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script
defer
data-domain="your-site.com"
src="https://pulse.ciphera.net/script.js"
></script>
<title>My Preact App</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>