Note: |
The instructions on this page are for manually adding the old (Urchin) tracking code to a store. Starting with version 8.2, ShopSite includes a utility to Automatically Configure Google Analytics for your store. Google has released a new tracking script to replace the Urchin code, which will no longer be maintained. The new script is supported by the Google Analytics integration in ShopSite starting with version 10.0.
|
Google's web analytics service enables advertisers and publishers to make their marketing campaigns more efficient and their websites more effective. ShopSite Merchants can use Google Analytics to track customer activity throughout the store, including purchases. Analytics integrates with other Google tools, including Google AdWords.
There are three steps to manually implementing Google Analytics in your ShopSite store:
You must include the Google Analytics code in any Web pages you want to have tracked. If you are using ShopSite generated pages, the easiest way to get the code on all your pages is to include the code in your Universal Store Footer:
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-XXXXXX-X"; urchinTracker(); </script>Windows users, click inside the textbox and hold down the Ctrl key and press the A key to select the text, then the C key to copy the text.
If you want to include the code in pages not generated by ShopSite, Google Analytics recommends pasting the code just before the </body> tag on your pages.
Once the analytics code is on your pages, you can check to make sure tracking is working by going to the Google Analytics Management Screen and looking at the Status of your store profile. If the status is unknown, there will be a link to Check Status. When you click on that link, Google Analytics will test your site to see if the code is present and working. If your status is Waiting for Data, your code is working properly and Google Analytics is gathering information. When your status becomes Receiving Data, Google Analytics has gathered information long enough to start creating reports.
Tracking customer activity through the checkout process is a valuable tool for knowing how effective your Website is. Google Analytics makes it possible not just to see how many visitors convert into sales, but you can also track what is being sold.
The first part of tracking Shopping Cart activity is to include the analytics code on your shopping cart pages.
Note: |
These instructions work for merchants whose shopping cart is on the same domain as their store. There are special instructions in the Google Analytics help for configuring tracking across multiple domains, which you can implement with Custom Templates.
|
Note: |
In order to work on secure pages without generating a security warning, the URL in the Google Analytics code must also be a secure URL. If you have ShopSite configured to use SSL, replace the non-secure urchin.js URL:
http://www.google-analytics.com/urchin.jswith the secure URL: https://ssl.google-analytics.com/urchin.json your Checkout, Confirmation, and Thank You screens. |
Once tracking is working on your shopping cart screens, you can include JavaScript on your Thank You screen to pass the contents of the cart to Google Analytics.
<form style="display:none;" name="utmform"> <script language="javascript" type="text/javascript"> document.write("<textarea id=\"utmtrans\">"); document.write("UTM:T|" + ss_ordernum + "|" + ss_associate + "|"); document.write(ss_ordertotal + "|" + ss_taxtotal + "|" + ss_shiptotal + "|"); document.write(ss_city + "|" + ss_state + "|" + ss_country + "\n"); for (var p = 0 ; p < number_products ; p++) { document.write("UTM:I|" + ss_ordernum + "|" + ss_sku[p] + "|" + ss_name[p] + "|Products|"); document.write(ss_price[p] + "|" + ss_quantity[p] + "\n"); } for (var c = 0 ; c < number_coupons ; c++) { document.write("UTM:I|" + ss_ordernum + "|" + ss_coupon_name[c] + "|" + ss_coupon_name[c]); document.write("|Coupons|" + ss_coupon_discount[c] + "|1" + "\n"); } document.write("</textarea>\n"); </script> </form> <script language="javascript" type="text/javascript">__utmSetTrans();</script>
Note: |
This JavaScript is provided as an example, and is not guaranteed to work. If you have troubles implementing this code, please consult your own JavaScript programmer for help.
|
The next time someone purchases something from your store, the cart contents should be sent to Google Analytics. It may take up to 24 hours before purchase history is available in your Google Analytics reports.
ShopSite Help and Resource Center Last updated: March 01, 2010 Give Feedback |
ShopSite Shopping Cart Software |