diff --git a/app/assets/javascripts/analytics.js.erb b/app/assets/javascripts/analytics.js.erb index cd36ec289..791330826 100644 --- a/app/assets/javascripts/analytics.js.erb +++ b/app/assets/javascripts/analytics.js.erb @@ -144,3 +144,7 @@ window.GOVUK.analyticsVars.linkedDomains = linkedDomains if (typeof window.GOVUK.analyticsInit !== 'undefined') { window.GOVUK.analyticsInit() } + +if (typeof window.GOVUK.analyticsGA4.init !== 'undefined') { + window.GOVUK.analyticsGA4.init() +}