google analytics create objective URL

  • Posts: 135
  • Thank you received: 0
14 years 8 hours ago #2367

hi

i have installed google analytics and i want create a objective URL .


I have to give a target URL to google analytics track, and I wish I could give up when you finalize a purchase through hikashop I made a test purchase and this URL is what gives the browser to complete the purchase of a prodcut on my site:

/index.php?option=com_hikashop&ctrl=checkout&task=step&Itemid=183

I wanted to know if the correct direction to pass to google analytics to track my purchases on the site.

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
14 years 4 hours ago #2372

Hi,

This url is the checkout page. Not the final URL once the order is purchase.

Each step in the checkout is separated by the next by a comma. The end step is the final step.
In the URL, the step parameter determines the step your are on with the first step being 0. So if you have two steps like the default workflow the finale URL is:
/index.php?option=com_hikashop&ctrl=checkout&task=step&step=1&Itemid=183

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

  • Posts: 135
  • Thank you received: 0
14 years 3 hours ago #2373

i am confuse

my checkout workflow is: login,address_shipping_payment_confirm_coupon_cart_status_fields,end

so my URL would be :

/index.php?option=com_hikashop&ctrl=checkout&task=step&step=2&Itemid=183 ????

but what about this : Itemid=183. 183 is a id product . and google only track this .

would do this with all products ?

Last edit: 14 years 3 hours ago by chaka.

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
14 years 3 hours ago #2374

Itemid is a joomla parameter so that joomla knows which modules to display on the page.
In the URL, the product information is not known.

Could you explain what you're trying to achieve ?

On the google e-commerce tracking documentation I don't see anything related to a URL but a bunch of javascript code : code.google.com/apis/analytics/docs/trac...ackingEcommerce.html

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

  • Posts: 135
  • Thank you received: 0
14 years 2 hours ago #2377

in google you can set targets to monitor these activities, then you can decide what types of targets.

I choose: URL target.

a google example of this type according google is :

" www.mysite.com/thankyou.html " after the final purchase. and google will track this link

so in joomla or hikashop is there something like that ? a url direct after the final purchase ?

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
14 years 2 hours ago #2378

In the paypal plugin you can define a return URL. Paypal will redirect the user to that URL once the user finalises his payment on paypal. So you could then track that URL in GA.

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

  • Posts: 135
  • Thank you received: 0
14 years 1 hour ago #2380

i use Hikashop Collect On Delivery Payment Plugin . i dont have paypal .

any idea ?? :blink:

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 11 months ago #2382

In HikaShop, the end step of the checkout, like all the steps, uses the same URL index.php?option=com_hikashop&ctrl=checkout&task=step&Itemid=183

Now, if you want, you can go to Display->Views and edit the file end of the checkout view and add a redirection like that :

$app =& JFactory::getApplication();
$app->redirect( JRoute::_('index.php?option=com_content&view=article&id=***',false) );
Where *** is the id of an article where you can thank your user, etc.
Then, you can use the URL index.php?option=com_content&view=article&id=*** for the tracking.

Last edit: 13 years 11 months ago by nicolas.

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

  • Posts: 135
  • Thank you received: 0
13 years 11 months ago #2420

where ? before or after the all this code ?

this is the code in view

*********************

defined('_JEXEC') or die('Restricted access');
?>
<?php
if(empty($this->html)){
echo JText::_('THANK_YOU_FOR_PURCHASE');
}else{
echo $this->html;
}

**************************

Last edit: 13 years 11 months ago by chaka.

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

  • Posts: 80
  • Thank you received: 0
13 years 6 months ago #15206

How can you connect HikaShop to Google to track the amount of the purchase in the Ecommerce section within Analytics?

That is really useful information to see where sales are coming from and the dollar amount associated with that.

Thanks.

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 6 months ago #15214

You would have to add javascript code to the thank you view, as explained in the link I gave in a previous post of that thread: code.google.com/apis/analytics/docs/trac...ackingEcommerce.html

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

  • Posts: 80
  • Thank you received: 0
13 years 5 months ago #17378

Hi Nicolas,
Sorry if this is a silly question, but I am a bit over my head here. I don't understand your answer to my question about tracking the $$ amounts of purchases in Google.

"You would have to add javascript code to the thank you view, as explained in the link I gave in a previous post of that thread:"

Are you referring to this thread or a different one? I assume I follow the link to the Google explanation, but where do I add the Javascript that they refer to? I just don't understand how to proceed.

Thanks for any help. I am probably the only one that doesn't get it.

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 5 months ago #17379

You can go to Display->Views and edit the file end of the checkout view in order to add google analytics' code.
However, just copy/pasting the code won't be enough... You will have to heavily modify it to give to google the information of the order so if you're not a developer that's not gonna be possible.

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

  • Posts: 80
  • Thank you received: 0
13 years 5 months ago #17380

Can you give me a quote on how much it would cost for you to do it?

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

Time to create page: 0.089 seconds
Powered by Kunena Forum