İstatistik toplama uyarısı

Web sitenizin ziyaretçilerini, istatistiklerin toplanması konusunda uyarabilir ve site sayfalarında Yandex .Metrica sayaç kodunun yüklenmesi geciktirebilirsiniz.

Veri aktarımının ziyaretçi tarafından onaylanması halinde sayaç kodu olağan şekilde yüklenir. Ziyaretçi izni olmadan kod yüklenmeyecektir. Ziyaretçinin bir kere yaptığı seçim, gerektiğinde sitenin (alan adının) tüm sayfalarını ziyaretler için geçerli sayılabilir.

Uyarıyı etkinleştirmek ve sayaç kodunun yüklenmesini geciktirmek için site yöneticinize başvurun.

  1. Uyarı örneği
  2. İstatistik toplama hakkında ziyaretçi uyarısı örneği

Uyarı örneği

Ziyaretçileri bilgilendirmek için herhangi bir metin kullanabilirsiniz. Yandex hukuk danışmanları tarafından oluşturulmuş olan metni kullanmanızı öneririz.

Bu site, Moreenikatu 6, 04600 Mantsala, Finlandiya adresinde mukim ve bundan böyle sadece "Yandex" olarak adlandırılacak Yandex Oy Limited Company'nin sağladığı Yandex.Metrica web analiz servisini kullanıyor.

Yandex.Metrica servisi “çerez” teknolojisini kullanır; çerezler, kullanıcının cihazına kaydedilen ve onun kullanıcı alışkanlıklarını analiz eden küçük boyutlu metin dosyalarıdır.

Çerezler yardımıyla toplanan bilgiler sizin tanımlanmanızda kullanılamaz fakat bizim web sitemizin performansını artırmamıza yardımcı olabilir. Çerezler tarafından toplanan ve sizin tarafınızdan kullanılan ilgili site ile ilgili bilgi Yandex'e aktarılacak ve AB ile Rusya Federasyonu'nda yer alan Yandex'in sunucularında saklanacaktır. Yandex bu bilgiyi, sizin tarafınızdan kullanılan sitemizin değerlendirilmeye tabi tutulması, sitemizin aktivitesi hakkında rapor oluşturulması ve diğer servisler sağlanması için işleyecektir. Yandex bu bilgiyi, Yandex.Metrica servisinin kullanım koşullarında öngörülen şekilde işler.

Tarayıcınızda uygun ayarları seçerek çerezleri kullanmaktan kaçınabilirsiniz. Ayrıca https://yandex.ru/support/metrika/general/opt-out.html adresindeki aracı kullanabilirsiniz. Ancak bu, sitenin bazı özelliklerinin doğru çalışmasını etkileyebilir. Bu siteyi kullanarak, sizinle ilgili verilerin yukarıda belirtilen yöntem ve amaçlar için Yandex tarafından işlenmesini kabul etmiş sayılırsınız.

İstatistik toplama hakkında ziyaretçi uyarısı örneği

Kod uygulama örneği:

...
<head>
    <meta charset="UTF-8">
    <title>Page title</title>
    <!--This example uses the reset.css style. You can use your own approach.-->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">
    <!--The example uses the js-cookie library for working with cookies. You can use your own approach-->
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/2.1.2/js.cookie.js"></script>
    <style>
        * {
            box-sizing: border-box;
        }
        body {
            width: 100%;
            height: 100%;
        }
        .cookie-notification {
            position: fixed;
            background-color: rgba(0, 0, 0, .8);
            bottom: 0;
            width: 100%;
            color: white;
            padding: 15px;
        }
        .cookie-notification_hidden_yes {
            display: none;
        }
        .cookie-notification__header {
            margin-bottom: 10px;
            font-size: 23px;
        }
        .cookie-notification__body {
            margin-bottom: 10px;
        }
    </style>
</head>
<body>
    Site içeriği     <div class="cookie-notification cookie-notification_hidden_yes">
        <div class="cookie-notification__header">Yandex.Metrica kullanıyoruz</div>
        <div class="cookie-notification__body">
            <p>This site uses the Yandex.Metrica web analytics service provided by the company Yandex Oy Limited Company - Moreenikatu 6, 04600 Mantsala, Finland</p>
	     <p>The Yandex.Metrica service uses "cookie" technology, which consists of small text files placed on users' computers for the purpose of analyzing user activity levels.</p>
            <p>The information collected using cookies does not identify you. However, it can help us improve how our site functions. Information about your use of this website collected by cookies will be transferred to Yandex and stored on Yandex's server ın the EU and the Russian Federation. Yandex will process this information to assess how you use the website, compile reports for us on our website operation, and provide other services. Yandex processes this information in the manner prescribed in the Yandex.Metrica terms of use.</p>
<p>You can refuse to use cookie files by choosing the corresponding settings in your browser. You can also use the tool https://yandex.com/support/metrika/general/opt-out.html. However, this might affect how some of the site features work. By using this site, you agree to allow Yandex to process data about you in the manner and for the purposes described above..</p>
        </div>
        <div class="cookie-notification__buttons">
            <button class="cookie-notification__button" id="yes">I agree</button>
        </div>
    </div>
    <script type="text/javascript">
        var messageElement = document.querySelector('.cookie-notification');
        // If there aren't any cookies, show a placeholder
        if (!Cookies.get('agreement')) {
            showMessage();
        } else {
            initCounter();
        }
        // Load the code snippet immediately
        (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
        m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
        (window, document,'script','//mc.yandex.ru/metrika/tag.js', 'ym')
        // This function adds the class to the DOM element. You can use the jQuery library or another framework
        function addClass (o, c) {
            var re = new RegExp("(^|\\s)" + c + "(\\s|$)", "g");
            if (!o || re.test(o.className)) {
                return;
            }
            o.className = (o.className + " " + c).replace(/\s+/g, " ").replace(/(^ | $)/g, "");
        }
        // This function removes the class from the DOM element. You can use the jQuery library or another framework.
        function removeClass (o, c) {
            var re = new RegExp('(^|\\s)' + c + '(\\s|$)', 'g');
            if (!o) {
                return;
            }
            o.className = o.className.replace(re, '$1').replace(/\s+/g, ' ').replace(/(^ | $)/g, '');
        }
        // Function that hides the alert.
        function hideMessage () {
            addClass(messageElement, 'cookie-notification_hidden_yes');
        }
        // Function that shows the alert.
        function showMessage () {
            removeClass(messageElement, 'cookie-notification_hidden_yes');
        }
        function saveAnswer () {
            // Hide the alert.
            hideMessage();

            // Set cookies.
            Cookies.set('agreement', '1');
        }
        function initCounter () {
            ym(XXXX, 'init', {});
            saveAnswer();
        }
        // Clicked the "I agree" button.
        document.querySelector('#yes').addEventListener('click', function () {
            initCounter();
        });
    </script>
</body>
...

Burada:

  • XXXXXX: Sayacınızın numarasıdır.