I need tu put tracking code to the last page of checkout.
It is JS.
I puted the code to file end.php to vies->checkout-> end.php to corect template but seems to me the code doesn´t work. My part is marked red.
I should not change anything only put the code on html page between <body> and </body>, which I don´t see in the file end.php
<?php
/**
* @package HikaShop for Joomla!
* @version 2.3.0
* @author hikashop.com
* @copyright (C) 2010-2014 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3
www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
if(empty($this->html)){
echo JText::_('THANK_YOU_FOR_PURCHASE');
}else{
echo $this->html;
}
$this->nextButton = false;
?>
<script type="text/javascript">
var _hrq = _hrq || [];
_hrq.push();
_hrq.push();
(function() {
var ho = document.createElement('script'); ho.type = 'text/javascript'; ho.async = true;
ho.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.heureka.cz/direct/js/cache/1-roi-async.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ho, s);
})();
</script>
Could you help me with this? I try to found solution at forum. I am not programmer so I don´t know, if the code is include correctly.