Skip to content

Commit

Permalink
add config for tracking snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
wi-wissen committed Jan 10, 2025
1 parent 0c46fd6 commit 4fbb5a0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ APP_MAINTENANCE_DRIVER=file
APP_MAINTENANCE_STORE=database

APP_COPYRIGHT=wi-wissen.de
APP_TRACKING_SNIPPET=

HUB_DEFAULT_GENERATION=1
HUB_DOC_1_URL=https://wi-wissen.github.io/instahub-doc-de/
Expand Down
11 changes: 11 additions & 0 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,17 @@
'hub_words' => explode(',', env('WORD', 'blue,green,red,yellow,black,white,orange,purple,grey,brown')),
'hub_numbers' => env('WORD_NUMBER', 100),

/*
|--------------------------------------------------------------------------
| Tracking Snippet
|--------------------------------------------------------------------------
|
| If you want to add a tracking snippet to your app, you can add it here.
|
*/

'tracking_snippet' => env('APP_TRACKING_SNIPPET', null),

/*
|--------------------------------------------------------------------------
| Maintenance Mode Driver
Expand Down
3 changes: 3 additions & 0 deletions resources/views/layouts/base.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
])
@yield('script')
@yield('style')
@if(config('app.tracking_snippet'))
{!! config('app.tracking_snippet') !!}
@endif
</head>
<body class="d-flex flex-column min-vh-100">
<div class="flex-shrink-0">
Expand Down
3 changes: 3 additions & 0 deletions resources/views/welcome.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
});
});
</script>
@if(config('app.tracking_snippet'))
{!! config('app.tracking_snippet') !!}
@endif
</head>
<body class="d-flex flex-column min-vh-100 bg-light">
<div class="flex-shrink-0">
Expand Down

0 comments on commit 4fbb5a0

Please sign in to comment.