Skip to main content

Drupal - where has the Google ID disappeared?

On most of the sites I'm running the Google analytics ID is appearing.  Therefore, tracking and capturing data.  All except one!

Discovering where Google ID and Google Tag ID were on a client's site... or not in this situation.  Yes that's correct, for some reason the analytics IDs aren't appearing.  Zip, zero... nothing.

Looking on this site, Google tag Manager positions the tag ID in the following lines of code

Drupal set the private folder

How to set the Private file path in Drupal using the following steps:

  • Create a private folder in the web root
  • Add a .htaccess file to the private folder
  • Update the settings.php file

 

FontAwesome icons working in CKEditor 5

Using CK Editor 5, I needed to add instructions to a page that held FontAwesome (FA) icons.  Included in these instructions were a couple of FA icons.  Initially adding them was going to be resolved using Pseudo-elements.  Accordingly they would be applied as follows:

How to exclude a specific css file from aggregation

I've been working on a problem where a font and image tag aren't appearing on the front end of my website. I found that if I disable CSS aggregation, the YouTube play button symbol and overlay will appear. However, this slows down the page speed.

How to leverage CSS aggregation but set specific files to be excluded?

I'm wondering how to leverage CSS aggregation but exclude specific files. Here's an example of what my theme libraries file looks like:

Upgrading Drupal 9 to Drupal 10

 

Updating to Drupal 10

Begin by upgrading Drupal 9 to the latest version.  Currently that is 9.5.10

 

Show the favicon in bootstrap barrio sub theme

Having a situation where I'm running a sub theme based on Bootstrap Barrio, but I want to be able to see the favicon in the sub theme.  Like many situations, once you know where to look the solution is quite simple.  Yet the path of discovery can take time.

In hunting down a solution, I looked into the theme settings yaml file.  But to no avail.

 

/usr/bin/env: 'php\r': No such file or directory

Running Docker, I deleted the images and containers they had been built to date.  Time to refresh the environment and see what works and what isn't working.  This action was a result of the dev environment failing to load.

 

Current versions

The PHP version is 8.1.12 apache 2.4.54-bullseye

Composer response

Composer versions 2.4.4 2022-10-27 14:39:29

PHP response

Subscribe to Drupal