Drupal 7 had the Tracking Code module that did the following:
A module that allows admins to create tracking code snippets and control their visibility similar to the core Drupal block module. It can be used to inject arbitrary code into the <head>, and at the beginning and end of the <body> tag, the most common placement for tracking code.
This module allows you to name your various tracking code snippets and organize them by weight and region. Configuration of a single snippet provides visibility settings similar to the core Drupal block module: white/black list by Drupal path, content type, and user role.
Currently there are three possible regions to inject your tracking code snippets:
- Inside <HEAD> - Code is added using drupal_add_html_head()
- After <BODY> - Code is added to $page['page_top'] using hook_page_alter()
- Before </BODY> - Code is added to $page['content_bottom'] using hook_page_alter()
We're thinking of porting this module. But, I am wondering if there is a better way to accomplish the same thing that does not require porting another module?
Recent comments
Now, now calm down! :) I based my statement "Since Bee doesn't seem to have any active sites using it - I wonder if that is a viable option?" on the following: Note active installs...
Cloudflare specific advice needed
Since Bee doesn't seem to have any active sites using it - I wonder if that is a viable option? What do you mean by that? Loads of sites use it but it is not a module, rather...
Cloudflare specific advice needed
My "unexpected shutdown" turned out to be my VPS Host replacing the kernal - they shutdown then restarted the server.
Cloudflare specific advice needed
My suggestions, if there is time to look at recent bug reports: (1) Not sure if the fix for this issue still needs a code review to get labeled as RTBC: Editor link autocomplete...
July 9th, 2026 - Weekly Meetings
Also I would welcome feedback on the approach I've taken to: [A11Y] Update aria role on messages area based on type of messages (#5715)
July 9th, 2026 - Weekly Meetings