Back to Integrations
Jekyll Integration
Add the Pulse script to your default layout or an _includes partial.
Method 1: Create an analytics include
Create a reusable include with a production environment guard.
_includes/analytics.html
{% if jekyll.environment == "production" %}
<script
defer
data-domain="your-site.com"
src="https://pulse.ciphera.net/script.js"
></script>
{% endif %}Method 2: Include in your default layout
Reference the include in your default layout's <head>.
_layouts/default.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% include analytics.html %}
<title>{{ page.title }}</title>
</head>
<body>
{{ content }}
</body>
</html>For more details, see the Jekyll includes docs.
Related Integrations: Hugo, Eleventy, GitHub Pages