Google Analytics in QC

marik

No avatar

2006-08-07 16:10

Can i integrate Google Analytics into Quick.Cart so I can see where my costumers are and witch product the looking at?

D Ogi

No avatar

2006-08-07 17:14

Yes, I thing so :)

marik

No avatar

2006-08-07 18:37

But how?

D Ogi

No avatar

2006-08-07 19:00

I don't know. I didn't use Google Analytics yet... :D

treewood (OpenSolution)

Avatar: treewood

2006-08-07 19:25

marik - we have tip in documentation but only in polish yet. we will translate to english after our translator come back :)
http://opensolution.org/Quick.Cart/docs/?id=tips#jak_wstawic_kod_statystyk_na_strony_sklepu
use www.translate.pl to translate tip

D Ogi

No avatar

2006-08-07 21:26

You should open a file templates/page.tpl and in FOOTER block and before </body> insert your tracker-code.
For example


<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-543748-0";
urchinTracker();
</script>

</body></html> 

marik

No avatar

2006-08-08 08:38

I got that already, but thought about special places....

skaven krysa

No avatar

2006-08-22 14:01

Hello, I have similar problem - I want totrack e-commerce transactions with google analytics. There are some steps to do:

How do I track e-commerce transactions?

Google Analytics supports a client-side data collection technique for capturing e-commerce transactions. With some simple additions to your receipt page, Google Analytics can automatically detect and record transaction and product information. The required information is placed in a hidden form, which is parsed for transaction and product information. Most template-driven e-commerce systems can be modified to include this information hidden in the receipt.

Enabling E-Commerce Tracking

The first step of tracking e-commerce transactions is to enable e-commerce reporting for your website's profile. To enable e-commerce reporting, please follow these steps:

1. Log in to your account.
2. Click Edit next to the profile you'd like to enable.
3. On the Profile Settings page, click edit next to Main Website Profile Information.
4. Change the E-Commerce Website radio button from No to Yes.

Receipt Page Format

The second step is to ensure that the tracking code is included in the receipt page in the standard fashion. This may be done using a server side include, or other template driver, or can simply be hand-coded into your HTML code:

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct="UA-xxxx-x";
urchinTracker();
</script>

Next, somewhere in the receipt below the tracking code, the following lines need to be written by your engine. Everything in brackets should be replaced by actual values, as described in the Parameter Reference, below.

<body onLoad="javascript:__utmSetTrans()">

<form style="display:none;" name="utmform">
<textarea id="utmtrans">UTM:T|[order-id]|[affiliation]|
[total]|[tax]| [shipping]|[city]|[state]|[country] UTM:I|[order-id]|[sku/code]|[productname]|[category]|[price]|
[quantity] </textarea>
</form>

NOTE: Do not include the square brackets when setting the values for the form. In addition, do not use commas to separate the thousands place in your total, tax, and shipping fields - any digits after the comma will be dropped.

Example

UTM:T|34535|Main Store|111108.06|8467.06|10.00|San Diego|CA|USA
UTM:I|34535|XF-1024|Urchin T-Shirt|Shirts|11399.00|9
UTM:I|34535|CU-3424|Urchin Drink Holder|Accessories|20.00|2

Within the hidden form, there are two types of lines: the transaction line and the item lines. For each transaction, there should be only one transaction line, which is indicated by the "T" immediately after the "UTM:". This line specifies the total for the transaction, including any taxes or shipping costs, and other information. For each item in the receipt, create an item line, which is specified by the "I". The Item lines can contain product names, codes, unit prices and quantities. There is no limit to the number of item lines per transaction.

Parameter Reference

Transaction line variables
[order-id] Your internal unique order id number
[affiliation] Optional partner or store affilation
[total] Total dollar amount of the transaction
[tax] Tax amount of the transaction
[shipping] The shipping amount of the transaction
[city] City to correlate the transaction with
[state/region] State or province
[country] Country

Item line variables
[order-id] Your internal unique order id number (should be same as transaction line)
[sku/code] Product SKU code
[product name] Product name or description
[category] Category of the product or variation
[price] Unit-price of the product
[quantity] Quantity ordered

---------------------------------------------------------------------------------------
But how to do it in quick.cart?

dkrasmus

No avatar

2006-08-29 23:45

Hello thank you for your forum and the quick.cart sofware, i would also like to know how to incorporate google analytics at it fullest in quick.cart

Elwin

No avatar

2007-02-05 14:33

please tell me also where i can put the above code

kranken

Avatar: kranken

2007-03-28 11:17

Has somebody got this working? I tried to look for a right template file to put this into, burt didn't find it. I suppose that it could be the one that says something like "Thank you for your order!" it also says "Print order". I just didn't find it from the templates...

pieniek

No avatar

2007-04-29 16:38

Czy po dadaniu kodu do google analitics pojawia się jakaś grafika? Bo dodałe w podanym miejscu i nic się nie wyświetla, a także google nie zbiera danych? Może macie jakieś pomysły?
Dodałem kod stat.4u.pl i odrazu działało!

Z góry dziękuje
Łukasz

dstonebraker

Avatar: dstonebraker

2008-11-07 23:51

I am using the brightside template and I put my google code in the templates/container.tpl file. The /body tag is not at the bottom its about 2 thirds of the way down the page. Of course I cant tell if its working till tomorrow but I think it will.

Back to top
about us | contact