Fixed
Project:
Google Tag
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Apr 2023 at 22:54 UTC
Updated:
17 Nov 2026 at 05:07 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mark_fullmerTwo patches are attached, one for 2.0.x and one for 8.x-1.x.
The approach here is to provide an MVP, where the drush command simply uses the settings defaults and adds a GTM ID.
Subsequent work could be done to provide more parameters in the drush command.
Comment #3
japerryFor 2.x at least, all validation is skipped, so this patch should at least ensure the same validation we use in the form applies to the command.
Comment #4
mark_fullmerGood call. The attached patch adds validation using the existing pattern from
TagContainer::GOOGLE_TAG_MATCHin the Drush command.Comment #5
mmarler commentedI was able to successfully create containers with drush. Validation checks out as well. Moving to RTBC.
Comment #7
mark_fullmerComment #8
mark_fullmerRequesting maintainer consideration for merging & inclusion in a release. Thanks!
Comment #9
japerryGot a chance to take a closer look at this, and MR!139 is pretty good. Had to make a few changes including:
Committed!