Where toplace Google Analytics code 4 conversions

  • Posts: 18
  • Thank you received: 0
11 years 4 months ago #109879

Where do I place the code provided by Google Analytics to measure conversions on the shop?
Thanks

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
11 years 4 months ago #109886

You can configure and enable the HikaShop Google Anaytics plugin that is installed by default with the Business edition of HikaShop.

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

  • Posts: 18
  • Thank you received: 0
11 years 4 months ago #110075

I understand that but where the code goes is the problem. there is no actual page. in dynamic sites there is only one page. the index.php page. it has the framework of the page. when a link is clicked the framework call the information for all the bits that make up that page and then put the bits into their sections and displays the page. Can you advise?

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

  • Posts: 18
  • Thank you received: 0
11 years 4 months ago #110117

I understand that but where the code goes is the problem. there is no actual page. in dynamic sites there is only one page. the index.php page. it has the framework of the page. when a link is clicked the framework call the information for all the bits that make up that page and then put the bits into their sections and displays the page. Can you advise?

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

  • Posts: 18
  • Thank you received: 0
11 years 4 months ago #110174

Is there any reason no-one is responding to me?

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
11 years 4 months ago #110283

Hi,

No one is responding because others don't know how to respond and that I was busy answering other messages, and since you post again, I don't see the thread at the top of the queue and thus you need to wait longer for me to see it :)
So I would advise against "uping" your messages. Also, please note that we try to prioritize users with subscriptions to our commercial editions which is not your case.

I actually don't see the link of your message with mine. I'm talking about publishing a plugin which will handle the ecommerce data sending to Google Analytics automatically.
There is no need to add any code to any page in that case.

So I'm not sure what you're trying to achieve, or if we're actually talking about the same thing ?
Could you give more context to your question ? Maybe with an example ? Do you already have a Joomla Google Analytics plugin activated on your website ?

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

  • Posts: 18
  • Thank you received: 0
11 years 4 months ago #110285

Hi Google Analytics is activated it's the conversion tracking code that i need help with as my web developer does not know where within the shop he needs to place this code so that I can track conversions and I urgently need this. Thank you

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

  • Posts: 18
  • Thank you received: 0
11 years 4 months ago #110287

I want to track conversions from keywords to purchases. to do this I need to add the google conversions code from Adwords in to the purchase think you page that hikashop generates once a payment is made and the customer is returned from the payment gateway to the website where we have installed hikashop. could you please tell me where I am to post this code.

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
11 years 4 months ago #110288

Hi,

As I said, if you activate and configure the Google Analytics plugin of HikaShop, there is no code to add anywhere as HikaShop will add it automatically where it needs to be.

If you don't want to use that plugin and hard code that in HikaShop, then it will depend on what payment methods you use. It will basically be the same that for any other tracking system:
www.hikashop.com/en/forum/4-how-to/68067...es.html?limitstart=0

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

  • Posts: 18
  • Thank you received: 0
11 years 4 months ago #110293

The analytics code has been input and is working but the conversion tracker is not so this cannot be correct. Google have said the code they have provided me specifically for tracking needs to go onto a landing page the the user sees after they transact! Please advise

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
11 years 4 months ago #110295

I don't know of such code. What code is it ?
Did you read the link I gave which says where to add tracking code ?

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

  • Posts: 18
  • Thank you received: 0
11 years 4 months ago #110300

Below is the Google AdWords Conversion Tracking code for action type Sale of product. To start tracking this conversion you need to copy and paste the code into the source of the page you would like to track.

For tips see
adwords.google.com/support/aw/bin/answer...nswer=86276&hl=en_US .

<!-- Google Code for Sale of product Conversion Page --> <script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 1002043996;
var google_conversion_language = "en";
var google_conversion_format = "2";
var google_conversion_color = "ffffff";
var google_conversion_label = "9MW3CITWvwUQ3PTn3QM"; var google_conversion_value = 0;
/* ]]> */
</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/1002043996/?value=0&amp;label=9MW3CITWvwUQ3PTn3QM&amp;guid=ON&amp;script=0"/>
</div>
</noscript>

Google Ireland Ltd.
Gordon House, Barrow Street
Dublin 4, Ireland

Last edit: 11 years 3 weeks ago by Jerome. Reason: [code] is nice

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
11 years 4 months ago #110302

As written in the link I gave you:

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->Views.

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

  • Posts: 344
  • Thank you received: 3
11 years 2 months ago #119968

I have the sample problem and I need to ad the "Google analytics conversion code" on my website.

I have decided I want to place it on the checkout page (where the user fill out the name address etc).
In which file to I need to place the code ?

Tnx

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

  • Posts: 2334
  • Thank you received: 403
11 years 2 months ago #120019

The two files Nicolas suggested should do the job :)

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

  • Posts: 344
  • Thank you received: 3
11 years 2 months ago #120127

Hi
Tnx for reply.
I read the other thread as well.

The way I understand it I need to insertt the Google analytics conversion code in both "after_end" and in the "end" file ?

The same code in both of the two files above ?

Last edit: 11 years 2 months ago by river.

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

  • Posts: 2334
  • Thank you received: 403
11 years 2 months ago #120164

No you just have to put it in one of these file :)

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

  • Posts: 344
  • Thank you received: 3
11 years 3 weeks ago #127026

ok I place the code snippet in the "end" file: So the file now looks like this:

<?php
/**
 * @package  HikaShop for Joomla!
 * @version  2.2.0
 * @author  hikashop.com
 * @copyright  (C) 2010-2013 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;

// Edit: Fix for the missing end php tag
?>
<!-- Google Code for media Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 1019021354;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "jseTCL6IkQYQqpD05QM";
var google_conversion_value = 0;
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/1019021354/?value=0&amp;label=jseTCL6IkQYQqpD05QM&amp;guid=ON&amp;script=0"/>
</div>
</noscript>

I saved the file, and after that I went to the front-end using Google chrome on my test-site
I put a product in the cart and moved to the checkout. Then I right-clicked and selected to view "the sourch code". But I can't find the code here ?

This is way Google telles you to do it in order to see if the code is there.
Is it in the right place, because if it was I should be able to see it ?

Last edit: 11 years 3 weeks ago by Jerome.

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
11 years 3 weeks ago #127118

First, that file's code is not valid.
You need to close the PHP code before adding your HTML.
So you need to add the line:
?>
just before your code.
Second, that will only display at the end of the checkout while the user is being redirected to your payment gateway.
That way, you don't have irrelevant statistics of persons who went to the checkout but didn't create any order.

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

  • Posts: 344
  • Thank you received: 3
11 years 3 weeks ago #127130

OK Thank you for reply

Now My "end" file looks like this.... with the new code snippet.

<?php
/**
 * @package  HikaShop for Joomla!
 * @version  2.2.0
 * @author  hikashop.com
 * @copyright  (C) 2010-2013 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;

?>
<!-- Google Code for Kvikki Nettbutikk adwords Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 1019021354;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "yXk2CM6GkQYQqpD05QM";
var google_conversion_value = 0;
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/1019021354/?value=0&amp;label=yXk2CM6GkQYQqpD05QM&amp;guid=ON&amp;script=0"/>
</div>
</noscript>
Could you confirm that this i correct ?

Last edit: 11 years 3 weeks ago by Jerome. Reason: for CODE use [code] !!

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

Time to create page: 0.106 seconds
Powered by Kunena Forum