Back to Integrations
Firebase Hosting Integration
Add Pulse to sites deployed on Firebase Hosting.
Add the Pulse Script to Your Source Code
Follow your framework's integration guide. The analytics script goes in your source code. Firebase Hosting serves static files, so add the script to your index.html or framework layout.
public/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 App</title>
</head>
<body>
<div id="app"></div>
</body>
</html>For more details, see the Firebase Hosting docs.