CDPGuidesSupport
Framework Guides

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.

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:

  1. Copy the Ours Privacy Install Script:

    • Log in to your Ours Privacy account and navigate to the installation page.
    • Copy the provided install script.
  2. 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's html.html.twig file or using a module that allows you to insert custom scripts.
  3. 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.

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?

On this page