Skip to content

Conversation

@grahampaulcook
Copy link

@grahampaulcook grahampaulcook commented Jul 20, 2020

Introduce Google Tag Manager support into technical documentation services by adding a new configuration option in the config/tech-docs.yml file.

gtm_id: GTM-xxxxx

The documentation changes are within alphagov/tdt-documentation#126

@eddgrant
Copy link
Contributor

eddgrant commented Aug 2, 2022

Hey @lfdebrux,

We're really keen to use GTM on our docs-as-code sites. This PR seems to do just that (thanks @grahampaulcook 🙏 ).

I think the only conflict with the latest, greatest code is a single line in version.rb. If we could get this resolved would you consider this for inclusion?

Many thanks,

Edd

eddgrant pushed a commit to hmrc/tech-docs-gem that referenced this pull request Aug 4, 2022
This is a cherry-pick of 63b2a30 from grahampaulcook/tech-docs-gem which introduces support for Google Tag Manager.

A pull request has been raised to include this change: alphagov#187 however GDS have not yet picked it up, so we're pulling it in here for use at HMRC in the meantime.
eddgrant pushed a commit to hmrc/tech-docs-gem that referenced this pull request Feb 8, 2023
This is a cherry-pick of 63b2a30 from grahampaulcook/tech-docs-gem which introduces support for Google Tag Manager.

A pull request has been raised to include this change: alphagov#187 however GDS have not yet picked it up, so we're pulling it in here for use at HMRC in the meantime.
eddgrant pushed a commit to hmrc/tech-docs-gem that referenced this pull request May 23, 2023
This is a cherry-pick of 63b2a30 from grahampaulcook/tech-docs-gem which introduces support for Google Tag Manager.

A pull request has been raised to include this change: alphagov#187 however GDS have not yet picked it up, so we're pulling it in here for use at HMRC in the meantime.
eddgrant pushed a commit to hmrc/tech-docs-gem that referenced this pull request Jun 7, 2023
This is a cherry-pick of 63b2a30 from grahampaulcook/tech-docs-gem which introduces support for Google Tag Manager.

A pull request has been raised to include this change: alphagov#187 however GDS have not yet picked it up, so we're pulling it in here for use at HMRC in the meantime.
eddgrant pushed a commit to hmrc/tech-docs-gem that referenced this pull request Mar 6, 2024
This is a cherry-pick of 63b2a30 from grahampaulcook/tech-docs-gem which introduces support for Google Tag Manager.

A pull request has been raised to include this change: alphagov#187 however GDS have not yet picked it up, so we're pulling it in here for use at HMRC in the meantime.
eddgrant pushed a commit to hmrc/tech-docs-gem that referenced this pull request May 22, 2024
This is a cherry-pick of 63b2a30 from grahampaulcook/tech-docs-gem which introduces support for Google Tag Manager.

A pull request has been raised to include this change: alphagov#187 however GDS have not yet picked it up, so we're pulling it in here for use at HMRC in the meantime.
eddgrant pushed a commit to hmrc/tech-docs-gem that referenced this pull request Jun 21, 2024
This is a cherry-pick of 63b2a30 from grahampaulcook/tech-docs-gem which introduces support for Google Tag Manager.

A pull request has been raised to include this change: alphagov#187 however GDS have not yet picked it up, so we're pulling it in here for use at HMRC in the meantime.

(cherry picked from commit 671dd75)
@huwd
Copy link
Contributor

huwd commented Oct 9, 2024

Good stuff but let's do this in v4.1
Can review ahead of that.

@huwd
Copy link
Contributor

huwd commented Aug 4, 2025

hey @grahampaulcook / @eddgrant

Really sorry I know this is a ridiculously old request now and you've all probably moved on.
I'm in here doing a spring clean. We're about to add GA4 support (late!).

Can i check where your needs are these days, are you still using GTM or does GA4 now cover those needs?

@eddgrant
Copy link
Contributor

eddgrant commented Aug 5, 2025

Hey @huwd ,

No worries at all, thanks for getting back to us! I'm still using GA4 for analytics, but I'm deploying it using GTM (which is a soure of eternal confusion to me if I'm honest). I'm doing this as it seems to me to that GTM is Google's recommended way to deploy GA4, or at least that's how I've understood it.

Hope that helps!

@huwd
Copy link
Contributor

huwd commented Aug 5, 2025

Ok great, I'll see if I can find some time and sneak this into a release whilst me and the community have eyeballs on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants