[Skip to main content](#vessel-content)

#   Tracking code

##

- **[kopretina](/forum/user/26682-kopretina "View kopretina's Profile")**
- [![kopretina's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/26682-kopretina "View kopretina's Profile") Topic Author
- [ Offline](/forum/user/26682-kopretina)

Less More

- Posts: 68
- Thank you received: 0
-
-

12 years 7 months ago [\#152077](#152077) by [kopretina](/forum/user/26682-kopretina "View kopretina's Profile")  *[Tracking code](/forum/27-checkout/867419-tracking-code#152077 "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-&gt;checkout-&gt; 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  and , which I don´t see in the file end.php  html)){ echo JText::&#95;('THANK&#95;YOU&#95;FOR&#95;PURCHASE'); }else{ echo $this-&gt;html; } $this-&gt;nextButton = false;  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.")* was created by *[kopretina](/forum/user/26682-kopretina "View kopretina's Profile")*

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-&gt;checkout-&gt; 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 &lt;body&gt; and &lt;/body&gt;, which I don´t see in the file end.php

&lt;?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](http://www.gnu.org/licenses/gpl-3.0.html)
*/
defined('_JEXEC') or die('Restricted access');
?&gt;&lt;?php
if(empty($this-&gt;html)){
echo JText::_('THANK_YOU_FOR_PURCHASE');
}else{
echo $this-&gt;html;
}
$this-&gt;nextButton = false;
?&gt;
&lt;script type="text/javascript"&gt;
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);
})();
&lt;/script&gt;

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.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NzQxOS10cmFja2luZy1jb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 7 months ago [\#152104](#152104) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Tracking code](/forum/27-checkout/867419-tracking-code#152104 "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-&gt;checkout-&gt; 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  and , which I don´t see in the file end.php  html)){ echo JText::&#95;('THANK&#95;YOU&#95;FOR&#95;PURCHASE'); }else{ echo $this-&gt;html; } $this-&gt;nextButton = false;  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.")*

Hi,

Here the code is placed between the body tags, you don't see them because they are in a parent file, in the template.
It's not working maybe because it's not in the good view.

Do you need the code before or after the payment of the order ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NzQxOS10cmFja2luZy1jb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kopretina](/forum/user/26682-kopretina "View kopretina's Profile")**
- [![kopretina's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/26682-kopretina "View kopretina's Profile") Topic Author
- [ Offline](/forum/user/26682-kopretina)

Less More

- Posts: 68
- Thank you received: 0
-
-

12 years 7 months ago [\#152221](#152221) by [kopretina](/forum/user/26682-kopretina "View kopretina's Profile")  Replied by *[kopretina](/forum/user/26682-kopretina "View kopretina's Profile")* on topic *[Tracking code](/forum/27-checkout/867419-tracking-code#152221 "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-&gt;checkout-&gt; 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  and , which I don´t see in the file end.php  html)){ echo JText::&#95;('THANK&#95;YOU&#95;FOR&#95;PURCHASE'); }else{ echo $this-&gt;html; } $this-&gt;nextButton = false;  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.")*

Hi Xavier,
the code is on the right place. But it was not display on the Heureka side imediately. They had some time to activate this on his side. Sorry for that. I did not know it.
Problem solved.

Lenka

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NzQxOS10cmFja2luZy1jb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.048 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
