Skip to content

Commit

Permalink
Set cookie domain
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Sep 3, 2024
1 parent ab2bf73 commit adce3a0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@
<?php wp_footer(); ?>

<script>
if(window.TNAFrontend && window.TNAFrontend.initAll) {
window.TNAFrontend.initAll()
if(window.TNAFrontend){
if(window.TNAFrontend.Cookies) {
new window.TNAFrontend.Cookies({ domain: ".nationalarchives.gov.uk" });
}
if(window.TNAFrontend.initAll) {
window.TNAFrontend.initAll()
}
}
if(window.TNAFrontendAnalytics && window.TNAFrontendAnalytics.GA4) {
new TNAFrontendAnalytics.GA4({ addTrackingCode: false, domain: ".nationalarchives.gov.uk" })
new TNAFrontendAnalytics.GA4({ addTrackingCode: false, domain: })
}
</script>

Expand Down

0 comments on commit adce3a0

Please sign in to comment.