php header Content-Type text html charset utf-8 button type button onc

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
header('Content-Type: text/html; charset= utf-8');
?>
<button type="button" onclick="metrikaReach('CART_NEW', yaParams);">Test</button>
<button type="button" onclick="metrikaReach('ORDER', yaParams);">Test order</button>
<script type="text/javascript" defer="defer">
var yaParams = {
order_id: "12345",
order_price: 123.45,
currency: "RUR",
exchange_rate: 1,
goods:
[
{
id: "1",
name: "название товара",
price: 100,
quantity: 1
}
]
};
function metrikaReach(goal_name, params) {
for (var i in window) {
if (/^yaCounter\d+/.test(i)) {
window[i].reachGoal(goal_name, params);
}
}
}
</script>
<!-- Yandex.Metrika informer -->
<a href="https://metrika.yandex.ru/stat/?id=26721216&amp;from=informer"
target="_blank" rel="nofollow"><img src="//bs.yandex.ru/informer/26721216/3_1_FFFFFFFF_EFEFEFFF_0_pageviews"
style="width:88px; height:31px; border:0;" alt="Яндекс.Метрика" title="Яндекс.Метрика: данные за сегодня (просмотры, визиты и уникальные посетители)" onclick="try{Ya.Metrika.informer({i:this,id:26721216,lang:'ru'});return false}catch(e){}"/></a>
<!-- /Yandex.Metrika informer -->
<!-- Yandex.Metrika counter -->
<script type="text/javascript">
(function (d, w, c) {
(w[c] = w[c] || []).push(function() {
try {
w.yaCounter26721216 = new Ya.Metrika({id:26721216,
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 = (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/26721216" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->