помогите, пожалуйста, настроить цели в Яндекс.Метрике.
Прочитал несколько тем по теме, сделал в итоге следующее:
1. В HTML добавлено:
Цитата
<!-- Yandex.Metrika counter -->
<script type="text/javascript">
if(document.referrer.indexOf('/order/stage/confirm') !== -1) {
var yaParams = {order_id: "{ORDER_NUM}",
order_price: "{ORDER_SUM}",
currency: "RUR",
exchange_rate: 1,
goods:
[
{%FOR order_lines%}{% IF order_lines.TYPE_ID=1 %}
{
id: "{order_lines.GOODS_ID}",
name: "{order_lines.NAME}",
price: "{order_lines.LINE_SUM}",
quantity: "{order_lines.QUANTITY}"
},
{% ENDIF %}{%ENDFOR%}
]};
}
</script>
<script type="text/javascript">
(function (d, w, c) {
(w[c] = w[c] || []).push(function() {
try {
w.yaCounter9493753 = new Ya.Metrika({id:9493753,
webvisor:true,
clickmap:true,
trackLinks:true,
accurateTrackBounce:true,params:window.yaParams||{ }});
} 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/9493753" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
2. В "Оформление заказ" ничего не менял - надо?
3. В самой Яндекс.Метрике сделал цели "переход в корзину" и "оформление заказа":
Что не так я делаю? Заказы никакие не отображаются.
Хелп!!!