<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Lotushints &#187; Google Analytics</title>
	<atom:link href="http://www.lotushints.com/tag/google-analytics/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lotushints.com</link>
	<description>Lotus Notes tips &#38; tricks you always hoped you will not need</description>
	<lastBuildDate>Thu, 29 Dec 2011 09:47:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Transaction logging class for Google Analytics</title>
		<link>http://www.lotushints.com/2008/09/transaction-logging-class-for-google-analytics/</link>
		<comments>http://www.lotushints.com/2008/09/transaction-logging-class-for-google-analytics/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 08:00:19 +0000</pubDate>
		<dc:creator>Vladimir Kocjancic</dc:creator>
				<category><![CDATA[e-commerce]]></category>
		<category><![CDATA[Intermediate]]></category>
		<category><![CDATA[Lotus Notes]]></category>
		<category><![CDATA[Object-oriented development]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[custom classes]]></category>
		<category><![CDATA[Google Analytics]]></category>

		<guid isPermaLink="false">http://www.lotushints.com/?p=14</guid>
		<description><![CDATA[At work, we are using Google Analytics tool to monitor user behaviour on our web pages. One of the things we really desired in earlier versions and is now finally available is e-commerce transaction logging. This extension uses passed data in many cool ways, creating several impressive reports (e.g. how many times a user visited [...]]]></description>
			<content:encoded><![CDATA[<p>At work, we are using <a href="http://www.google.com/analytics">Google Analytics</a> tool to monitor user behaviour on our web pages. One of the things we really desired in earlier versions and is now finally available is e-commerce transaction logging. This extension uses passed data in many cool ways, creating several impressive reports (e.g. how many times a user visited our page prior making purchase).<span id="more-14"></span></p>
<p>Documentation on transaction logging implementation can be found <a href="http://code.google.com/apis/analytics/docs/gaJSApiEcommerce.html">here</a>. There is a slight error in documentation (applies before this post was published). When adding an <strong>Item</strong>, first parameter is not <strong>Item number,</strong> but <strong>Transaction Id</strong>! Well, if you want your reports to behave like they should according to specifications.</p>
<p>Anyway, to cut a long story short. I created a set of custom classes that will help you implement GA e-commerce code into LotusScript. It is compatible with Google Analytics e-commerce Documentation, meaning that optional parameters are optional in this class as well.</p>
<p><strong>How to install?</strong></p>
<p>First, you need to <a href="http://www.lotushints.com/uploads/GALib.zip">download this file</a> to your computer and unzip it. Create a LotusScript library in destination database. Choose File-&gt;Import and select extracted file.  Save and close the library.</p>
<p><strong>How to test?</strong><br />
Here is my testing code from an agent:</p>
<pre>Use "GoogleAnalytics" 'GA script library

Dim ga As New CGoogleAnalytics
Dim trans As New CGATransaction
Dim item As New CGAItem

trans.OrderId = "1234"
trans.Affiliation = "Test store"
trans.Total = "20.00"
trans.Tax = "4.00"
trans.Shipping = "0.00"
trans.City = "Ljubljana"
trans.State = "SI"
trans.Country = "Slovenia"

'item 1
item.OrderId = trans.OrderId
item.SKU = "ItemSKU"
item.ItemName = "ItemName1"
item.Category = "ItemCategory1"
item.Price = "5.00"
item.Quantity = "1"
Call trans.AddItem (item)

'item 2
item.OrderId = trans.OrderId
item.SKU = "ItemSKU"
item.ItemName = "ItemName2"
item.Category = "ItemCategory2"
item.Price = "15.00"
item.Quantity = "1"
Call trans.AddItem (item)

'Debug parameter is added only for testing purposes.
'Default is false. If true, it strips script tags from output.
ga.Debug = True
Set ga.Transaction = trans
Messagebox ga.Serialize ("SiteName")</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.lotushints.com/2008/09/transaction-logging-class-for-google-analytics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

