<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Markdown on Wimpy's World</title><link>https://blog.wimpys.world/tags/markdown/</link><description>Recent content in Markdown on Wimpy's World</description><generator>Hugo -- gohugo.io</generator><language>en-gb</language><managingEditor>martin@wimpress.com (Martin Wimpress)</managingEditor><webMaster>martin@wimpress.com (Martin Wimpress)</webMaster><lastBuildDate>Fri, 26 Oct 2012 16:39:00 +0000</lastBuildDate><atom:link href="https://blog.wimpys.world/tags/markdown/rss.xml" rel="self" type="application/rss+xml"/><item><title>GitHub Analytics</title><link>https://blog.wimpys.world/posts/github-analytics/</link><pubDate>Fri, 26 Oct 2012 16:39:00 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/github-analytics/</guid><description>&lt;p&gt;As I mentioned in a previous post we are prepairing to &lt;a href="2012-10-migrating-bzr-to-git.html"&gt;migrate our Bazaar
repositories to Git&lt;/a&gt;, or more
precisely to &lt;a href="https://github.com"&gt;GitHub&lt;/a&gt;. This migration also heralds the
Open Source releases of many of the core technologies we&amp;rsquo;ve been developing at
&lt;a href="http://www.flightdataservices.com"&gt;Flight Data Services&lt;/a&gt; for the last few years.&lt;/p&gt;
&lt;p&gt;I want to track visits for our GitHub projects. A bit of Googling turned up
&lt;a href="http://githalytics.com/"&gt;githalytics&lt;/a&gt; which enables you to track visits and
page views for your GitHub projects using
[http://www.google.com/analytics/](Google Analytics).&lt;/p&gt;
&lt;p&gt;To use it, create a new Google Analytics property ID for your GitHub project,
head over to &lt;a href="http://githalytics.com/"&gt;http://githalytics.com/&lt;/a&gt; and complete the web form. You&amp;rsquo;ll be
provided a &lt;a href="http://daringfireball.net/projects/markdown/"&gt;Markdown&lt;/a&gt; snippet to
insert in your projects &lt;code&gt;README.md&lt;/code&gt;. It will look something like this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-markdown" data-lang="markdown"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[&lt;span class="nt"&gt;![githalytics.com alpha&lt;/span&gt;](&lt;span class="na"&gt;https://cruel-carlota.pagodabox.com/0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f &amp;#34;githalytics.com&amp;#34;&lt;/span&gt;)](http://githalytics.com/YourGitHubName/YourGitHubProject)
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Add the snippet to &lt;code&gt;README.md&lt;/code&gt; and push the changes. When someone visits your
GitHub project page, the visit will be tracked. Great!&lt;/p&gt;
&lt;p&gt;However, we write all our documentation using
&lt;a href="http://docutils.sourceforge.net/rst.html"&gt;reStructuredText&lt;/a&gt;. But after a
quick Twitter and email exchange with Dimitrios from githalytics and I had
a reStructuredText snippet. It looks something like this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-rest" data-lang="rest"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;image:: https://cruel-carlota.pagodabox.com/0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f&lt;span class="err"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; :alt: githalytics.com&lt;span class="err"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; :target: http://githalytics.com/YourGitHubName/YourGitHubProject&lt;span class="err"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Same drill, except add this snippet to &lt;code&gt;README.rst&lt;/code&gt; and push the changes.&lt;/p&gt;
&lt;p&gt;So there you have it, Google Analytics tracking of your GitHub project landing
page. If you have more than one project, create a Google Analytics property ID
and githalytics tracking snippet for each project.&lt;/p&gt;
&lt;h4 id="references"&gt;References&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://githalytics.com/"&gt;http://githalytics.com/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://githalytics.tumblr.com/"&gt;http://githalytics.tumblr.com/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://coderwall.com/team/githalytics"&gt;http://coderwall.com/team/githalytics&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://stackoverflow.com/questions/4376560/add-google-analytics-to-github-wiki-pages"&gt;http://stackoverflow.com/questions/4376560/add-google-analytics-to-github-wiki-pages&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>How to add Google Analytics to GitHub projects.</summary></item></channel></rss>