Make iframe (noscript) optional

Created on 14 January 2020, about 5 years ago
Updated 30 October 2023, over 1 year ago

For using google_tag with a Consent Management Platform (CMP) you have to disable the iframe.

A separate option for this would be great to prevent dirty patches.

Thank in advance.

Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

🇩🇪Germany jan kellermann

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Open in Jenkins → Open on Drupal.org →
    Core: 10.1.x + Environment: PHP 8.1 & MySQL 5.7 updated deps
    last update over 1 year ago
    1 pass
  • Status changed to RTBC over 1 year ago
  • 🇬🇧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 11 months ago
  • 🇬🇧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 8 months ago
  • 🇬🇧United Kingdom John_B London (UK), Worthing (UK), Innsbruck (Tirol)
  • Pipeline finished with Canceled
    2 months ago
    Total: 76s
    #376424
  • Pipeline finished with Failed
    2 months ago
    Total: 282s
    #376425
  • Pipeline finished with Failed
    2 months ago
    Total: 349s
    #376440
  • Pipeline finished with Success
    2 months ago
    Total: 299s
    #376447
  • 🇩🇪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 8 days ago
  • 🇩🇪Germany szeidler Berlin

    I tested the MR and it works great. Makes it possible to be compliant with CMP like Klaro

Production build 0.71.5 2024