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
// Prepping images for blocks $field_image_dir = 'public://blocks'; file_prepare_directory($field_image_dir, FILE_CREATE_DIRECTORY); $block_image = array( 'office-chatgpt.webp...
How to programmatically add an image to a block
OK, I got some excellent help on this issue during office hours today. Thanks Justin! Here is how it was explained to me. If a file in Backdrop CMS is NOT assigned a usage...
How to programmatically add an image to a block
I have successfully ported the OAuth2-Server module from Drupal to Backdrop CMS. You can find my contribution to the Backdrop CMS community on GitHub at the following link: [OAuth2-Server for...
Is any plannining to port the Oauth2_server of drupal module to backdrop cms?
That's great that you've made progress. You'll need to share what you've done so far if you need assistance; for that you will need a GitHub account. Once you have a GitHub account then...
Is any plannining to port the Oauth2_server of drupal module to backdrop cms?
Hi @yorkshirepudding, I've made progress on porting the code. Could you please guide me on how to update the ported code? Additionally, could you raise a request on my behalf? Thank...
Is any plannining to port the Oauth2_server of drupal module to backdrop cms?