Back to Integrations
Drupal Integration
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 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.
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>For more details, see the Drupal theming docs.