сам скрипт но дело врятли в нем
Код: Выделить всё
<!-- Yandex.Metrika counter -->
<script type="text/javascript">
(function (d, w, c) {
(w[c] = w[c] || []).push(function() {
try {
w.yaCounterxxxxxxxx = new Ya.Metrika({id:xxxxxxxx, /* xxxxxxxx - ID вашего счетчика */
webvisor:true,
clickmap:true,
trackLinks:true,
params: yaParams, /* Код, который мы вставили */
accurateTrackBounce:true});
} 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>
/* xxxxxxxx - ID вашего счетчика */
<noscript><div><img src="//mc.yandex.ru/watch/xxxxxxxx" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
Код: Выделить всё
<?php echo '<script>var yaParams = {ip_adress: "'. $_SERVER['REMOTE_ADDR'] .'" };</script>'; ?>
► Показать