Ours Integration with Drupal
Step-by-step guide to integrate Ours with Drupal for tracking page views and custom events while maintaining privacy and HIPAA compliance.
Ours Integration with Drupal
Integrating Ours with your Drupal site allows you to track page views and custom events efficiently. This guide walks you through setting up Ours Privacy tracking on Drupal.
Option 1: Ours Privacy Tag Manager (Recommended)
The simplest way to integrate Ours with Drupal is using the Ours Privacy Tag Manager. Follow the Tag Manager Installation Guide to get started with no-code, HIPAA-compliant tag management.
Option 2: JavaScript Web SDK
You can also integrate directly using the JavaScript Web SDK:
-
Copy the Ours Install Script:
- Log in to your Ours 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 provides a HIPAA-compliant analytics solution that ensures privacy and security for your Drupal site. It allows you to track user interactions without exposing IP addresses or using third-party cookies.
How is this guide?