12 December 2007 ~ 0 Comments

Setting Parameters in Google Analytics

As I mentioned yesterday about setting goal values there are various parameters (variables) that you need to set in Google Analytics for it to work dynamically. Now, why is this important you may be asking? Well the answer is simple really if you want to track visitors to your website you’d like to track spending as well. Here is a list of Transaction Line Parameters and Item Line Parameters

Transaction line parameters

  • [order-id] – Your internal unique order id number
  • [affiliation] – Optional partner or store affiliation
  • [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 parameters

  • [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

 

Here is an example of what the code looks like with the parameters when you add it to your website…

<script src=”http://www.google-analytics.com/urchin.js” type=”text/javascript”>
</script>

<script type=”text/javascript”>
_uacct = “UA-1250162-1″;
urchinTracker();
</script>

<form style=”display:none;” name=”utmform”>
<textarea id=”utmtrans”>
UTM:T | 13666 | main store | [total] | 0.00 | 0.00 | Toronto | Ontario | Canada

UTM:T | 12345 | my store | 250.00 | 0.00 | 0.00 | Toronto | Ontario | Canada

UTM:I | 12345 | WF_BB_HandHeld | Pearl BlackBerry | Handheld PDAs | 159.00 | 27
UTM:I | 12345 | WF_Motorola_KRZRv3 | Motorola KRZR v3 | Cell Phones | 195.00 | 13
UTM:I | 12345 | WF_Motorola_RAZRv2 | Motorola RAZR v2 | Cell Phones | 149.00 | 9

</textarea>
</form>

<script type=”text/javascript”>
__utmSetTrans();
< /script>

</body>
</html>

In setting parameters on your website you can track product pricing tied to conversions on your website in Google Analytics.

Related Articles:

Leave a Reply