Shoora
3/21/2017 - 4:52 AM

counters

counters

window.ga('currentProject.send', {
    hitType: 'event',
    eventCategory: 'user_behaviour',
    eventAction: 'SUBSCRIBER',
    params: { email: 'a@aviasales.ru' }
})
window.mamka('send_event', {
    name: 'SUBSCRIBER',
    meta: { email: 'a@aviasales.ru' }
})
yaCounter.reachGoal('SUBSCRIBER', { email: 'a@aviasales.ru' })
    <!-- Yandex.Metrika global start - do not remove!!! -->
        <script type="text/javascript">
        (function(d, w, c) {
            (w[c] = w[c] || []).push(function() {
                try {
                    w.yaCounter3791698 = w.yaCounter3791698 = new Ya.Metrika({
                        id: 3791698,
                        webvisor: true,
                        clickmap: true,
                        trackLinks: true,
                        accurateTrackBounce: true,
                    });
                } catch (e) {}
            });
        }(document, window, 'yandex_metrika_callbacks'));
        </script>
        <script async="" defer="defer" src="https://mc.yandex.ru/metrika/watch.js"></script>
    <!-- Yandex.Metrika global finish -->

    <!-- Google Tag Manager -->
        <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-5KVV"
        height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
        <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
        new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
        j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
        '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
        })(window,document,'script','dataLayer','GTM-5KVV');</script>
    <!-- End Google Tag Manager -->

    <!-- Yandex.Metrika counter 44780881 -->
        <script type="text/javascript">
        (function(d, w, c) {
            (w[c] = w[c] || []).push(function() {
                try {
                    w.yaCounter = new Ya.Metrika({
                        id: '44780881',
                        webvisor: true,
                        clickmap: true,
                        trackLinks: true,
                        accurateTrackBounce: true
                    });
                    w.mainMetrika = 'yaCounter';
                } catch (e) {}
            });
            var n = d.getElementsByTagName("script")[0],
                s = d.createElement("script"),
                f = function() {
                    n.parentNode.insertBefore(s, n);
                };
            s.type = "text/javascript";
            s.async = true;
            s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js";
            if (w.opera == "[object Opera]") {
                d.addEventListener("DOMContentLoaded", f, false);
            } else {
                f();
            }
        })(document, window, "yandex_metrika_callbacks");
        </script>

        <noscript>
            <div><img src="//mc.yandex.ru/watch/44780881" style="position:absolute; left:-9999px" alt=""></div>
        </noscript>
    <!-- /Yandex.Metrika counter -->

    <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','//www.google-analytics.com/analytics.js','ga');
        ga('create', 'UA-1481416-4', 'auto', {'legacyCookieDomain': 'aviasales.ru', name: 'aviasales_all'});
        ga('create', 'UA-66296552-3', 'auto', { name: 'currentProject' });
        ga('aviasales_all.send', 'pageview');
        ga('currentProject.send', 'pageview');
        ga('require', 'ecommerce')
    </script>

    <script>
        (function (w) {
        w.mamka = w.mamka || function(){(mamka.queue=mamka.queue||[]).push(arguments)};
        }(window));
        mamka('create', {'project_name': 'as_sales_baku', 'brand_names': ['aviasales']})
    </script>
    <script async type="text/javascript" src="https://mamka.aviasales.ru/mamka.js?v=1"></script>