<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by @marcoramires on Medium]]></title>
        <description><![CDATA[Stories by @marcoramires on Medium]]></description>
        <link>https://medium.com/@marcoramires?source=rss-500af4719336------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*nDEPA4YSQ10Kle1m9Ys60A.png</url>
            <title>Stories by @marcoramires on Medium</title>
            <link>https://medium.com/@marcoramires?source=rss-500af4719336------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 19:47:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@marcoramires/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Google Analytics Real-Time + App Engine + Slack]]></title>
            <link>https://medium.com/@marcoramires/google-analytics-real-time-app-engine-slack-e22582f16923?source=rss-500af4719336------2</link>
            <guid isPermaLink="false">https://medium.com/p/e22582f16923</guid>
            <category><![CDATA[slack]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[google-analytics]]></category>
            <category><![CDATA[google-app-engine]]></category>
            <dc:creator><![CDATA[@marcoramires]]></dc:creator>
            <pubDate>Thu, 14 Jul 2016 07:14:38 GMT</pubDate>
            <atom:updated>2016-07-14T07:36:40.606Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UNigxwh_vQQYqw_qO2MMuw.png" /></figure><p>I have been looking for a <strong>simple</strong> Google Analytics and Slack integration for a while. The ones I found were either too complex or not doing what I really wanted to do.</p><p>We needed a real time notification for when we had a large number of active users in our website. Google Analytics provides standard alarms and it’s not real-time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fYzRSW6b_kbQJMQqAee_SQ.png" /><figcaption>e.g. Slack Bot Message</figcaption></figure><h4>The Solution</h4><p>The solution consists in a simple <strong>Python</strong> script which is executed via Google App Engine Cron job.</p><p><a href="https://github.com/marcoramires/analytics-gae-slack">marcoramires/analytics-gae-slack</a></p><ol><li>You will need to create a new project on <strong>Google Cloud Platform</strong><br><a href="https://cloud.google.com/compute/docs/projects">https://cloud.google.com/compute/docs/projects</a></li><li>Once you have the project up and running, make sure the <strong>Analytic API</strong> is enabled.<br><a href="https://console.cloud.google.com/apis/api/analytics/overview">https://console.cloud.google.com/apis/api/analytics/overview</a></li><li>Sign up your application to <strong>Google Analytics Real Time Reporting API</strong><br><a href="https://developers.google.com/analytics/devguides/reporting/realtime/v3/">https://developers.google.com/analytics/devguides/reporting/realtime/v3/</a></li><li>Create a Project API credential or Service account<br><a href="https://console.cloud.google.com/apis/credentials">https://console.cloud.google.com/apis/credentials</a> <a href="https://console.cloud.google.com/iam-admin/serviceaccounts">https://console.cloud.google.com/iam-admin/serviceaccounts</a><br><em>Create credentials &gt; Service Account Key &gt; Service account (your project)<br></em>Select JSON and ‘create’ button.</li><li>A new JSON private key will be generated and automatically downloaded to your computer.<br><em>New private key<br>your-project.json has been saved on your computer. This is the only copy of the key, so store it securely.</em></li><li>Save this key to the project root folder and rename it as needed.</li><li>Go to Slack and create a ‘<strong><em>bot user’</em></strong> if you don’t have one yet.<br><a href="https://my.slack.com/services/new/bot">https://my.slack.com/services/new/bot</a><br>It will generate an authorisation token for the new user</li><li>Add an new file to the project with your Slack authorisation token.</li></ol><pre>e.g. _slack-key.json<br>{<br>  “token”: “&lt;slack token&gt;”<br>}</pre><p>At this point you should be able to run the project following the README instructions.</p><p><a href="https://github.com/marcoramires/analytics-gae-slack/blob/master/README.md">marcoramires/analytics-gae-slack</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e22582f16923" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Time Machine]]></title>
            <link>https://medium.com/@marcoramires/time-machine-acecbce51aab?source=rss-500af4719336------2</link>
            <guid isPermaLink="false">https://medium.com/p/acecbce51aab</guid>
            <dc:creator><![CDATA[@marcoramires]]></dc:creator>
            <pubDate>Mon, 08 Dec 2014 12:06:01 GMT</pubDate>
            <atom:updated>2014-12-08T12:46:48.031Z</atom:updated>
            <content:encoded><![CDATA[<p>I open the door and you’re right in front of me<br>Oh honey I can’t tell where you have been<br>Many stories I am sure you have<br>Let’s go back in time with this machine</p><p>We gotta go back<br>We gotta go back<br>Free your mind…</p><p>We gotta go back<br>We gotta go back<br>Free your mind…</p><p>I will hold your hand but it is time to go<br>And here I am… knocking at your door<br>Oh honey I can’t tell where I’ve been<br>Let’s go back in time with this machine</p><p>We gotta go back<br>We gotta go back<br>Free your mind…</p><p>We gotta go back<br>We gotta go back<br>Free your mind…</p><p>Credit Image:<br>The Verge -<a href="http://www.lightfarmbrasil.com/br/imagem/fantasia/the-verge-3/">http://www.lightfarmbrasil.com/br/imagem/fantasia/the-verge-3/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=acecbce51aab" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>