feat(env): add GTAG_MEASUREMENT_ID to env and config

- Added GTAG_MEASUREMENT_ID to .env.example
- Updated 'GTAG_MEASUREMENT_ID' in config/app.php
- Modified script tag in googletag.blade.php to use dynamic ID
This commit is contained in:
Rico van Zelst
2024-02-24 15:44:57 +01:00
parent 93ce805af6
commit 13ba72c897
3 changed files with 6 additions and 2 deletions

View File

@@ -1,8 +1,8 @@
<script async src="https://www.googletagmanager.com/gtag/js?id=G-RF1MDHRWS0"></script>
<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', 'G-RF1MDHRWS0');
gtag('config', '{{ config('app.GTAG_MEASUREMENT_ID') }}');
</script>