Add Adwords Code into Thank You Page

  • Posts: 89
  • Thank you received: 1
9 years 7 months ago #226495

-- url of the page with the problem -- : www.awards4u.ca
-- HikaShop version -- : 2.6.0

Hi,

After reading about where to add code. I'm putting this code in "checkout / after_end.php". If you can help me to add this code that would be great!

This is the code in "checkout / after_end.php".

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

I want to add this code which came from google adwords:

<!-- Google Code for Adwords conversion Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 1031611572;
var google_conversion_language = "en";
var google_conversion_format = "2";
var google_conversion_color = "ffffff";
var google_conversion_label = "ewHwCPr0uQUQtMn06wM";
var google_conversion_value = 1.00;
var google_conversion_currency = "CAD";
var google_remarketing_only = false;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/1031611572/?value=1.00&amp;currency_code=CAD&amp;label=ewHwCPr0uQUQtMn06wM&amp;guid=ON&amp;script=0"/>
</div>
</noscript>
Please let me know where I should add the code?

Thanks

Last edit: 9 years 7 months ago by Jerome. Reason: [code] is nice

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

  • Posts: 26264
  • Thank you received: 4043
  • MODERATOR
9 years 7 months ago #226541

checkout / after_end.


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.036 seconds
Powered by Kunena Forum