Back to Integrations
Flutter Integration
Add Pulse to your Flutter web application via web/index.html.
Add the Pulse Script to Your HTML Template
Edit web/index.html in your Flutter project and add the Pulse script to the <head> section.
web/index.html
<!DOCTYPE html>
<html>
<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 Flutter App</title>
</head>
<body>
<script src="main.dart.js" type="application/javascript"></script>
</body>
</html>Note: This only applies to Flutter Web. For Flutter mobile apps, Pulse tracks web views only.
For more details, see the Flutter Web docs.