Added GA code

This commit is contained in:
root
2025-06-09 15:27:19 +00:00
parent 2e124e0caf
commit 7b449bc654
3 changed files with 4 additions and 703 deletions

View File

@@ -33,7 +33,8 @@
"Bash(terser:*)",
"Bash(curl:*)",
"Bash(cp:*)",
"WebFetch(domain:ukdataservices.co.uk)"
"WebFetch(domain:ukdataservices.co.uk)",
"Bash(mv:*)"
],
"deny": []
}

File diff suppressed because one or more lines are too long

View File

@@ -58,12 +58,12 @@ $twitter_card_image = "https://ukdataservices.co.uk/assets/images/ukds-main-logo
<meta name="apple-mobile-web-app-title" content="UK Data Services">
<!-- Google Analytics 4 (GA4) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-UKDS2024WEB"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-GK41JM8DK0"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-UKDS2024WEB', {
gtag('config', 'G-GK41JM8DK0', {
page_title: document.title,
page_location: window.location.href
});