Drupal
Step-by-step guide to integrate Ours Privacy with Drupal for tracking page views and custom events in HIPAA-regulated workflows.
Add Ours Privacy to your Drupal site to track page views and custom events.
Option 1: Ours Privacy Tag Manager (Recommended)
The simplest way to integrate with Drupal is using the Ours Privacy Tag Manager. Follow the Tag Manager Installation Guide to get started with no-code tag management built for HIPAA-regulated sites.
Option 2: JavaScript Web SDK
You can also integrate directly using the JavaScript Web SDK:
-
Copy the Ours Privacy Install Script:
- Log in to your Ours Privacy account and navigate to the installation page.
- Copy the provided install script.
-
Insert the Script into Your Drupal Site:
- You can add the script to the
<head>section of your Drupal site. This can be done by editing your theme'shtml.html.twigfile or using a module that allows you to insert custom scripts.
- You can add the script to the
-
Track Events Using JavaScript:
- Once the script is installed, you can track events by calling the
ours('track', 'Event Name')function anywhere in your JavaScript code.
- Once the script is installed, you can track events by calling the
Why Use Ours Privacy with Drupal?
Ours Privacy brings analytics built for HIPAA-regulated workflows to your Drupal site. Events route through Ours Privacy first, so you control what reaches third parties.
How is this guide?

