feat(components): add googletag component

- Added a new blade component `googletag.blade.php` to the `resources/views/components` directory.
- The component includes the necessary script tags for Google Tag Manager integration.
- Updated the `app.blade.php` layout file to include the newly added `googletag` component.
This commit is contained in:
Rico van Zelst
2024-01-03 03:51:50 +01:00
parent 72d49bc4ad
commit 984b7a862d
2 changed files with 9 additions and 0 deletions

View File

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

View File

@@ -51,5 +51,6 @@
@yield('content')
<x-footer/>
@stack('bottom_scripts')
<x-googletag/>
</body>
</html>