Skip to content

Commit

Permalink
Merge pull request #4236 from alphagov/just-in-case
Browse files Browse the repository at this point in the history
Make deploying meta tags changes easier
  • Loading branch information
andysellick authored Sep 18, 2024
2 parents 59bc3f3 + 40a88ff commit 5bed534
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

## Unreleased

* Make deploying meta tags changes easier ([PR #4236](https://github.com/alphagov/govuk_publishing_components/pull/4236))
* Update metatags for GA4 ([PR #4222](https://github.com/alphagov/govuk_publishing_components/pull/4222))
* Set aria-label text in govuk_logo.html to "GOV.UK" ([PR #4217](https://github.com/alphagov/govuk_publishing_components/pull/4217))
* Fix cookie expiration date potentially relying on user's timezone ([PR #4219](https://github.com/alphagov/govuk_publishing_components/pull/4219))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ window.GOVUK.analyticsGa4.analyticsModules = window.GOVUK.analyticsGa4.analytics
navigation_page_type: this.getMetaContent('navigation-page-type'),
navigation_list_type: this.getMetaContent('navigation-list-type'),
step_navs: this.getMetaContent('stepnavs'),
taxonomy_level1: this.getMetaContent('taxonomy_level1'),
taxonomy_level1: this.getMetaContent('taxonomy_level1') || this.getMetaContent('themes'),
taxonomy_main: this.getMetaContent('taxon-slug'),
taxonomy_main_id: this.getMetaContent('taxon-id'),
taxonomy_all: this.getMetaContent('taxon-slugs'),
Expand All @@ -49,8 +49,8 @@ window.GOVUK.analyticsGa4.analyticsModules = window.GOVUK.analyticsGa4.analytics
publishing_government: this.removeHyphensAndDowncase(this.getMetaContent('publishing-government') || this.getMetaContent('ga4-publishing-government')),
political_status: this.getMetaContent('political-status') || this.getMetaContent('ga4-political-status'),
primary_publishing_organisation: this.getMetaContent('primary-publishing-organisation'),
organisations: this.getMetaContent('organisations'),
world_locations: this.getMetaContent('world-locations'),
organisations: this.getMetaContent('organisations') || this.getMetaContent('analytics:organisations'),
world_locations: this.getMetaContent('world-locations') || this.getMetaContent('analytics:world-locations'),

/* The existence of a referrer parameter indicates that the page has been dynamically updated via an AJAX request
and therefore we can use it to set the dynamic property appropriately. This value is used by PA's to differentiate
Expand Down

0 comments on commit 5bed534

Please sign in to comment.