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

#   End of checkout for event tracking

##

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

Less More

- Posts: 217
- Thank you received: 4
-
-

10 years 2 months ago [\#248747](#248747) by [FilipHradil](/forum/user/36153-filiphradil "View FilipHradil's Profile")  *[End of checkout for event tracking](/forum/27-checkout/886205-end-of-checkout-for-event-tracking#248747 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.2  Hello, I am searching for place where I can put my tracking code as purchase event. I tried end.php of view checkout, but it doesn't work for me. Can you suggest me another file? bank&#95;transfer end work for me but I need it for all payment plugins.  Thank you F.")* was created by *[FilipHradil](/forum/user/36153-filiphradil "View FilipHradil's Profile")*

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.2

Hello, I am searching for place where I can put my tracking code as purchase event. I tried end.php of view checkout, but it doesn't work for me. Can you suggest me another file? bank_transfer end work for me but I need it for all payment plugins.

Thank you
F.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

10 years 2 months ago [\#248748](#248748) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[End of checkout for event tracking](/forum/27-checkout/886205-end-of-checkout-for-event-tracking#248748 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.2  Hello, I am searching for place where I can put my tracking code as purchase event. I tried end.php of view checkout, but it doesn't work for me. Can you suggest me another file? bank&#95;transfer end work for me but I need it for all payment plugins.  Thank you F.")*

Hi,

The "end" view file should work for all the payment plugins
What modification did you add there ?

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

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

Less More

- Posts: 217
- Thank you received: 4
-
-

10 years 2 months ago [\#248798](#248798) by [FilipHradil](/forum/user/36153-filiphradil "View FilipHradil's Profile")  Replied by *[FilipHradil](/forum/user/36153-filiphradil "View FilipHradil's Profile")* on topic *[End of checkout for event tracking](/forum/27-checkout/886205-end-of-checkout-for-event-tracking#248798 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.2  Hello, I am searching for place where I can put my tracking code as purchase event. I tried end.php of view checkout, but it doesn't work for me. Can you suggest me another file? bank&#95;transfer end work for me but I need it for all payment plugins.  Thank you F.")*

Hello,

this modification causes display issue for me:

ORIGINAL Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.6.3 * @author hikashop.com * @copyright (C) 2010-2016 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 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;

MY Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.6.3 * @author hikashop.com * @copyright (C) 2010-2016 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 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; //tracking start $full = $this-&gt;amount; $full_int = filter_var($full, FILTER_SANITIZE_NUMBER_INT); //sebrani jen cisel ?&gt; &lt;script&gt; ga('send', { hitType: 'event', eventCategory: 'Order', eventAction: 'Purchase', eventLabel: 'Bank transfer', eventValue: &lt;?php echo $full_int; ?&gt; }); fbq('track', 'Purchase', { content_type: 'product', content_category: 'Bank transfer' value: &lt;?php echo $full_int; ?&gt;, currency: 'EUR' }); &lt;/script&gt; &lt;?php

after clicking on finish button only white blank page with this source code appears to me: Code:

&lt;div id="hikashop_checkout_page" class="hikashop_checkout_page hikashop_checkout_page_step3"&gt; &lt;div id="hikashop_cart_bar" class="hikashop_cart_bar"&gt; &lt;div class="hikashop_cart_step hikashop_cart_step_finished"&gt; &lt;span&gt;Your details&lt;/span&gt; &lt;/div&gt; &lt;div class="hikashop_cart_step hikashop_cart_step_finished"&gt; &lt;span&gt;Shipping and payment&lt;/span&gt; &lt;/div&gt; &lt;div class="hikashop_cart_step hikashop_cart_step_finished"&gt; &lt;span&gt;Review&lt;/span&gt; &lt;/div&gt; &lt;div class="hikashop_cart_step hikashop_cart_step_current"&gt; &lt;span&gt;Done&lt;/span&gt; &lt;/div&gt; &lt;/div&gt;

Thank you

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

10 years 2 months ago [\#248806](#248806) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[End of checkout for event tracking](/forum/27-checkout/886205-end-of-checkout-for-event-tracking#248806 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.2  Hello, I am searching for place where I can put my tracking code as purchase event. I tried end.php of view checkout, but it doesn't work for me. Can you suggest me another file? bank&#95;transfer end work for me but I need it for all payment plugins.  Thank you F.")*

Hi,

The code looks fine. Cany ou try again after turning on the "error reporting" and "debug mode" settings of the joomla configuration page ? It should then display an error message at the bottom of the page which would help understand what is the problem.

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

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

Less More

- Posts: 217
- Thank you received: 4
-
-

10 years 2 months ago [\#248948](#248948) by [FilipHradil](/forum/user/36153-filiphradil "View FilipHradil's Profile")  Replied by *[FilipHradil](/forum/user/36153-filiphradil "View FilipHradil's Profile")* on topic *[End of checkout for event tracking](/forum/27-checkout/886205-end-of-checkout-for-event-tracking#248948 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.2  Hello, I am searching for place where I can put my tracking code as purchase event. I tried end.php of view checkout, but it doesn't work for me. Can you suggest me another file? bank&#95;transfer end work for me but I need it for all payment plugins.  Thank you F.")*

Hello, so I tried it. Problem was on the end of the file "&lt;?php&gt;

I putted tracking code in if -else statement, but pixel and event from analytics doesn't work. I if opened source code, there was only messy body and javascript nowhere.

Do you have any ideas?

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

10 years 2 months ago [\#248968](#248968) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[End of checkout for event tracking](/forum/27-checkout/886205-end-of-checkout-for-event-tracking#248968 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.2  Hello, I am searching for place where I can put my tracking code as purchase event. I tried end.php of view checkout, but it doesn't work for me. Can you suggest me another file? bank&#95;transfer end work for me but I need it for all payment plugins.  Thank you F.")*

There is no "&lt;?php&gt;" code in the previous code you provided... So I don't see what you're talking about.
What was the exact error message that you got ?
What if/else are you talking about ? There are no if/else in the code you provided.
Please provide the exact code you're using from when you get the error. If you provide another code, we can't help.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NjIwNS1lbmQtb2YtY2hlY2tvdXQtZm9yLWV2ZW50LXRyYWNraW5nP3RtcGw9bWFya2Rvd24=) 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.068 seconds

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