Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Commit

Permalink
google tag
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcaussades committed Oct 27, 2023
1 parent ce4bd58 commit 52f37ef
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 28 deletions.
18 changes: 18 additions & 0 deletions resources/views/base.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,24 @@
@endif
</head>
@yield('navbar')
<!-- Google Tag Manager -->
<script>
(function(w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({
'gtm.start': new Date().getTime(),
event: 'gtm.js'
});
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src =
'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-NGSXDXBN');
</script>
<!-- End Google Tag Manager -->

<body>

Expand Down
72 changes: 45 additions & 27 deletions resources/views/index-base.blade.php
Original file line number Diff line number Diff line change
@@ -1,39 +1,57 @@
<!DOCTYPE html>
<html lang="fr">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> @yield("title") IVATRAC</title>
<meta name="description" content="Find on this site, all metar, platform information, your friends, your flight plans save, then redownload them">
<meta name="keywords" content="ivao, information, website, unofficial, pirep, fpl, metar, plateform, friend, metar, follows, tracker">
<meta name="author" content="Alexcaussades">
<meta name="robots" content="index, follow">
<meta name="googlebot" content="index, follow">
<meta name="google" content="notranslate">
<meta property="og:title" content="Alexcaussades - IVATRAC">
<meta property="og:description" content="Find on this site, all metar, platform information, your friends, your flight plans save, then redownload them">
<meta property="og:site_name" content="Alexcaussades - IVATRAC">
<meta property="og:type" content="website">
<meta property="og:locale" content="fr_FR">
<meta property="og:locale:alternate" content="en_US">
<meta property="og:locale:alternate" content="fr_FR">
<meta property="og:locale:alternate" content="en_GB">
<meta property="og:locale:alternate" content="fr_BE">
<meta property="og:locale:alternate" content="en_BE">
<meta property="og:locale:alternate" content="fr_LU">
<meta property="og:locale:alternate" content="en_LU">
<meta property="og:locale:alternate" content="fr_CH">
<meta property="og:locale:alternate" content="en_CH">
<meta property="og:locale:alternate" content="fr_CA">
<meta property="og:locale:alternate" content="en_CA">
<meta property="og:locale:alternate" content="fr_MC">
<meta property="og:locale:alternate" content="en_MC">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Alexcaussades - IVATRAC">
<meta name="twitter:description" content="Find on this site, all metar, platform information, your friends, your flight plans save, then redownload them">
<meta name="twitter:creator" content="alexcaussades">

<meta name="author" content="Alexcaussades">
<meta name="robots" content="index, follow">
<meta name="googlebot" content="index, follow">
<meta name="google" content="notranslate">
<meta property="og:title" content="IVATRAC">
<meta property="og:description" content="Find on this site, all metar, platform information, your friends, your flight plans save, then redownload them">
<meta property="og:site_name" content="IVATRAC">
<meta property="og:type" content="website">
<meta property="og:locale" content="fr_FR">
<meta property="og:locale:alternate" content="en_US">
<meta property="og:locale:alternate" content="fr_FR">
<meta property="og:locale:alternate" content="en_GB">
<meta property="og:locale:alternate" content="fr_BE">
<meta property="og:locale:alternate" content="en_BE">
<meta property="og:locale:alternate" content="fr_LU">
<meta property="og:locale:alternate" content="en_LU">
<meta property="og:locale:alternate" content="fr_CH">
<meta property="og:locale:alternate" content="en_CH">
<meta property="og:locale:alternate" content="fr_CA">
<meta property="og:locale:alternate" content="en_CA">
<meta property="og:locale:alternate" content="fr_MC">
<meta property="og:locale:alternate" content="en_MC">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="IVATRAC">
<meta name="twitter:description" content="Find on this site, all metar, platform information, your friends, your flight plans save, then redownload them">
<meta name="twitter:creator" content="alexcaussades">
<!-- Google Tag Manager -->
<script>
(function(w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({
'gtm.start': new Date().getTime(),
event: 'gtm.js'
});
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src =
'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-NGSXDXBN');
</script>
<!-- End Google Tag Manager -->
<!-- CSS only -->
@if (ENV('APP_ENV') == 'local')
<link rel="stylesheet" href="{{ asset("asset/css/bootstrap.min.css") }} " type="text/css">
Expand Down
19 changes: 18 additions & 1 deletion resources/views/metar-base.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,24 @@
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet" />
<link rel="stylesheet" href="{{ asset("public/asset/css/style.css") }} " type="text/css">
@endif

<!-- Google Tag Manager -->
<script>
(function(w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({
'gtm.start': new Date().getTime(),
event: 'gtm.js'
});
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src =
'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-NGSXDXBN');
</script>
<!-- End Google Tag Manager -->
</head>
@yield('navbar-metar')

Expand Down

0 comments on commit 52f37ef

Please sign in to comment.