Bladeren bron

Suppression Google Analytics #381

refactoring
Guillaume Bourgeois 2 jaren geleden
bovenliggende
commit
b9d2d5636f
4 gewijzigde bestanden met toevoegingen van 0 en 15 verwijderingen
  1. +0
    -1
      backend/views/layouts/main.php
  2. +0
    -10
      common/views/_analytics.php
  3. +0
    -3
      frontend/views/layouts/main.php
  4. +0
    -1
      producer/views/layouts/main.php

+ 0
- 1
backend/views/layouts/main.php Bestand weergeven

@@ -97,7 +97,6 @@ if (Yii::$app->controller->action->id === 'login') {

<script type="text/javascript" src="https://cdn.polyfill.io/v3/polyfill.min.js?features=Intl.~locale.fr"></script>
<?php $this->endBody() ?>
<?= $this->render('@common/views/_analytics.php'); ?>

</body>
</html>

+ 0
- 10
common/views/_analytics.php Bestand weergeven

@@ -1,10 +0,0 @@
<!-- analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-86917043-1', 'auto');
ga('send', 'pageview');
</script>

+ 0
- 3
frontend/views/layouts/main.php Bestand weergeven

@@ -233,9 +233,6 @@ if(!Yii::$app->user->isGuest && Yii::$app->user->identity->id_producer > 0) {
</footer>
<?php $this->endBody() ?>
<?= $this->render('@common/views/_analytics.php'); ?>
</body>
</html>
<?php $this->endPage() ?>

+ 0
- 1
producer/views/layouts/main.php Bestand weergeven

@@ -334,7 +334,6 @@ if (!Yii::$app->user->isGuest) {
</footer>
<script type="text/javascript" src="https://cdn.polyfill.io/v3/polyfill.min.js?features=Intl.~locale.fr"></script>
<?php $this->endBody() ?>
<?= $this->render('@common/views/_analytics.php'); ?>
</body>
</html>
<?php $this->endPage() ?>

Laden…
Annuleren
Opslaan