feat(analytics): replace old Google Tag script with new version

- Added a new file googletag.blade.php for updated Google Tag script
- Deleted the old version of googletag.blade.php containing outdated script
This commit is contained in:
Rico van Zelst
2024-02-26 13:38:51 +01:00
parent 8949c427e8
commit 7826063f78
2 changed files with 1 additions and 8 deletions

View File

@@ -0,0 +1 @@
<script async src="https://www.googletagmanager.com/gtag/js?id={{ config('app.GTAG_MEASUREMENT_ID') }}"></script><script>window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', '{{ config('app.GTAG_MEASUREMENT_ID') }}');</script>

View File

@@ -1,8 +0,0 @@
<script async src="https://www.googletagmanager.com/gtag/js?id={{ config('app.GTAG_MEASUREMENT_ID') }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ config('app.GTAG_MEASUREMENT_ID') }}');
</script>