В код google analytics требуется вставить номер заказа. Все остальные переменные наковырял, но номер заказа не могу найти методом научного тыка. Исходники зашифрованы Zend Guard, код присвоения переменных к шаблону посмотреть нельзя. В общем, варианты как сделать по-быстрому у меня кончились и вынужден обратиться за помощью.
Есть ли способ получить или вывести на экран(типа var_dump) все переменные текущего шаблона? Или подскажите название этой переменной
Спасибо
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_trackPageview']);
_gaq.push(['_addTrans','{order_id}','zvk','<xsl:value-of select="order_list/sum"/>','','300','Москва','','']);
<xsl:apply-templates select="items_order" mode="gaq"/>
_gaq.push(['_trackTrans']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<!-- Шаблон для элементов заказа в google analytics -->
<xsl:template match="items_order" mode="gaq">
_gaq.push(['_addItem', '<xsl:value-of select="order/id"/>', <xsl:value-of disable-output-escaping="yes" select="item/@id"/>,'<xsl:value-of select="item/name"/>', '<xsl:value-of select="item/property[@xml_name = 'type']/value"/>', '<xsl:value-of select="item/price_discount"/>','<xsl:value-of select="order_items_quantity"/>']);
</xsl:template>