|
|
@@ -21,6 +21,21 @@ if(!PRODUCTION) {
|
|
|
<link rel="icon" href="<?=$icon?>?<?=filemtime("public" . $icon)?>" />
|
|
|
<script type="text/javascript" src="/js/fontawesome-all.min.js"></script>
|
|
|
<script type="text/javascript" src="https://www.google.com/recaptcha/api.js"></script>
|
|
|
+ <?php
|
|
|
+ if(GOOGLE_ANALYTICS_ID) {
|
|
|
+ ?>
|
|
|
+ <!-- Global site tag (gtag.js) - Google Analytics -->
|
|
|
+ <script async src="https://www.googletagmanager.com/gtag/js?id=<?=GOOGLE_ANALYTICS_ID?>"></script>
|
|
|
+ <script>
|
|
|
+ window.dataLayer = window.dataLayer || [];
|
|
|
+ function gtag(){dataLayer.push(arguments);}
|
|
|
+ gtag('js', new Date());
|
|
|
+
|
|
|
+ gtag('config', '<?=GOOGLE_ANALYTICS_ID?>');
|
|
|
+ </script>
|
|
|
+ <?php
|
|
|
+ }
|
|
|
+ ?>
|
|
|
</head>
|
|
|
<body>
|
|
|
|