Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have opted to move javascript to the footer and want to configure an exclusion for Google Analytics tracking code, as this needs to be placed in the head
Under Exclude JavaScript files, I have google_analytics/*.js
but this is not working for me.
Any suggestions of what I am doing wrong?
Comments
Comment #2
iamcarrico CreditAttribution: iamcarrico as a volunteer commentedAre we talking about an inline or external file? Magic is meant for the files added by different modules, I don't believe it is meant to remove external files.
Comment #3
MrPaulDriver CreditAttribution: MrPaulDriver commentedComment #4
MrPaulDriver CreditAttribution: MrPaulDriver commentedI am talking about code inserted by Google Analytics module
Comment #5
iamcarrico CreditAttribution: iamcarrico as a volunteer commentedAh. Gotcha. I am unable to debug right now because I do not have a working Drupal site. If there is some code/db that I can use from somebody— I would be happy to do some debugging.