<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Rant first, think later. comments on Simplifying App Store Sales Trends</title>
    <link>http://nicholaswright.org/blog/</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Rant first, think later. comments</description>
    <item>
      <title>"Simplifying App Store Sales Trends" by abica</title>
      <description>&lt;p&gt;One of the things I was most looking forward to when I first began writing iphone apps was to see what sort of awesome tools apple would have for me to use to track my sales and trends.&lt;/p&gt;


	&lt;p&gt;So far I actually couldn&amp;#8217;t be more disappointed by what&amp;#8217;s on offer. Maybe I&amp;#8217;ve just gotten spoiled by things like google analytics, but it&amp;#8217;s very weird that everything is in a dry table view with no graphs or pretty charts whatsoever. No sorting or grouping, even! Perhaps I&amp;#8217;m supposed to use excel or something. Maybe later on I will.&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;ve also found it a bit annoying that none of the data is in realtime. Currently the only thing I&amp;#8217;m actually able to use is the daily sales and trend reports. What I&amp;#8217;ve been doing is downloading the report once a day and sticking those reports into a folder.&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;ve also whipped up a quick ruby function to give me fast totals of how many of my apps have been downloaded, by country and by total. I&amp;#8217;ve been running this from irb inside my reports directory:&lt;/p&gt;


&lt;pre&gt;
require 'fastercsv'
def sum_report
  reports = Dir[ "*" ].map{ | r | FasterCSV.table( r, :col_sep =&amp;gt; "\t" ) }
  reports.inject( {} ) do | hsh, report |
    report.each do | line |
      key = line[ :vendor_identifier ]
      hsh[ key ] ||= { :total_sold =&amp;gt; 0, :totals_by_country =&amp;gt; {} }
      hsh[ key ][ :total_sold ] += line[ :units ]

      country =  line[ :country_code ] 
      hsh[ key ][ :totals_by_country ][ country ] ||= 0
      hsh[ key ][ :totals_by_country ][ country ] += line[ :units ]
    end
    hsh
  end
end
&lt;/pre&gt;

	&lt;p&gt;Since the monetary totals included in the reports factor in currency types, and since handling currency conversion is annoying, I just generate my little report and then I manually multiply the units by my store price. This is easy enough now since I currently only have one paid app in the store, but down the line I&amp;#8217;m probably going to need to change how I&amp;#8217;m doing this.&lt;/p&gt;


	&lt;p&gt;I may spend some time at some point in the future getting a more sophisticated system setup, but for now this is sufficient.&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;m hoping the financial reports are better&amp;#8230;&lt;/p&gt;

</description>
      <pubDate>Sun, 15 Feb 2009 05:44:00 CST</pubDate>
      <guid>&lt;a href="/blog/articles/2009/02/15/simplifying-app-store-sales-trends"&gt;Simplifying App Store Sales Trends&lt;/a&gt;</guid>
      <link>&lt;a href="/blog/articles/2009/02/15/simplifying-app-store-sales-trends"&gt;Simplifying App Store Sales Trends&lt;/a&gt;</link>
    </item>
  </channel>
</rss>
