Commit 8d4c77abd36ff6130b422c9b7b690fb2afcf7847
1 parent
216957b0
google tag + перевод
Showing
2 changed files
with
16 additions
and
3 deletions
Show diff stats
common/messages/ua/app.php
... | ... | @@ -61,8 +61,8 @@ return [ |
61 | 61 | |
62 | 62 | |
63 | 63 | 'Support' => 'Допомога', |
64 | - 'Call me!' => 'передзвонити мені', | |
65 | - 'Call me' => 'Передзвонити мені', | |
64 | + 'Call me!' => 'передзвонити ', | |
65 | + 'Call me' => 'Передзвонити ', | |
66 | 66 | |
67 | 67 | 'Advantages!' => 'Переваги', |
68 | 68 | 'of production' => 'продукції', | ... | ... |
frontend/views/layouts/main.php
... | ... | @@ -27,6 +27,13 @@ $seo=\Yii::$app->get('seo'); |
27 | 27 | <html lang="<?= \Yii::$app->language ?>"> |
28 | 28 | <head> |
29 | 29 | <meta charset="<?= \Yii::$app->charset ?>"> |
30 | + <!-- Google Tag Manager --> | |
31 | + <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | |
32 | + new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | |
33 | + j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | |
34 | + 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | |
35 | + })(window,document,'script','dataLayer','GTM-NZ8XWMK');</script> | |
36 | + <!-- End Google Tag Manager --> | |
30 | 37 | <link href="https://fonts.googleapis.com/css?family=Ubuntu:400,500,700&subset=cyrillic,cyrillic-ext,latin-ext" rel="stylesheet"> |
31 | 38 | <link type="image/x-icon" href="/images/favicon.ico" rel="icon"> |
32 | 39 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
... | ... | @@ -44,7 +51,13 @@ $seo=\Yii::$app->get('seo'); |
44 | 51 | </script> |
45 | 52 | </head> |
46 | 53 | <body> |
47 | - <?php $this->beginBody() ?> | |
54 | + <!-- Google Tag Manager (noscript) --> | |
55 | + <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NZ8XWMK" | |
56 | + height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | |
57 | + <!-- End Google Tag Manager (noscript) --> | |
58 | + <?php $this->beginBody() ?> | |
59 | + | |
60 | + | |
48 | 61 | |
49 | 62 | <?= $content ?> |
50 | 63 | ... | ... |