Help - Search - Members - Calendar
Full Version: Tracking ecommerce with google analytics
Avactis Shopping Cart Forums > Avactis Technical Issues > Graphic Design Help, Ideas and Fun Cart Tweaks
athein
Does anyone know which page to edit to add the tracking code for the E-commerce using Google Analytics?

I have GA working successfully on my site, but GA indicates using the ecom code on the Receipt page of your cart.

What does Avactis consider the Receipt page?
This page from checkout -> step3-confirmation.tpl.html

<script type="text/javascript">
pageTracker._addTrans( "order-id", "affiliate","total","tax", "shipping","city","state","country" );
pageTracker._addItem( "order-id", "SKU", "product name", "product category", "unit price","quantity" );
pageTracker._trackTrans();
</script>
athein
Are we all on xmas vacation biggrin.gif
Anyone?

QUOTE(athein @ Dec 10 2008, 07:16 PM) [snapback]10011[/snapback]

Does anyone know which page to edit to add the tracking code for the E-commerce using Google Analytics?

I have GA working successfully on my site, but GA indicates using the ecom code on the Receipt page of your cart.

What does Avactis consider the Receipt page?
This page from checkout -> step3-confirmation.tpl.html

<script type="text/javascript">
pageTracker._addTrans( "order-id", "affiliate","total","tax", "shipping","city","state","country" );
pageTracker._addItem( "order-id", "SKU", "product name", "product category", "unit price","quantity" );
pageTracker._trackTrans();
</script>

dvector
Not sure if this is what you are looking for, I use this url in google-analytics:
checkout.php?asc_action=SetCurrStep&step_id=4

Its the page directed to after successful payment
"Success
Checkout Process Has Been Passed Successfully.
Order Id is 100xxx"

Don't put the google code in any avactis templates. Put it in the checkout.php
Marco
Hi folks, take a look at this.

It's a complete GA E-commerce transaction tracking, effortless on your side.

Update to 1.8.2, don't mess with checkout now.
athein
Okay... I put the code before Google ecommerce code before the closing body tag on checkout.php. Will report back if it works. I had it on the Success page in the templates folder and it captured the transaction but no data.
athein
Well that didn't work! It captures that a transaction occurred but does not pass any other data.

<script type="text/javascript">
pageTracker._addTrans( "order-id", "affiliate","total","tax", "shipping","city","state","country" );
pageTracker._addItem( "order-id", "SKU", "product name", "product category", "unit price","quantity" ); pageTracker._trackTrans();
</script>

Marco - i would love to upgrade. Awaiting the instructions on how to do so from 1.8.1. I have 1.8.2 installed and the templates in place. Having a problem getting the products from one db into the new one.

QUOTE(athein @ Jan 9 2009, 05:00 PM) [snapback]10318[/snapback]

Okay... I put the code before Google ecommerce code before the closing body tag on checkout.php. Will report back if it works. I had it on the Success page in the templates folder and it captured the transaction but no data.

athein
I love having this conversation w/myself. It's like having my own forum biggrin.gif tongue.gif

Just reporting back that this is a resolved issue... i successfully added in GA to my cart. Redundant now that 1.8.2 is around.

QUOTE(athein @ Jan 12 2009, 11:05 AM) [snapback]10339[/snapback]

Well that didn't work! It captures that a transaction occurred but does not pass any other data.

<script type="text/javascript">
pageTracker._addTrans( "order-id", "affiliate","total","tax", "shipping","city","state","country" );
pageTracker._addItem( "order-id", "SKU", "product name", "product category", "unit price","quantity" ); pageTracker._trackTrans();
</script>

Marco - i would love to upgrade. Awaiting the instructions on how to do so from 1.8.1. I have 1.8.2 installed and the templates in place. Having a problem getting the products from one db into the new one.

Marco
How to track transactions in 1.8.2:
  1. Go to Marketing > Affiliates/Transactions Tracking, enable GA and save
  2. (if not clean install) Insert the <?php TransactionTrackingHtmlCode(); ?> tag in avactis-templates/checkout/checkout-sequence/default/step4-success.tpl.html
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Copyright © 2004-2006 Avactis Ecommerce Shopping Cart Software. All Rights Reserved.
Invision Power Board © 2001-2013 Invision Power Services, Inc.