--- 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. ```twig filename="templates/html.html.twig" {{ head_title|safe_join(' | ') }} {{ page_top }} {{ page }} {{ page_bottom }} ``` For more details, see the [Drupal theming docs](https://www.drupal.org/docs/theming-drupal).