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
Hi, I would solve this problem by installing the Term Body Class module and then editing the user profile by adding a taxonomy type field with a dictionary setting to be used as a Term Body...
Add Body Class to user page
Some tasks that I belief, deserve a bit attention in the dev meeting: PHP 8.4 support (#6777) I'd like to get it into core soon, so we have enough time to find possible side effects...
Mar 13th 2025 Weekly Meetings
AFAIK there is no option to customise the sorting of book pages:
Book child page ordering by nodeid
The ordering using titles is unusual because, in alphanumeric characters, "19." is smaller than "2." etc. This has nothing to do with Backdrop. I'm not sure I understand your question. Why...
Book child page ordering by nodeid
Thanks for the suggestions ! site/admin/reports/status/php reports that the OpenSSL module is present : PHP Version 8.3.17 ... OpenSSL support enabled OpenSSL Library Version OpenSSL 3.0....
Failed to get available update data