- Open in Jenkins ā Open on Drupal.org āCore: 10.1.x + Environment: PHP 8.1 & MySQL 5.7 updated depslast update
over 1 year ago 1 pass - Status changed to RTBC
over 1 year ago 2:32pm 3 November 2023 - š¬š§United Kingdom John_B London (UK), Worthing (UK), Innsbruck (Tirol)
Thank you. The above patch looks good, applies to current 8.x-1-dev and 8.x-1.6, and works after a cache clear. It it is not suitable for 8.x-2 branch.
- š¬š§United Kingdom John_B London (UK), Worthing (UK), Innsbruck (Tirol)
The above patch does not work on 8.x-1.7 as google_tag_update_8104() is now declared twice.
- Status changed to Needs work
about 1 year ago 8:42am 4 April 2024 - š¬š§United Kingdom John_B London (UK), Worthing (UK), Innsbruck (Tirol)
- š¬š§United Kingdom John_B London (UK), Worthing (UK), Innsbruck (Tirol)
Reroll for 8.x-1.7, changing update function name, see #17.
- Status changed to Needs review
9 months ago 10:40am 9 July 2024 - š¬š§United Kingdom John_B London (UK), Worthing (UK), Innsbruck (Tirol)
- Merge request !104#3106318: Add option to disable noscript with iframe for 2.x. ā (Open) created by jan kellermann
- š©šŖGermany jan kellermann
jan kellermann ā changed the visibility of the branch 3106318-make-iframe-noscript-optional to hidden.
- š©šŖGermany jan kellermann
I created MR for version 2.0.x incl. tests for disabling noscript with iframe.
Please review and feedback.
- š¬š§United Kingdom John_B London (UK), Worthing (UK), Innsbruck (Tirol)
Thanks for that. I installed it and ran updb (a mistake, I should have uninstalled 1.7 first). So ran drush pmu google_tag, drush en google_tag.
After that I saw an error 'google_tag_container entity missing'.
At the same time my administrator role and all related permissions were deleted. I am not blaming this MR, especially as I had failed to uninstall google_tag 1.7 before proceeding, and I do not really know the cause, so have not set back to 'needs work'. Just now feeling too traumatized to test again.
- š©šŖGermany jan kellermann
Happy holidays, thank you for testing! I'm sorry that you had so many problems. However, the errors described are not related to the code from the MR.
- Status changed to RTBC
about 2 months ago 5:31pm 27 February 2025 - š©šŖGermany szeidler Berlin
I tested the MR and it works great. Makes it possible to be compliant with CMP like Klaro
- šŖšøSpain melgar3d
Iād like to confirm that this issue is still relevant in Drupal 10.3.14.
When the google_tag_gtm_iframe theme hook is not implemented in the active theme, Drupal logs a warning:
The theme hook google_tag_gtm_iframe was not found.
While it doesn't break functionality, it pollutes the logs unnecessarily and causes confusion in production environments.
Making the
block optional via a setting in the admin UI (as this patch provides) would be very helpful ā especially for sites using Consent Management Platforms (CMPs) that need to block all tracking methods, including fallback iframes. Thank you to everyone working on this ā the patch and MR are much appreciated. Looking forward to this being included in a stable release! - šŖšØEcuador jwilson3
The workaround in comment #12 no longer works. What worked for me was just implementing the
google-tag-gtm-iframe.html.twig
template file in my Drupal theme:{# /** * @file * Overrides the Google Tag Manager noscript fallback iframe. * * It is intentionally left blank because GTM tracking is unnecessary * and against GDPR best practices when JavaScript is disabled. */ #}
This is not ideal, but we're in a situation where we can easily patch the module with the MR here due to being on a shared Drupal multisite instance.