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

#   Tracking Pixel (CJ) get cart values

##

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

Less More

- Posts: 57
- Thank you received: 0
-
-

14 years 3 weeks ago [\#68067](#68067) by [rockstaran](/forum/user/7241-rockstaran "View rockstaran's Profile")  *[Tracking Pixel (CJ) get cart values](/forum/4-how-to/68067-tracking-pixel-cj-get-cart-values#68067 "I would like to place a conversion pixel of a tracking system in my hikashop site, I have to payment methods. First Data, and standard Paypal. Where can I place the tracking pixel that will have...")* was created by *[rockstaran](/forum/user/7241-rockstaran "View rockstaran's Profile")*

I would like to place a conversion pixel of a tracking system in my hikashop site, I have to payment methods. First Data, and standard Paypal. Where can I place the tracking pixel that will have access to values no matter which payment method was used to pay. Values I would need are: total price (and sub total price), Quantity, order id or order number.

Thank you in advance.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY4MDY3LXRyYWNraW5nLXBpeGVsLWNqLWdldC1jYXJ0LXZhbHVlcz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 3 weeks ago [\#68167](#68167) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Tracking Pixel (CJ) get cart values](/forum/4-how-to/68067-tracking-pixel-cj-get-cart-values#68167 "I would like to place a conversion pixel of a tracking system in my hikashop site, I have to payment methods. First Data, and standard Paypal. Where can I place the tracking pixel that will have...")*

Hi,

Here are some information regarding tracking of sales:
[ www.hikashop.com/en/support/forum/4-how-...omfirmaion-page.html](http://www.hikashop.com/en/support/forum/4-how-to/15949-putting-tracking-cookies-into-the-comfirmaion-page.html)
[ www.hikashop.com/en/support/forum/4-how-...tracking-system.html](http://www.hikashop.com/en/support/forum/4-how-to/10244-how-to-integrate-third-party-tracking-system.html)

The place where to put the modifications will depend on your payment method, either in the file "after_end" or the file "end" of the view "checkout" via the menu Display-&gt;Views.

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

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

Less More

- Posts: 57
- Thank you received: 0
-
-

14 years 3 weeks ago [\#68249](#68249) by [rockstaran](/forum/user/7241-rockstaran "View rockstaran's Profile")  Replied by *[rockstaran](/forum/user/7241-rockstaran "View rockstaran's Profile")* on topic *[Re: Tracking Pixel (CJ) get cart values](/forum/4-how-to/68067-tracking-pixel-cj-get-cart-values#68249 "I would like to place a conversion pixel of a tracking system in my hikashop site, I have to payment methods. First Data, and standard Paypal. Where can I place the tracking pixel that will have...")*

Thank you for the links, can you help me with telling me which files I have to edit for FirstData and Paypal?
I see views/checkout/tmpl

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY4MDY3LXRyYWNraW5nLXBpeGVsLWNqLWdldC1jYXJ0LXZhbHVlcz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 3 weeks ago [\#68443](#68443) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Tracking Pixel (CJ) get cart values](/forum/4-how-to/68067-tracking-pixel-cj-get-cart-values#68443 "I would like to place a conversion pixel of a tracking system in my hikashop site, I have to payment methods. First Data, and standard Paypal. Where can I place the tracking pixel that will have...")*

You should edit the file as I said via the menu Display-&gt;Views and not via FTP. It's the file "after_end" of the view "checkout" that you need to edit.

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

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

Less More

- Posts: 57
- Thank you received: 0
-
-

14 years 3 weeks ago [\#68687](#68687) by [rockstaran](/forum/user/7241-rockstaran "View rockstaran's Profile")  Replied by *[rockstaran](/forum/user/7241-rockstaran "View rockstaran's Profile")* on topic *[Re: Tracking Pixel (CJ) get cart values](/forum/4-how-to/68067-tracking-pixel-cj-get-cart-values#68687 "I would like to place a conversion pixel of a tracking system in my hikashop site, I have to payment methods. First Data, and standard Paypal. Where can I place the tracking pixel that will have...")*

Thank you for your response: is there a way to get the total order price without tax?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY4MDY3LXRyYWNraW5nLXBpeGVsLWNqLWdldC1jYXJ0LXZhbHVlcz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 3 weeks ago [\#68836](#68836) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Tracking Pixel (CJ) get cart values](/forum/4-how-to/68067-tracking-pixel-cj-get-cart-values#68836 "I would like to place a conversion pixel of a tracking system in my hikashop site, I have to payment methods. First Data, and standard Paypal. Where can I place the tracking pixel that will have...")*

Yes, you can do like that:

$app =&amp; JFactory::getApplication();
$order_id = $app-&gt;getUserState(HIKASHOP_COMPONENT.'.order_id');
$orderClass = hikashop::get('class.order');
$order = $orderClass-&gt;loadFullOrder($order_id,false,false);
$tax = $order-&gt;order_subtotal - $order-&gt;order_subtotal_no_vat + $order-&gt;order_discount_tax + $order-&gt;order_shipping_tax;
echo $order-&gt;order_full_price - $tax;

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

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

Less More

- Posts: 57
- Thank you received: 0
-
-

14 years 2 weeks ago [\#69839](#69839) by [rockstaran](/forum/user/7241-rockstaran "View rockstaran's Profile")  Replied by *[rockstaran](/forum/user/7241-rockstaran "View rockstaran's Profile")* on topic *[Re: Tracking Pixel (CJ) get cart values](/forum/4-how-to/68067-tracking-pixel-cj-get-cart-values#69839 "I would like to place a conversion pixel of a tracking system in my hikashop site, I have to payment methods. First Data, and standard Paypal. Where can I place the tracking pixel that will have...")*

Thank you,

I tried the code above but it is not working for me. I have a php script (the second pixel you see), that puts the querystring in a text file, however nothing is showing up. I have had two conversions since i added the code and the pixel or url was not even called. I am assuming there may be an error in the code perhaps.

**after\_end.php**
&lt;?php
$app =&amp; JFactory::getApplication();
$app-&gt;enqueueMessage( JText::_('THANK_YOU_FOR_PURCHASE') );
$order_id = $app-&gt;getUserState(HIKASHOP_COMPONENT.'.order_id');
$orderClass = hikashop::get('class.order');
$order = $orderClass-&gt;loadFullOrder($order_id,false,false);
$tax = $order-&gt;order_subtotal - $order-&gt;order_subtotal_no_vat + $order-&gt;order_discount_tax + $order-&gt;order_shipping_tax;
echo '&lt;iframe src="[ www.emjcd.com/tags/c?containerTagId=1153...54760&amp;AMT1='.$order-](https://www.emjcd.com/tags/c?containerTagId=1153&CID=1524353&OID='.$order_id.'&TYPE=354760&AMT1='.$order-)&gt;order_full_price - $tax.'&amp;QTY1=1&amp;ITEM1=Lead&amp;CURRENCY=USD" height="1" width="1" frameborder="0" scrolling="no" name="Conversion tag"&gt;&lt;/iframe&gt;';
echo '&lt;iframe src="[ pixel.rockstaran.com/?pixel=OrderID\_'.$o...\_id.'\_AMT1\_'.$order-](http://pixel.rockstaran.com/?pixel=OrderID_'.$order_id.'_AMT1_'.$order-)&gt;order_full_price - $tax.'" height="1" width="1" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;';

**end.php**
$app =&amp; JFactory::getApplication();
$order_id = $app-&gt;getUserState(HIKASHOP_COMPONENT.'.order_id');
$orderClass = hikashop::get('class.order');
$order = $orderClass-&gt;loadFullOrder($order_id,false,false);
$tax = $order-&gt;order_subtotal - $order-&gt;order_subtotal_no_vat + $order-&gt;order_discount_tax + $order-&gt;order_shipping_tax;
echo '&lt;iframe src="[ www.emjcd.com/tags/c?containerTagId=1153...54760&amp;AMT1='.$order-](https://www.emjcd.com/tags/c?containerTagId=1153&CID=1524353&OID='.$order_id.'&TYPE=354760&AMT1='.$order-)&gt;order_full_price - $tax.'&amp;QTY1=1&amp;ITEM1=Lead&amp;CURRENCY=USD" height="1" width="1" frameborder="0" scrolling="no" name="Conversion tag"&gt;&lt;/iframe&gt;';
echo '&lt;iframe src="[ pixel.rockstaran.com/?pixel=OrderID\_'.$o...\_id.'\_AMT1\_'.$order-](http://pixel.rockstaran.com/?pixel=OrderID_'.$order_id.'_AMT1_'.$order-)&gt;order_full_price - $tax.'" height="1" width="1" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;';

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

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

Less More

- Posts: 57
- Thank you received: 0
-
-

14 years 2 weeks ago [\#69970](#69970) by [rockstaran](/forum/user/7241-rockstaran "View rockstaran's Profile")  Replied by *[rockstaran](/forum/user/7241-rockstaran "View rockstaran's Profile")* on topic *[Re: Tracking Pixel (CJ) get cart values](/forum/4-how-to/68067-tracking-pixel-cj-get-cart-values#69970 "I would like to place a conversion pixel of a tracking system in my hikashop site, I have to payment methods. First Data, and standard Paypal. Where can I place the tracking pixel that will have...")*

> rockstaran wrote: Thank you,
>
> I tried the code above but it is not working for me. I have a php script (the second pixel you see), that puts the querystring in a text file, however nothing is showing up. I have had two conversions since i added the code and the pixel or url was not even called. I am assuming there may be an error in the code perhaps.
>
>
> **after\_end.php**
> &lt;?php
> $app =&amp; JFactory::getApplication();
> $app-&gt;enqueueMessage( JText::\_('THANK\_YOU\_FOR\_PURCHASE') );
> $order\_id = $app-&gt;getUserState(HIKASHOP\_COMPONENT.'.order\_id');
> $orderClass = hikashop::get('class.order');
> $order = $orderClass-&gt;loadFullOrder($order\_id,false,false);
> $tax = $order-&gt;order\_subtotal - $order-&gt;order\_subtotal\_no\_vat + $order-&gt;order\_discount\_tax + $order-&gt;order\_shipping\_tax;
> echo '&lt;iframe src="[ www.emjcd.com/tags/c?containerTagId=1153...54760&amp;AMT1='.$order-](https://www.emjcd.com/tags/c?containerTagId=1153&CID=1524353&OID='.$order_id.'&TYPE=354760&AMT1='.$order-)&gt;order\_full\_price - $tax.'&amp;QTY1=1&amp;ITEM1=Lead&amp;CURRENCY=USD" height="1" width="1" frameborder="0" scrolling="no" name="Conversion tag"&gt;&lt;/iframe&gt;';
> echo '&lt;iframe src="[ pixel.rockstaran.com/?pixel=OrderID\_'.$o...\_id.'\_AMT1\_'.$order-](http://pixel.rockstaran.com/?pixel=OrderID_'.$order_id.'_AMT1_'.$order-)&gt;order\_full\_price - $tax.'" height="1" width="1" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;';
>
>
> **end.php**
> $app =&amp; JFactory::getApplication();
> $order\_id = $app-&gt;getUserState(HIKASHOP\_COMPONENT.'.order\_id');
> $orderClass = hikashop::get('class.order');
> $order = $orderClass-&gt;loadFullOrder($order\_id,false,false);
> $tax = $order-&gt;order\_subtotal - $order-&gt;order\_subtotal\_no\_vat + $order-&gt;order\_discount\_tax + $order-&gt;order\_shipping\_tax;
> echo '&lt;iframe src="[ www.emjcd.com/tags/c?containerTagId=1153...54760&amp;AMT1='.$order-](https://www.emjcd.com/tags/c?containerTagId=1153&CID=1524353&OID='.$order_id.'&TYPE=354760&AMT1='.$order-)&gt;order\_full\_price - $tax.'&amp;QTY1=1&amp;ITEM1=Lead&amp;CURRENCY=USD" height="1" width="1" frameborder="0" scrolling="no" name="Conversion tag"&gt;&lt;/iframe&gt;';
> echo '&lt;iframe src="[ pixel.rockstaran.com/?pixel=OrderID\_'.$o...\_id.'\_AMT1\_'.$order-](http://pixel.rockstaran.com/?pixel=OrderID_'.$order_id.'_AMT1_'.$order-)&gt;order\_full\_price - $tax.'" height="1" width="1" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;';

Any ideas on the above?^

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY4MDY3LXRyYWNraW5nLXBpeGVsLWNqLWdldC1jYXJ0LXZhbHVlcz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 1 week ago [\#70119](#70119) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Tracking Pixel (CJ) get cart values](/forum/4-how-to/68067-tracking-pixel-cj-get-cart-values#70119 "I would like to place a conversion pixel of a tracking system in my hikashop site, I have to payment methods. First Data, and standard Paypal. Where can I place the tracking pixel that will have...")*

If the URL is not called, it means that you're not editing the correct file.

If you're editing them via the menu Display-&gt;Views, there are one view file per template, so make sure that you're editing the view file for the correct template.
Also, you can check the source of the end page to see if you see your HTML.

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

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

Less More

- Posts: 57
- Thank you received: 0
-
-

14 years 1 week ago [\#70151](#70151) by [rockstaran](/forum/user/7241-rockstaran "View rockstaran's Profile")  Replied by *[rockstaran](/forum/user/7241-rockstaran "View rockstaran's Profile")* on topic *[Re: Tracking Pixel (CJ) get cart values](/forum/4-how-to/68067-tracking-pixel-cj-get-cart-values#70151 "I would like to place a conversion pixel of a tracking system in my hikashop site, I have to payment methods. First Data, and standard Paypal. Where can I place the tracking pixel that will have...")*

Thank you for the response.
I confirmed that I am editing the correct two files via Display&gt;Views, previously I had the code (that did not use tax) and it work functioning, when I updated the same view files the url's are not being called.

Is there a way to get to the end page without having to go through the checkout process?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY4MDY3LXRyYWNraW5nLXBpeGVsLWNqLWdldC1jYXJ0LXZhbHVlcz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 1 week ago [\#70267](#70267) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Tracking Pixel (CJ) get cart values](/forum/4-how-to/68067-tracking-pixel-cj-get-cart-values#70267 "I would like to place a conversion pixel of a tracking system in my hikashop site, I have to payment methods. First Data, and standard Paypal. Where can I place the tracking pixel that will have...")*

No you have to go through the checkout process.

If you're updating the correct file, then what is the HTML generated by that code ? Did you check it via the source of the page ?

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

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

Less More

- Posts: 57
- Thank you received: 0
-
-

14 years 1 week ago [\#70281](#70281) by [rockstaran](/forum/user/7241-rockstaran "View rockstaran's Profile")  Replied by *[rockstaran](/forum/user/7241-rockstaran "View rockstaran's Profile")* on topic *[Re: Tracking Pixel (CJ) get cart values](/forum/4-how-to/68067-tracking-pixel-cj-get-cart-values#70281 "I would like to place a conversion pixel of a tracking system in my hikashop site, I have to payment methods. First Data, and standard Paypal. Where can I place the tracking pixel that will have...")*

I have only edited two files (end and after_end, of checkout view, in my template). They worked when I had the previous code (with tax included), but when I changed it to the code without tax it does not work, so for sure I am editing the correct file. I was trying to stay away from having to place an order, but will get it done today to see what the source code shows.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY4MDY3LXRyYWNraW5nLXBpeGVsLWNqLWdldC1jYXJ0LXZhbHVlcz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 1 week ago [\#70509](#70509) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Tracking Pixel (CJ) get cart values](/forum/4-how-to/68067-tracking-pixel-cj-get-cart-values#70509 "I would like to place a conversion pixel of a tracking system in my hikashop site, I have to payment methods. First Data, and standard Paypal. Where can I place the tracking pixel that will have...")*

Also, when you do, you should set the "error reporting" option of the joomla configuration to maximum so that you can is if you have some errors in the code.

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

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

Less More

- Posts: 57
- Thank you received: 0
-
-

14 years 1 week ago -  14 years 1 week ago [\#70807](#70807) by [rockstaran](/forum/user/7241-rockstaran "View rockstaran's Profile")  Replied by *[rockstaran](/forum/user/7241-rockstaran "View rockstaran's Profile")* on topic *[Re: Tracking Pixel (CJ) get cart values](/forum/4-how-to/68067-tracking-pixel-cj-get-cart-values#70807 "I would like to place a conversion pixel of a tracking system in my hikashop site, I have to payment methods. First Data, and standard Paypal. Where can I place the tracking pixel that will have...")*

I failed to turn on error reporting however I did put in an order.

-3.5527136788005E-15&amp;QTY1=1&amp;ITEM1=Lead&amp;CURRENCY=USD" height="1" width="1" frameborder="0" scrolling="no" name="Conversion tag"&gt;&lt;/iframe&gt;

-3.5527136788005E-15" height="1" width="1" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;&lt;/div&gt;

A review of the back end code:
echo '&lt;iframe src="[ www.emjcd.com/tags/c?containerTagId=1153...54760&amp;AMT1='.$order-](https://www.emjcd.com/tags/c?containerTagId=1153&CID=1524353&OID='.$order_id.'&TYPE=354760&AMT1='.$order-)&gt;order_full_price - $tax.'&amp;QTY1=1&amp;ITEM1=Lead&amp;CURRENCY=USD" height="1" width="1" frameborder="0" scrolling="no" name="Conversion tag"&gt;&lt;/iframe&gt;';

echo '&lt;iframe src="[ pixel.rockstaran.com/?pixel=OrderID\_'.$o...\_id.'\_AMT1\_'.$order-](http://pixel.rockstaran.com/?pixel=OrderID_'.$order_id.'_AMT1_'.$order-)&gt;order_full_price - $tax.'" height="1" width="1" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;';

Looks like something is breaking the string right before the tax variable or after. I think there is a problem in the math $order-&gt;order_full_price - $tax

Last edit: 14 years 1 week ago by [rockstaran](/forum/user/7241-rockstaran "View rockstaran's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY4MDY3LXRyYWNraW5nLXBpeGVsLWNqLWdldC1jYXJ0LXZhbHVlcz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 1 week ago [\#70808](#70808) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Tracking Pixel (CJ) get cart values](/forum/4-how-to/68067-tracking-pixel-cj-get-cart-values#70808 "I would like to place a conversion pixel of a tracking system in my hikashop site, I have to payment methods. First Data, and standard Paypal. Where can I place the tracking pixel that will have...")*

try to replace :
$order-&gt;order_full_price - $tax

by:

round($order-&gt;order_full_price - $tax,2)

in your code.

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

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

Less More

- Posts: 57
- Thank you received: 0
-
-

14 years 1 week ago [\#70810](#70810) by [rockstaran](/forum/user/7241-rockstaran "View rockstaran's Profile")  Replied by *[rockstaran](/forum/user/7241-rockstaran "View rockstaran's Profile")* on topic *[Re: Tracking Pixel (CJ) get cart values](/forum/4-how-to/68067-tracking-pixel-cj-get-cart-values#70810 "I would like to place a conversion pixel of a tracking system in my hikashop site, I have to payment methods. First Data, and standard Paypal. Where can I place the tracking pixel that will have...")*

It looks like it worked! however in this order there was no tax, hopefully when there is tax, it should still work fine.

&lt;iframe src="[ www.emjcd.com/tags/c?containerTagId=1153...M1=Lead&amp;CURRENCY=USD](https://www.emjcd.com/tags/c?containerTagId=1153&CID=1524353&OID=290&TYPE=354760&AMT1=40.17&QTY1=1&ITEM1=Lead&CURRENCY=USD)" height="1" width="1" frameborder="0" scrolling="no" name="Conversion tag"&gt;&lt;/iframe&gt;

&lt;iframe src="[ pixel.rockstaran.com/?pixel=OrderID\_290\_AMT1\_40.17](http://pixel.rockstaran.com/?pixel=OrderID_290_AMT1_40.17)" height="1" width="1" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;

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

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

Less More

- Posts: 57
- Thank you received: 0
-
-

14 years 4 days ago [\#71663](#71663) by [rockstaran](/forum/user/7241-rockstaran "View rockstaran's Profile")  Replied by *[rockstaran](/forum/user/7241-rockstaran "View rockstaran's Profile")* on topic *[Re: Tracking Pixel (CJ) get cart values](/forum/4-how-to/68067-tracking-pixel-cj-get-cart-values#71663 "I would like to place a conversion pixel of a tracking system in my hikashop site, I have to payment methods. First Data, and standard Paypal. Where can I place the tracking pixel that will have...")*

Sorry for continuing on this topic, but one last question. What is the variable name or how can I subtract the shipping charge from the total that gets placed on the pixel?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY4MDY3LXRyYWNraW5nLXBpeGVsLWNqLWdldC1jYXJ0LXZhbHVlcz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 3 days ago [\#71987](#71987) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Tracking Pixel (CJ) get cart values](/forum/4-how-to/68067-tracking-pixel-cj-get-cart-values#71987 "I would like to place a conversion pixel of a tracking system in my hikashop site, I have to payment methods. First Data, and standard Paypal. Where can I place the tracking pixel that will have...")*

The shipping charge is accessible with: $order-&gt;order_shipping_price

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

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

Less More

- Posts: 57
- Thank you received: 0
-
-

13 years 10 months ago [\#80441](#80441) by [rockstaran](/forum/user/7241-rockstaran "View rockstaran's Profile")  Replied by *[rockstaran](/forum/user/7241-rockstaran "View rockstaran's Profile")* on topic *[Re: Tracking Pixel (CJ) get cart values](/forum/4-how-to/68067-tracking-pixel-cj-get-cart-values#80441 "I would like to place a conversion pixel of a tracking system in my hikashop site, I have to payment methods. First Data, and standard Paypal. Where can I place the tracking pixel that will have...")*

Now if I am doing this with Authorize.net Payment Method, how can I go about it? (being able to put a pixel that will have the total price like discussed in this thread).

Considering how you have to put a return URL, I dont know how we can grab those values.

Thank you for the help on this.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY4MDY3LXRyYWNraW5nLXBpeGVsLWNqLWdldC1jYXJ0LXZhbHVlcz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

13 years 10 months ago [\#80524](#80524) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Tracking Pixel (CJ) get cart values](/forum/4-how-to/68067-tracking-pixel-cj-get-cart-values#80524 "I would like to place a conversion pixel of a tracking system in my hikashop site, I have to payment methods. First Data, and standard Paypal. Where can I place the tracking pixel that will have...")*

It depends.
In SIM mode, it's also the after_end file so it should already work.
In AIM mode, it's the file "end". But you will have to add an "if" condition around your code so that you only do it for the authorize.net payment method. Otherwise, it would add the tracking pixel for paypal and firstdata before the payment has been made.
It should be something like that:
if($order-&gt;order_payment_method=='authorize'){
//display the tracking pixel
}

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

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

[](#top)
