Commit 3658ef9bf6a1da09e7b2c5ea10886435d7be2ef9
1 parent
5a5709d7
гугл аналитика
Showing
1 changed file
with
9 additions
and
0 deletions
Show diff stats
frontend/views/layouts/main.php
... | ... | @@ -741,6 +741,15 @@ _________________________________________________________ --> |
741 | 741 | </div> |
742 | 742 | <!-- /#all --> |
743 | 743 | <?php $this->endBody() ?> |
744 | + <!-- Global Site Tag (gtag.js) - Google Analytics --> | |
745 | + <script async src="https://www.googletagmanager.com/gtag/js?id=UA-107572082-1"></script> | |
746 | + <script> | |
747 | + window.dataLayer = window.dataLayer || []; | |
748 | + function gtag(){dataLayer.push(arguments);} | |
749 | + gtag('js', new Date()); | |
750 | + | |
751 | + gtag('config', 'UA-107572082-1'); | |
752 | + </script> | |
744 | 753 | </body> |
745 | 754 | </html> |
746 | 755 | <?php $this->endPage() ?> |
747 | 756 | \ No newline at end of file | ... | ... |