Google Conversion Snippet

  • Posts: 173
  • Thank you received: 4
9 years 4 months ago #207495

-- url of the page with the problem -- : morenadancewear.com.au
-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3

Hi,
I am trying to setup conversion tracking for adwords (Google) to check sale leads/keywords effectiveness and so on. The snippet needs to be added to the final checkout page when purchases/sales are made, however there is no obvious place to put this snippet!
I am aware that there is a Google tracking for Hikashop but it seems it doesn't track conversion.
Any idea how to track conversion in hikashop?
Regards.

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
9 years 4 months ago #207500

Hi,

Why not simply use the "remarketing" plugin in HikaShop ? It adds the snippet of code for adwords at the end of the checkout.

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

  • Posts: 173
  • Thank you received: 4
9 years 4 months ago #207564

Hi,
I am aware of this plugin but how does it work for specific conversion?
To give you an idea about what needs to be done, the code I want to insert from google snippet is:
<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/1045361347/?value=1.00&currency_code=AUD&label=4Wz2CPO5510Qw-W78gM&guid=ON&script=0"/>
The remarketing plugin asks for an adwords ID only which I am assuming my UA-XXXXXX-X one.
Would just entering the above adwords ID be enough?
Regards

(After speaking with Google staff, the question they have is: is it possible to get to the php file of the checkout pages?)

Last edit: 9 years 4 months ago by kchahine.

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
9 years 4 months ago #207607

Hi,

I don't think that the adword id should be this one.
It's the google_conversion_id, not the user account number.

If they want to look at the PHP code, it's the file plugins/system/hikashopremarketing/hikashopremarketing.php

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

  • Posts: 173
  • Thank you received: 4
9 years 4 months ago #207802

Hi,
The google_conversion_id has been found to be 1045361347. I have entered this into the plugin, my question would now be: can it be tested?

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
9 years 4 months ago #207818

Hi,

Honestly, I don't know how Google Adwords work. That plugin was provided by a third party developer as he needed it for Google Adwords.
We checked that the snippet of the plugin is added properly to the products page and that the code is correct in the plugin.
But we never tested it ourselves.

I realize that what I said previously here is wrong. This plugin is adding the conversion snippet to the product pages, not at the end of the checkout. So it's probably not what you want to do. Instead, you want to edit the file "end" of the checkout view via the menu Display>Views and add your snippet of code there so that it displays at the end of the checkout.
Again, I don't know how to test as I don't know Adwords. I guess that you should get something displayed in your Adwords account when someone goes through an Adwords link and purchase something.

The following user(s) said Thank You: kchahine

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

  • Posts: 173
  • Thank you received: 4
9 years 4 months ago #208021

Hi,
I think it might be a good investment to look into conversion tracking for google as a future plan for Hikashop, many people might be interested. In the meantime, we manage (with the help of Google Staff) to insert some snippets in the index.php of the template to achieve our goals.

The following user(s) said Thank You: Heaven

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

  • Posts: 1
  • Thank you received: 0
8 years 5 months ago #243356

Hello,

Where can I post the code from AdWords in the end page?

<?php
/**
 * @package	HikaShop for Joomla!
 * @version	2.6.2
 * @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');
?><?php
if(empty($this->html)){
	echo JText::_('THANK_YOU_FOR_PURCHASE');
}else{
	echo $this->html;
}
$this->nextButton = false;

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
8 years 1 month ago #251374

Hi,

You can add it at the beginning of that file.

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

Time to create page: 0.077 seconds
Powered by Kunena Forum