mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 10:10:48 +01:00
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:
@@ -18,6 +18,8 @@ USER_AGENT="Heimerdinger/1.0 (Heimerdinger.lol) PHP"
|
||||
CLOUDFLARE_ZONE_ID="YOUR_CLOUDFLARE_ZONE"
|
||||
CLOUDFLARE_AUTH_BEARER="YOUR_CLOUDFLARE_AUTH_BEARER"
|
||||
|
||||
GTAG_MEASUREMENT_ID="G-XXXXXXXXXX"
|
||||
|
||||
LOG_CHANNEL=stack
|
||||
LOG_DEPRECATIONS_CHANNEL=null
|
||||
LOG_LEVEL=debug
|
||||
|
||||
@@ -200,4 +200,6 @@ return [
|
||||
: (env('IS_STAGING')
|
||||
? 'https://staging.heimerdinger.lol'
|
||||
: 'https://heimerdinger.lol'),
|
||||
|
||||
'GTAG_MEASUREMENT_ID' => env('GTAG_MEASUREMENT_ID', 'G-XXXXXXXXXX'),
|
||||
];
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user