- Add dedicatedPage flag to integration registry (25 true, 50 false) - Delete hardcoded nextjs/react/vue/wordpress route pages (wrong metadata) - Hub page routes non-dedicated integrations to /integrations/script-tag - Add 301 redirects for 50 removed slugs → /integrations/script-tag - Migrate guide content from TSX to MDX (content/integrations/*.mdx) - Add gray-matter, next-mdx-remote, remark-gfm dependencies - Add content loader (lib/integration-content.ts) matching ciphera-website pattern - Add prebuild script for integration guide index generation - Sitemap reduced from 83 to 35 URLs with real lastmod dates - Remove seoDescription from registry (now in MDX frontmatter)
46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
---
|
|
title: "Drupal"
|
|
description: "Add Pulse analytics to your Drupal site using a module or theme template."
|
|
category: "cms"
|
|
brandColor: "#0678BE"
|
|
officialUrl: "https://www.drupal.org/docs"
|
|
relatedIds: ["wordpress", "joomla"]
|
|
date: "2026-03-28"
|
|
---
|
|
|
|
Add the Pulse script via a contributed module or by editing your theme's Twig template.
|
|
|
|
---
|
|
|
|
## Method 1: Using Asset Injector module
|
|
|
|
Install the [Asset Injector](https://www.drupal.org/project/asset_injector) module and create a new JS injector with the Pulse script. Set it to load on all pages in the header region.
|
|
|
|
## Method 2: Edit html.html.twig
|
|
|
|
Add the script directly to your theme's `html.html.twig` template in the head area.
|
|
|
|
<CodeBlock filename="templates/html.html.twig">{`<!DOCTYPE html>
|
|
<html{{ html_attributes }}>
|
|
<head>
|
|
<head-placeholder token="{{ placeholder_token }}">
|
|
<title>{{ head_title|safe_join(' | ') }}</title>
|
|
<css-placeholder token="{{ placeholder_token }}">
|
|
<js-placeholder token="{{ placeholder_token }}">
|
|
|
|
<script
|
|
defer
|
|
data-domain="your-site.com"
|
|
src="https://pulse.ciphera.net/script.js"
|
|
></script>
|
|
</head>
|
|
<body{{ attributes }}>
|
|
{{ page_top }}
|
|
{{ page }}
|
|
{{ page_bottom }}
|
|
<js-bottom-placeholder token="{{ placeholder_token }}">
|
|
</body>
|
|
</html>`}</CodeBlock>
|
|
|
|
For more details, see the [Drupal theming docs](https://www.drupal.org/docs/theming-drupal).
|