Skip to content

Commit

Permalink
Use GOOGLE_ANALYTICS_ID env var
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaquinTrinanes committed Jun 24, 2024
1 parent 9f6e08a commit e9741ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/layout.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-KVJ9LMXWX7"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id={{ env('GOOGLE_ANALYTICS_ID') }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-KVJ9LMXWX7');
gtag('config', {{ env('GOOGLE_ANALYTICS_ID') }});
</script>

<meta charset="utf-8">
Expand Down

0 comments on commit e9741ea

Please sign in to comment.