Commit f57afab3d829d343ea4d6c96c60bb6b28b86f764
1 parent
e21450c9
SEO
Showing
2 changed files
with
30 additions
and
2 deletions
Show diff stats
.htaccess
| @@ -77,7 +77,7 @@ AddDefaultCharset utf-8 | @@ -77,7 +77,7 @@ AddDefaultCharset utf-8 | ||
| 77 | 77 | ||
| 78 | 78 | ||
| 79 | RewriteCond %{HTTP_HOST} ^([^www].*)$ | 79 | RewriteCond %{HTTP_HOST} ^([^www].*)$ |
| 80 | - RewriteRule (.*) http://www.%{HTTP_HOST}%{REQUEST_URI}/ [L,R=301] | 80 | + RewriteRule (.*) http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
| 81 | 81 | ||
| 82 | RewriteCond %{THE_REQUEST} (\/[\w\/-]+\w)\s | 82 | RewriteCond %{THE_REQUEST} (\/[\w\/-]+\w)\s |
| 83 | RewriteRule (.*) %1/ [R,L] | 83 | RewriteRule (.*) %1/ [R,L] |
frontend/views/layouts/main.php
| @@ -106,7 +106,35 @@ ga('send', 'pageview'); | @@ -106,7 +106,35 @@ ga('send', 'pageview'); | ||
| 106 | '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | 106 | '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); |
| 107 | })(window,document,'script','dataLayer','GTM-5KPBHP');</script> | 107 | })(window,document,'script','dataLayer','GTM-5KPBHP');</script> |
| 108 | <!-- End Google Tag Manager --> | 108 | <!-- End Google Tag Manager --> |
| 109 | - | 109 | + <!-- Yandex.Metrika counter --> |
| 110 | + <script type="text/javascript"> | ||
| 111 | + (function (d, w, c) { | ||
| 112 | + (w[c] = w[c] || []).push(function() { | ||
| 113 | + try { | ||
| 114 | + w.yaCounter37829115 = new Ya.Metrika({ | ||
| 115 | + id:37829115, | ||
| 116 | + clickmap:true, | ||
| 117 | + trackLinks:true, | ||
| 118 | + accurateTrackBounce:true | ||
| 119 | + }); | ||
| 120 | + } catch(e) { } | ||
| 121 | + }); | ||
| 122 | + | ||
| 123 | + var n = d.getElementsByTagName("script")[0], | ||
| 124 | + s = d.createElement("script"), | ||
| 125 | + f = function () { n.parentNode.insertBefore(s, n); }; | ||
| 126 | + s.type = "text/javascript"; | ||
| 127 | + s.async = true; | ||
| 128 | + s.src = "https://mc.yandex.ru/metrika/watch.js"; | ||
| 129 | + | ||
| 130 | + if (w.opera == "[object Opera]") { | ||
| 131 | + d.addEventListener("DOMContentLoaded", f, false); | ||
| 132 | + } else { f(); } | ||
| 133 | + })(document, window, "yandex_metrika_callbacks"); | ||
| 134 | + </script> | ||
| 135 | + <noscript><div><img src="https://mc.yandex.ru/watch/37829115" style="position:absolute; left:-9999px;" alt="" /></div></noscript> | ||
| 136 | + <!-- /Yandex.Metrika counter --> | ||
| 137 | + | ||
| 110 | <?php $this->beginBody () ?> | 138 | <?php $this->beginBody () ?> |
| 111 | <?= BgWidget::widget () ?> | 139 | <?= BgWidget::widget () ?> |
| 112 | 140 |