Commit 7a3cca71d5364ac93e31b6092b5dce9078634fe2
1 parent
446efeeb
SEO
Showing
6 changed files
with
49 additions
and
12 deletions
Show diff stats
.htaccess
frontend/config/main.php
frontend/controllers/SiteController.php
| ... | ... | @@ -36,6 +36,15 @@ class SiteController extends Controller |
| 36 | 36 | ]); |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | + | |
| 40 | + public function actionRobots() | |
| 41 | + { | |
| 42 | + | |
| 43 | + return $this->renderPartial('robots', [ | |
| 44 | + | |
| 45 | + ]); | |
| 46 | + } | |
| 47 | + | |
| 39 | 48 | public function actionError(){ |
| 40 | 49 | |
| 41 | 50 | return $this->render('error', [ | ... | ... |
frontend/views/layouts/main.php
| ... | ... | @@ -64,15 +64,6 @@ $this->registerJsFile (Yii::$app->request->baseUrl . '/js/fix_height.js', ['posi |
| 64 | 64 | }); |
| 65 | 65 | ", View::POS_READY); |
| 66 | 66 | |
| 67 | -$this->registerJs(" | |
| 68 | -(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | |
| 69 | - (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | |
| 70 | -m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | |
| 71 | -})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); | |
| 72 | - | |
| 73 | -ga('create', 'UA-75674711-1', 'auto'); | |
| 74 | -ga('send', 'pageview'); | |
| 75 | - ", View::POS_BEGIN); | |
| 76 | 67 | |
| 77 | 68 | // AssetBundle jcarousel :D [close] |
| 78 | 69 | |
| ... | ... | @@ -94,7 +85,16 @@ ga('send', 'pageview'); |
| 94 | 85 | <script type="text/javascript" src="//yastatic.net/es5-shims/0.0.2/es5-shims.min.js" charset="utf-8"></script> |
| 95 | 86 | <script type="text/javascript" src="//yastatic.net/share2/share.js" charset="utf-8"></script> |
| 96 | 87 | <!-- SOCIAL ICON --> |
| 97 | - | |
| 88 | + | |
| 89 | + <script> | |
| 90 | + (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | |
| 91 | + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | |
| 92 | + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | |
| 93 | + })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); | |
| 94 | + | |
| 95 | + ga('create', 'UA-75674711-1', 'auto'); | |
| 96 | + ga('send', 'pageview'); | |
| 97 | + </script> | |
| 98 | 98 | </head> |
| 99 | 99 | <body> |
| 100 | 100 | <!-- Google Tag Manager --> | ... | ... |
frontend/web/robots.txt
| 1 | 1 | User-agent: * |
| 2 | -Disallow: | |
| 3 | 2 | \ No newline at end of file |
| 3 | + | |
| 4 | +Disallow: /*reg | |
| 5 | + | |
| 6 | +Disallow: /basket | |
| 7 | + | |
| 8 | +Disallow: /login | |
| 9 | + | |
| 10 | +Disallow: /*from=adwords | |
| 11 | + | |
| 12 | +Disallow: /*utm_source= | |
| 13 | + | |
| 14 | +Host: www.rukzachok.com.ua | |
| 15 | + | |
| 16 | +Sitemap: http://www.rukzachok.com.ua/sitemap.xml | |
| 4 | 17 | \ No newline at end of file | ... | ... |