<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Sarin.Mobi</title>
	<atom:link href="http://www.sarin.mobi/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sarin.mobi</link>
	<description>Information Technology Expert</description>
	<lastBuildDate>Fri, 03 Sep 2010 12:51:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>Comment on Generate Google Analytics E-Commerce code from C# by Sarin Na Wangkanai</title>
		<link>http://www.sarin.mobi/2008/11/generate-google-analytics-e-commerce-code-from-c/comment-page-1/#comment-22245</link>
		<dc:creator>Sarin Na Wangkanai</dc:creator>
		<pubDate>Fri, 03 Sep 2010 12:51:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.sarin.mobi/2008/11/generate-google-analytics-e-commerce-code-from-c/#comment-22245</guid>
		<description>i did some research on your topic. the reason this is happening is because asp.net c# 2.0 does not have &lt;a href=&quot;http://footheory.com/blogs/bennie/archive/2007/08/02/new-features-in-c-3-0-part-3-automatic-properties-object-initializers-and-collection-initializers.aspx&quot; rel=&quot;nofollow&quot;&gt;Automatic Properties&lt;/a&gt;. 
meaning you can&#039;t do =&gt; public Google.Analytics analytics {get; set;}
you would need to create a private variable for all your property to link to. 
read up more on this at http://footheory.com/blogs/bennie/archive/2007/08/02/new-features-in-c-3-0-part-3-automatic-properties-object-initializers-and-collection-initializers.aspx</description>
		<content:encoded><![CDATA[<p>i did some research on your topic. the reason this is happening is because asp.net c# 2.0 does not have <a href="http://footheory.com/blogs/bennie/archive/2007/08/02/new-features-in-c-3-0-part-3-automatic-properties-object-initializers-and-collection-initializers.aspx" rel="nofollow">Automatic Properties</a>.<br />
meaning you can&#8217;t do => public Google.Analytics analytics {get; set;}<br />
you would need to create a private variable for all your property to link to.<br />
read up more on this at <a href="http://footheory.com/blogs/bennie/archive/2007/08/02/new-features-in-c-3-0-part-3-automatic-properties-object-initializers-and-collection-initializers.aspx" rel="nofollow">http://footheory.com/blogs/bennie/archive/2007/08/02/new-features-in-c-3-0-part-3-automatic-properties-object-initializers-and-collection-initializers.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Generate Google Analytics E-Commerce code from C# by Pepin</title>
		<link>http://www.sarin.mobi/2008/11/generate-google-analytics-e-commerce-code-from-c/comment-page-1/#comment-22243</link>
		<dc:creator>Pepin</dc:creator>
		<pubDate>Thu, 02 Sep 2010 13:59:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.sarin.mobi/2008/11/generate-google-analytics-e-commerce-code-from-c/#comment-22243</guid>
		<description>Yes sir, i have.. here is my code in the masterpage code behind page

// adding google analytics reference
 public Google.Analytics analytics {get; set;}

   protected override void OnInit(EventArgs e)
    {
       analytics = new Google.Analytics(&quot;UA-XXXXXXX-X&quot;);
      
       base.OnInit(e);
    }

I have placed this code in my parent masterpage. then i have added this reference to the masterpage file

  

NOW IN MY THANKYOU PAGE code behind ( which is based on the parent masterpage)

Google.Transaction transaction = new Google.Transaction(lOrderId.Text, lBillingName.Text, 0, lShipping.Text, &quot; &quot;, &quot; &quot;, &quot;&quot;);
               transaction.Add(new Google.Item(lOrderId.Text,&quot; &quot;,&quot; &quot;,&quot; &quot;,&quot; &quot;));
               ((styles_StandardLayout)this.Master).analytics.AddTrans(transaction);

I would appreciate it if you can guide me sir.

Thanks
Pepin</description>
		<content:encoded><![CDATA[<p>Yes sir, i have.. here is my code in the masterpage code behind page</p>
<p>// adding google analytics reference<br />
 public Google.Analytics analytics {get; set;}</p>
<p>   protected override void OnInit(EventArgs e)<br />
    {<br />
       analytics = new Google.Analytics(&#8220;UA-XXXXXXX-X&#8221;);</p>
<p>       base.OnInit(e);<br />
    }</p>
<p>I have placed this code in my parent masterpage. then i have added this reference to the masterpage file</p>
<p>NOW IN MY THANKYOU PAGE code behind ( which is based on the parent masterpage)</p>
<p>Google.Transaction transaction = new Google.Transaction(lOrderId.Text, lBillingName.Text, 0, lShipping.Text, &#8221; &#8220;, &#8221; &#8220;, &#8220;&#8221;);<br />
               transaction.Add(new Google.Item(lOrderId.Text,&#8221; &#8220;,&#8221; &#8220;,&#8221; &#8220;,&#8221; &#8220;));<br />
               ((styles_StandardLayout)this.Master).analytics.AddTrans(transaction);</p>
<p>I would appreciate it if you can guide me sir.</p>
<p>Thanks<br />
Pepin</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Generate Google Analytics E-Commerce code from C# by Sarin Na Wangkanai</title>
		<link>http://www.sarin.mobi/2008/11/generate-google-analytics-e-commerce-code-from-c/comment-page-1/#comment-22239</link>
		<dc:creator>Sarin Na Wangkanai</dc:creator>
		<pubDate>Wed, 01 Sep 2010 22:24:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.sarin.mobi/2008/11/generate-google-analytics-e-commerce-code-from-c/#comment-22239</guid>
		<description>That should not happen in. have you created an instance of the google tracking code in your masterpage OnInit() method like this &quot;analytics = new Google.Analytics(&quot;UA-XXXXX-YY&quot;);&quot; yet?</description>
		<content:encoded><![CDATA[<p>That should not happen in. have you created an instance of the google tracking code in your masterpage OnInit() method like this &#8220;analytics = new Google.Analytics(&#8220;UA-XXXXX-YY&#8221;);&#8221; yet?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Generate Google Analytics E-Commerce code from C# by Sarin Na Wangkanai</title>
		<link>http://www.sarin.mobi/2008/11/generate-google-analytics-e-commerce-code-from-c/comment-page-1/#comment-22238</link>
		<dc:creator>Sarin Na Wangkanai</dc:creator>
		<pubDate>Wed, 01 Sep 2010 22:22:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.sarin.mobi/2008/11/generate-google-analytics-e-commerce-code-from-c/#comment-22238</guid>
		<description>I think that you are missing the whole point of tracking with google analytics, because if your customer execute the transaction on their browser you would get tracking details of who their are. but if you did that in the back-end, you wouldn&#039;t have that information or that it will only show that paypal is your customer. which would make no use in analyzing your customer behavioral on your online store.

if your customer have made an order on your website and that invoice have then void (unpaid &amp; expired). you could always &lt;a href=&quot;http://www.google.com/support/analytics/bin/answer.py?hl=en-uk&amp;answer=72290&quot; rel=&quot;nofollow&quot;&gt;remove the transaction that from google analytics&lt;/a&gt; and that show you have a negative transaction.

if this feature of removing transaction from google analytics is what everybody is interest, then i might considering adding it to the codes.</description>
		<content:encoded><![CDATA[<p>I think that you are missing the whole point of tracking with google analytics, because if your customer execute the transaction on their browser you would get tracking details of who their are. but if you did that in the back-end, you wouldn&#8217;t have that information or that it will only show that paypal is your customer. which would make no use in analyzing your customer behavioral on your online store.</p>
<p>if your customer have made an order on your website and that invoice have then void (unpaid &#038; expired). you could always <a href="http://www.google.com/support/analytics/bin/answer.py?hl=en-uk&#038;answer=72290" rel="nofollow">remove the transaction that from google analytics</a> and that show you have a negative transaction.</p>
<p>if this feature of removing transaction from google analytics is what everybody is interest, then i might considering adding it to the codes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Generate Google Analytics E-Commerce code from C# by Pepin</title>
		<link>http://www.sarin.mobi/2008/11/generate-google-analytics-e-commerce-code-from-c/comment-page-1/#comment-22227</link>
		<dc:creator>Pepin</dc:creator>
		<pubDate>Tue, 31 Aug 2010 16:37:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.sarin.mobi/2008/11/generate-google-analytics-e-commerce-code-from-c/#comment-22227</guid>
		<description>Hello there, I am trying add the code in asp.net 2.0 and C# but i am getting an error in the file google.cs at this line
 
public string UA { get; set; }

and the error is 
 &#039;Google.Analytics.UA.get&#039; must declare a body because it is not marked abstract or external

can you please help me out.
Thanks and appreciate it</description>
		<content:encoded><![CDATA[<p>Hello there, I am trying add the code in asp.net 2.0 and C# but i am getting an error in the file google.cs at this line</p>
<p>public string UA { get; set; }</p>
<p>and the error is<br />
 &#8216;Google.Analytics.UA.get&#8217; must declare a body because it is not marked abstract or external</p>
<p>can you please help me out.<br />
Thanks and appreciate it</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Generate Google Analytics E-Commerce code from C# by Tomas</title>
		<link>http://www.sarin.mobi/2008/11/generate-google-analytics-e-commerce-code-from-c/comment-page-1/#comment-22206</link>
		<dc:creator>Tomas</dc:creator>
		<pubDate>Tue, 24 Aug 2010 11:12:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.sarin.mobi/2008/11/generate-google-analytics-e-commerce-code-from-c/#comment-22206</guid>
		<description>It would be cool that Transaction code would be executed even if asp.net web page is not loaded in browser. Now your code only works if JavaScript is execute din browser, but it do not work if web page is executed from web service like PayPal Instant Payment Notification.
If you will look at http://www.diaryofaninja.com/projects/details/ga-dot-net#api 
you will find solution which works even if GA code is not loaded in browser.

Please add such feature to your code.</description>
		<content:encoded><![CDATA[<p>It would be cool that Transaction code would be executed even if asp.net web page is not loaded in browser. Now your code only works if JavaScript is execute din browser, but it do not work if web page is executed from web service like PayPal Instant Payment Notification.<br />
If you will look at <a href="http://www.diaryofaninja.com/projects/details/ga-dot-net#api" rel="nofollow">http://www.diaryofaninja.com/projects/details/ga-dot-net#api</a><br />
you will find solution which works even if GA code is not loaded in browser.</p>
<p>Please add such feature to your code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Generate Google Analytics E-Commerce code from C# by Sarin Na Wangkanai</title>
		<link>http://www.sarin.mobi/2008/11/generate-google-analytics-e-commerce-code-from-c/comment-page-1/#comment-22157</link>
		<dc:creator>Sarin Na Wangkanai</dc:creator>
		<pubDate>Fri, 06 Aug 2010 12:00:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.sarin.mobi/2008/11/generate-google-analytics-e-commerce-code-from-c/#comment-22157</guid>
		<description>I went back to fix all code syntax that was showing incorrectly, in order to make this post most accurate as possible.

I hope you enjoy this update :)</description>
		<content:encoded><![CDATA[<p>I went back to fix all code syntax that was showing incorrectly, in order to make this post most accurate as possible.</p>
<p>I hope you enjoy this update <img src='http://www.sarin.mobi/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on AJAX Support Chat with visitor tracker and invitation by Sarin Na Wangkanai</title>
		<link>http://www.sarin.mobi/2008/11/ajax-support-chat-with-visitor-tracker-and-invitation/comment-page-1/#comment-22156</link>
		<dc:creator>Sarin Na Wangkanai</dc:creator>
		<pubDate>Fri, 06 Aug 2010 11:58:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.sarin.mobi/2008/11/ajax-support-chat-with-visitor-tracker-and-invitation/#comment-22156</guid>
		<description>I went back to fix all code syntax that was showing incorrectly, in order to make this post most accurate as possible.

I hope you enjoy this unpdate</description>
		<content:encoded><![CDATA[<p>I went back to fix all code syntax that was showing incorrectly, in order to make this post most accurate as possible.</p>
<p>I hope you enjoy this unpdate</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Generate Google Analytics E-Commerce code from C# by Sarin Na Wangkanai</title>
		<link>http://www.sarin.mobi/2008/11/generate-google-analytics-e-commerce-code-from-c/comment-page-1/#comment-22142</link>
		<dc:creator>Sarin Na Wangkanai</dc:creator>
		<pubDate>Fri, 16 Jul 2010 03:07:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.sarin.mobi/2008/11/generate-google-analytics-e-commerce-code-from-c/#comment-22142</guid>
		<description>I have updated this code to compile with Google Analytics recommendation on asynchronous syntax. Also i have extended more features into the code to cover more aspect of google analytics website tracking system.

Please post be me back if their is any bugs related to this new update.</description>
		<content:encoded><![CDATA[<p>I have updated this code to compile with Google Analytics recommendation on asynchronous syntax. Also i have extended more features into the code to cover more aspect of google analytics website tracking system.</p>
<p>Please post be me back if their is any bugs related to this new update.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Generate Google Analytics E-Commerce code from C# by Sarin Na Wangkanai</title>
		<link>http://www.sarin.mobi/2008/11/generate-google-analytics-e-commerce-code-from-c/comment-page-1/#comment-22141</link>
		<dc:creator>Sarin Na Wangkanai</dc:creator>
		<pubDate>Thu, 15 Jul 2010 09:33:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.sarin.mobi/2008/11/generate-google-analytics-e-commerce-code-from-c/#comment-22141</guid>
		<description>its been 2 years since i wrote this code, i&#039;m not sure if the method i used id still has validity.

I will check google help and update the modified code, then get back to your on this.</description>
		<content:encoded><![CDATA[<p>its been 2 years since i wrote this code, i&#8217;m not sure if the method i used id still has validity.</p>
<p>I will check google help and update the modified code, then get back to your on this.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
