Back to Integrations
Grav Integration
Add Pulse to your Grav site via Twig templates.
Add the Pulse Script to Your Base Template
Edit your theme's base template at templates/partials/base.html.twig and add the Pulse script inside the head block.
templates/partials/base.html.twig
<!DOCTYPE html>
<html lang="en">
<head>
{% block 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>{{ page.title }}</title>
{% endblock %}
</head>
<body>
{% block content %}{% endblock %}
</body>
</html>For more details, see the Grav Twig docs.