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
Oh the benefits of a new set of eyes.... I don't know how many times I've looked at that css and not spotted that! Mind you, in my defense, my eyes are over 70 years old (and obviously in need of...
How to over-ride grid-flexbox.css
thanks yorkshirepudding, i used the CSS Injector option with this code and it works .views-table caption { font-weight: bold; color: blue; font-size: 26px; }
How to change the format of the Views group title field?
@Ian Spotted the issue: Your selector has "1-wrapper" rather than "l-wrapper" (i.e. the numeral for one rather than lowercase L) Try: @media (min-width: 75em) { div.l-wrapper-inner.container....
How to over-ride grid-flexbox.css
@yorkshirepudding Yes I did flush the caches :) I've also used Firefox to inspect the element - which is where I get the "div.1-wrapper-inner.container.container-fluid" from. While hovering on that...
How to over-ride grid-flexbox.css
@DrAlbany Thanks, but at this stage I'm trying to limit the number of modules on the server... if all else fails I'll take a look at CSS injector.
How to over-ride grid-flexbox.css