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

#   Errors with 3rd party tracking

##

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

Less More

- Posts: 15
- Thank you received: 0
-
-

12 years 3 months ago [\#163895](#163895) by [krossi](/forum/user/33000-krossi "View krossi's Profile")  *[Errors with 3rd party tracking](/forum/36-reports-statistics/869677-errors-with-3rd-party-tracking#163895 "-- url of the page with the problem -- :   neverhungover.com  -- HikaShop version -- : HikaShop Business: 2.3.1 -- Joomla version -- : 3.3.1. -- PHP version -- : 5.4.29 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- :  &quot; Login Address Payment End  Parse error: syntax error, unexpected '' in /home/neverhun/public&#95;html/templates/zo2&#95;melano/html/com&#95;hikashop/checkout/end.php on line 17&quot;  I am using several different third party tracking systems for my store. I am supposed to put them only on the sale confirmation page. Every time I add any one of them, I get an error like the one above. How can I avoid this and jst put these tracking systems on my site.  Here is an example of one of the conversion pixels:  ")* was created by *[krossi](/forum/user/33000-krossi "View krossi's Profile")*

-- url of the page with the problem -- : [ neverhungover.com](http://neverhungover.com)
-- HikaShop version -- : HikaShop Business: 2.3.1
-- Joomla version -- : 3.3.1.
-- PHP version -- : 5.4.29
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- :

"
Login
Address
Payment
End

Parse error: syntax error, unexpected '&lt;' in /home/neverhun/public_html/templates/zo2_melano/html/com_hikashop/checkout/end.php on line 17"

I am using several different third party tracking systems for my store. I am supposed to put them only on the sale confirmation page. Every time I add any one of them, I get an error like the one above. How can I avoid this and just put these tracking systems on my site.

Here is an example of one of the conversion pixels:

&lt;script language=javascript src=http://www.advconversion.com/ads-conversiontrack/conversion/track.do?type=html&amp;advertiserId=66718&gt;&lt;/script&gt;

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 3 months ago [\#163902](#163902) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Errors with 3rd party tracking](/forum/36-reports-statistics/869677-errors-with-3rd-party-tracking#163902 "-- url of the page with the problem -- :   neverhungover.com  -- HikaShop version -- : HikaShop Business: 2.3.1 -- Joomla version -- : 3.3.1. -- PHP version -- : 5.4.29 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- :  &quot; Login Address Payment End  Parse error: syntax error, unexpected '' in /home/neverhun/public&#95;html/templates/zo2&#95;melano/html/com&#95;hikashop/checkout/end.php on line 17&quot;  I am using several different third party tracking systems for my store. I am supposed to put them only on the sale confirmation page. Every time I add any one of them, I get an error like the one above. How can I avoid this and jst put these tracking systems on my site.  Here is an example of one of the conversion pixels:  ")*

Hello,
Firstly, did you done some modifications through the "end" file of the "checkout" view of your front-end template via "Hikashop-&gt;Display-&gt;Views" ? If that's the case, can you remove them and test it again ?
Thanks.

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

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

Less More

- Posts: 15
- Thank you received: 0
-
-

12 years 3 months ago [\#164166](#164166) by [krossi](/forum/user/33000-krossi "View krossi's Profile")  Replied by *[krossi](/forum/user/33000-krossi "View krossi's Profile")* on topic *[Errors with 3rd party tracking](/forum/36-reports-statistics/869677-errors-with-3rd-party-tracking#164166 "-- url of the page with the problem -- :   neverhungover.com  -- HikaShop version -- : HikaShop Business: 2.3.1 -- Joomla version -- : 3.3.1. -- PHP version -- : 5.4.29 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- :  &quot; Login Address Payment End  Parse error: syntax error, unexpected '' in /home/neverhun/public&#95;html/templates/zo2&#95;melano/html/com&#95;hikashop/checkout/end.php on line 17&quot;  I am using several different third party tracking systems for my store. I am supposed to put them only on the sale confirmation page. Every time I add any one of them, I get an error like the one above. How can I avoid this and jst put these tracking systems on my site.  Here is an example of one of the conversion pixels:  ")*

Yes, I put the tracking code in both the "end" and "after_end" of my front end template. This is where the error came from. When I remove the tracking codes, it works fine, but it doesn't track what I need tracked.

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

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

Less More

- Posts: 15
- Thank you received: 0
-
-

12 years 3 months ago [\#164178](#164178) by [krossi](/forum/user/33000-krossi "View krossi's Profile")  Replied by *[krossi](/forum/user/33000-krossi "View krossi's Profile")* on topic *[Errors with 3rd party tracking](/forum/36-reports-statistics/869677-errors-with-3rd-party-tracking#164178 "-- url of the page with the problem -- :   neverhungover.com  -- HikaShop version -- : HikaShop Business: 2.3.1 -- Joomla version -- : 3.3.1. -- PHP version -- : 5.4.29 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- :  &quot; Login Address Payment End  Parse error: syntax error, unexpected '' in /home/neverhun/public&#95;html/templates/zo2&#95;melano/html/com&#95;hikashop/checkout/end.php on line 17&quot;  I am using several different third party tracking systems for my store. I am supposed to put them only on the sale confirmation page. Every time I add any one of them, I get an error like the one above. How can I avoid this and jst put these tracking systems on my site.  Here is an example of one of the conversion pixels:  ")*

I'll go into more detail.

I have two tracking codes I need to install:

**1) Advertise.com**
&lt;script language=javascript src=http://www.advconversion.com/ads-conversiontrack/conversion/track.do?type=html&amp;advertiserId=66718&gt;&lt;/script&gt;

**2) Shopping.com**
&lt;script type="text/javascript"&gt;
var _roi = _roi &#124;&#124; [];

// Step 1: add base order details

_roi.push(); // required
_roi.push(); // unique customer order ID
_roi.push(); // order total without tax and shipping
_roi.push(); // notes on order, up to 50 characters

// Step 2: add every item in the order
// where your e-commerce engine loops through each item in the cart and prints out _addItem for each
// please note that the order of the values must be followed to ensure reporting accuracy

_roi.push(['_addItem',
'', // Merchant sku
'', // Product name
'', // Category id
'', // Category name
'', // Unit price
'' // Item quantity
]);

// Step 3: submit transaction to ECN ROI tracker

_roi.push();
&lt;/script&gt;
&lt;script type="text/javascript" src="[ stat.dealtime.com/ROI/ROI2.js](https://stat.dealtime.com/ROI/ROI2.js)"&gt;&lt;/script&gt;

---

I have no idea why the Advertise.com code didn't work since it doesn't appear to have any variables. W/ the shopping.com I followed hints from your other posts here:
[ www.hikashop.com/support/forum/4-how-to/...omfirmaion-page.html](http://www.hikashop.com/support/forum/4-how-to/15949-putting-tracking-cookies-into-the-comfirmaion-page.html)
[ www.hikashop.com/forum/4-how-to/68067-tr...get-cart-values.html](http://www.hikashop.com/forum/4-how-to/68067-tracking-pixel-cj-get-cart-values.html)

With that information, I entered this which DID NOT WORK:

> $app =&amp; JFactory::getApplication();
> $order\_id = $app-&gt;getUserState(HIKASHOP\_COMPONENT.'.order\_id');
> $orderClass = hikashop::get('class.order');
> $order = $orderClass-&gt;get($order\_id);
>
> &lt;script type="text/javascript"&gt;
> var \_roi = \_roi \|\| \[\];
>
> // Step 1: add base order details
>
> \_roi.push(); // required
> \_roi.push(); // unique customer order ID
> \_roi.push(); // order total without tax and shipping
> \_roi.push(); // notes on order, up to 50 characters
>
> // Step 2: add every item in the order
> // where your e-commerce engine loops through each item in the cart and prints out \_addItem for each
> // please note that the order of the values must be followed to ensure reporting accuracy
>
> \_roi.push(\['\_addItem',
> '', // Merchant sku
> '', // Product name
> '', // Category id
> '', // Category name
> '', // Unit price
> '' // Item quantity
> \]);
>
> // Step 3: submit transaction to ECN ROI tracker
>
> \_roi.push();
> &lt;/script&gt;
> &lt;script type="text/javascript" src="[ stat.dealtime.com/ROI/ROI2.js](https://stat.dealtime.com/ROI/ROI2.js)"&gt;&lt;/script&gt;

An actual document page on this topic would be very helpful rather than another forum topic.

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 3 months ago [\#164171](#164171) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Errors with 3rd party tracking](/forum/36-reports-statistics/869677-errors-with-3rd-party-tracking#164171 "-- url of the page with the problem -- :   neverhungover.com  -- HikaShop version -- : HikaShop Business: 2.3.1 -- Joomla version -- : 3.3.1. -- PHP version -- : 5.4.29 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- :  &quot; Login Address Payment End  Parse error: syntax error, unexpected '' in /home/neverhun/public&#95;html/templates/zo2&#95;melano/html/com&#95;hikashop/checkout/end.php on line 17&quot;  I am using several different third party tracking systems for my store. I am supposed to put them only on the sale confirmation page. Every time I add any one of them, I get an error like the one above. How can I avoid this and jst put these tracking systems on my site.  Here is an example of one of the conversion pixels:  ")*

Hi,

The view is containing PHP.
Please be sure that when you paste some HTML content, you're not in the PHP section, otherwise you will generate PHP fatal errors.

The best will be to put the content at the end of the view.
If the end of the view is containing some PHP, you can close the PHP block using Code:

?&gt;

and then paste your HTML content.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 15
- Thank you received: 0
-
-

12 years 3 months ago [\#164285](#164285) by [krossi](/forum/user/33000-krossi "View krossi's Profile")  Replied by *[krossi](/forum/user/33000-krossi "View krossi's Profile")* on topic *[Errors with 3rd party tracking](/forum/36-reports-statistics/869677-errors-with-3rd-party-tracking#164285 "-- url of the page with the problem -- :   neverhungover.com  -- HikaShop version -- : HikaShop Business: 2.3.1 -- Joomla version -- : 3.3.1. -- PHP version -- : 5.4.29 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- :  &quot; Login Address Payment End  Parse error: syntax error, unexpected '' in /home/neverhun/public&#95;html/templates/zo2&#95;melano/html/com&#95;hikashop/checkout/end.php on line 17&quot;  I am using several different third party tracking systems for my store. I am supposed to put them only on the sale confirmation page. Every time I add any one of them, I get an error like the one above. How can I avoid this and jst put these tracking systems on my site.  Here is an example of one of the conversion pixels:  ")*

I realized there was no closing tag last night so, to make sure I didn't mess up the system, I put the tracking before the PHP and it worked!

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

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

[](#top)
