mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
On page load, call analytics based on consent
This commit is contained in:
@@ -2,7 +2,9 @@ window.GOVUK.Frontend.initAll();
|
|||||||
|
|
||||||
$(() => GOVUK.addCookieMessage());
|
$(() => GOVUK.addCookieMessage());
|
||||||
|
|
||||||
window.GOVUK.initAnalytics();
|
if (window.GOVUK.hasConsentFor('analytics')) {
|
||||||
|
window.GOVUK.initAnalytics();
|
||||||
|
}
|
||||||
|
|
||||||
$(() => $("time.timeago").timeago());
|
$(() => $("time.timeago").timeago());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user