Drupal

Add inline Javascript code in Drupal 9

In our Drupal projects, we have requirements to add some kind of inline javascript code, like adding GTM script. This can be in the page header or page bottom as per requirements. So in the blog, we will see how we can achieve this by both methods. Drupal provides hooks to do this in a proper way. To add the inline javascript code in...

by priya.chowdhury
Tag: inline Javascript
26-May-2023