google conversion tracking code

General ShopSite user discussion

google conversion tracking code

Postby scarmardo » Sat Dec 20, 2008 8:25 pm

I would like to track conversions through google analytics.

I've looked for the example template that would have the google code with the shopsite variables being passed to google for the order amount, and other order information. In this way google would be able to track what was purchased, and the total dollar amount.

I'm sure that this is a frequently asked question, and this code, other than the google site id would be the same for most merchants.

Does anyone have google conversion tracking code that passes the order information to google?

I would also be interested in the adwords template tracking code, but i'm not sure if that is the same between different account or if it must be customized more?

Thanks for your help..
scarmardo
 
Posts: 5
Joined: Tue Dec 16, 2008 11:32 pm

Postby robm » Sat Dec 20, 2008 8:36 pm

If you enable Google Analytics tracking in the ShopSite backoffice under:
Merchandising -> Google -> Google Analytics

It's built into the software to auto insert the right code. If you want to do it manually, reference the help docs that give the code you'll need:

http://www.shopsite.com/help/10.0/en-US ... ytics.html
robm
 
Posts: 463
Joined: Fri Aug 04, 2006 5:46 pm
Location: Connecticut

Postby scarmardo » Sat Dec 20, 2008 8:43 pm

Thanks for the fast reply. I really appreciate it.

I put in my code there, but when I checked it, I had not switched it on...

So this will track the conversions and the dollar amounts associated with each conversion?
scarmardo
 
Posts: 5
Joined: Tue Dec 16, 2008 11:32 pm

Postby scarmardo » Sat Dec 20, 2008 8:49 pm

Thanks for the link... I found the tracking code to paste onto the thank you page, below the Google Analytics code, in case anyone is searching on the forum for it:

Code: Select all
<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>
[/code]
scarmardo
 
Posts: 5
Joined: Tue Dec 16, 2008 11:32 pm

Confused

Postby kiawah » Wed Apr 01, 2009 11:32 am

The help section of the site says that you can just use the wizard in Shopsite to include the script in all of the pages including the shopping cart. Is that true or do I need to manually add the script above in the Thank You page to track conversions?
kiawah
 
Posts: 30
Joined: Wed Jan 02, 2008 10:47 am

Re: Confused

Postby robm » Wed Apr 01, 2009 3:55 pm

kiawah wrote:The help section of the site says that you can just use the wizard in Shopsite to include the script in all of the pages including the shopping cart. Is that true or do I need to manually add the script above in the Thank You page to track conversions?

Yes, that is true. If you use the wizard in the backoffice ShopSite automatically inserts the code to track e-commerce statistics as well.
robm
 
Posts: 463
Joined: Fri Aug 04, 2006 5:46 pm
Location: Connecticut


Return to User Forum

Who is online

Users browsing this forum: Bing [Bot] and 14 guests