cpc tracking codes

  • Posts: 223
  • Thank you received: 1
11 years 7 months ago #63035

cpc sites such as nextag and shopzilla provide a tracking code for monitoring performance. this code is placed on the order completed, or confirmation page.

on which hikashop view/page would we place this code?

thanks

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
11 years 7 months ago #63144

It's the "after_end" or "end" file of the view "checkout" that you can edit via the menu Display->Views.
It depends on the payment method you're using.
Here is an example of such development for another tracking system:
www.hikashop.com/en/forum/4-how-to/15949...omfirmaion-page.html

Please Log in or Create an account to join the conversation.

  • Posts: 223
  • Thank you received: 1
10 years 9 months ago #113446

we will be using paypal, authorize.net, and google wallet, so should we put them in "after_end" or "end?

thanks

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 9 months ago #113514

Hi,

You have to put this code in the "after_end" view for these payment methods.

Please Log in or Create an account to join the conversation.

  • Posts: 223
  • Thank you received: 1
10 years 8 months ago #117571

When I put the code on that page, after the payment info is enter, and one proceeds, the following error message appears....

Parse error: syntax error, unexpected '<' in /home/advplbg/decorativeplumbingonline.com/templates/jsn_epic_pro/html/com_hikashop/checkout/after_end.php on line 13

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 8 months ago #117687

Hi,

You have probably made a mistake when adding the code, for example the php tag opened two times, or something else.
Thanks to check the validity of the code in that file.

Please Log in or Create an account to join the conversation.

  • Posts: 223
  • Thank you received: 1
10 years 8 months ago #117696

have reviewed the code, and it is correct

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 8 months ago #117771

Hi,

Thanks to post the code between the tags [ code] .. [ /code] (without spacing)

Last edit: 10 years 8 months ago by Xavier.

Please Log in or Create an account to join the conversation.

  • Posts: 223
  • Thank you received: 1
10 years 8 months ago #117833

From Display>Views>Front End>My template>checkout>after_end:

<?php
/**
* @package HikaShop for Joomla!
* @version 2.1.3
* @author hikashop.com
* @copyright (C) 2010-2013 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
$app = JFactory::getApplication();
$app->enqueueMessage( JText::_('THANK_YOU_FOR_PURCHASE') );
<script type="text/javascript">
<!--
/* NexTag ROI Optimizer Data */
var id = '5289556';
//-->
</script>
<script type="text/javascript" src=" imgsrv.nextag.com/imagefiles/includes/roitrack.js "></script>


My code is in red

Last edit: 10 years 8 months ago by plumbingdeals.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 8 months ago #117857

Thanks to use this code:

<?php
/**
* @package HikaShop for Joomla!
* @version 2.1.3
* @author hikashop.com
* @copyright (C) 2010-2013 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
$app = JFactory::getApplication();
$app->enqueueMessage( JText::_('THANK_YOU_FOR_PURCHASE') );
?>
<script type="text/javascript">
<!--
/* NexTag ROI Optimizer Data */
var id = '5289556';
//-->
</script>
<script type="text/javascript" src="imgsrv.nextag.com/imagefiles/includes/roitrack.js"></script>

You had to close the php tag before use the script tag

Last edit: 10 years 8 months ago by Xavier.
The following user(s) said Thank You: plumbingdeals

Please Log in or Create an account to join the conversation.

  • Posts: 223
  • Thank you received: 1
10 years 8 months ago #117870

YES!!!
That was the problem...working fine now!
Thanks

Please Log in or Create an account to join the conversation.

Time to create page: 0.087 seconds
Powered by Kunena Forum