mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 18:20:48 +01:00
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:
8
resources/views/components/googletag.blade.php
Normal file
8
resources/views/components/googletag.blade.php
Normal 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>
|
||||||
@@ -51,5 +51,6 @@
|
|||||||
@yield('content')
|
@yield('content')
|
||||||
<x-footer/>
|
<x-footer/>
|
||||||
@stack('bottom_scripts')
|
@stack('bottom_scripts')
|
||||||
|
<x-googletag/>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user