<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Daniel Cano</title>
    <description>The latest articles on DEV Community by Daniel Cano (@danimexivasco).</description>
    <link>https://dev.to/danimexivasco</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F404290%2F2977dccb-e11e-41ac-852c-3472f9eff10a.jpg</url>
      <title>DEV Community: Daniel Cano</title>
      <link>https://dev.to/danimexivasco</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/danimexivasco"/>
    <language>en</language>
    <item>
      <title>Ackee, an alternative to Google Analytics?</title>
      <dc:creator>Daniel Cano</dc:creator>
      <pubDate>Wed, 29 Jul 2020 07:34:24 +0000</pubDate>
      <link>https://dev.to/danimexivasco/ackee-an-alternative-to-google-analytics-15o8</link>
      <guid>https://dev.to/danimexivasco/ackee-an-alternative-to-google-analytics-15o8</guid>
      <description>&lt;p&gt;Hi DEV community, it's gonna be my first post so, let's do it!&lt;/p&gt;

&lt;p&gt;I was looking for a tool for analytics on my personal page, but I didn't want use Google Analytics, you know, for all the privacy and other issues with users.&lt;/p&gt;

&lt;h1&gt;
  
  
  Ackee
&lt;/h1&gt;

&lt;p&gt;After researching on the internet I found &lt;a href="https://ackee.electerious.com/"&gt;Ackee&lt;/a&gt;, and how they describe themselves:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Self-hosted, Node.js based analytics tool for those who care about privacy. Ackee runs on your own server, analyses the traffic of your websites and provides useful statistics in a minimal interface.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h1&gt;
  
  
  Self-Hosted
&lt;/h1&gt;

&lt;p&gt;In my case, to make it work I decided to deploy it in Heroku, so I created an app instance and uploaded the code to it. Ackee needs a MongoDB to work, so there are two options:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use one of Heroku add-ons for MongoDB&lt;/li&gt;
&lt;li&gt;Use MongoDB Atlas and connect with the app&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I used the second one, so if it's your case you have to put some &lt;em&gt;Config Vars&lt;/em&gt; in Heroku like ACKEE_PASSWORD, ACKEE_USERNAME, MONGODB_URI and the last but not the least important ACKEE_ALLOW_ORIGIN to enable CORS. Without this last one pointing to your site you will have troubles with CORS. &lt;/p&gt;

&lt;h1&gt;
  
  
  Implement With Gatsby
&lt;/h1&gt;

&lt;p&gt;My page is made with Gatsby so that it could work together with Ackee I needed to do one last thing, put the plugin to connect them.&lt;br&gt;
It can be done with npm or yarn:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;npm install --save gatsby-plugin-ackee-tracker&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;yarn add gatsby-plugin-ackee-tracker&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Finally, all we have to do is config the plugin in &lt;em&gt;gatsby-config.js&lt;/em&gt;, we can do it like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;plugins: [
  {
    resolve: "gatsby-plugin-ackee-tracker",
    options: {
      // Domatin ID found when adding a domain in the admin panel.
      domainId: 'YOUR_ACKEE_DOMAIN_ID',
      // URL to Server eg: "https://analytics.test.com".
      server: 'https://analytics.test.com',
      // Disabled analytic tracking when running localy
      ignoreLocalhost: true,
      // If enabled it will collect info on OS, BrowserInfo, Device  &amp;amp; ScreenSize
      detailed: false
    },
  },
]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Conclusion
&lt;/h1&gt;

&lt;p&gt;I think I end up lengthening a bit with the explanation ... But I would like to know, what do you think? Do you think it is a good alternative? Do you know other better ones? &lt;/p&gt;

&lt;p&gt;I know that it isn't so complete like Analytics or other tools but for little sites or personal pages and especially for all those who care about the privacy of their users it's a good alternative.&lt;/p&gt;

&lt;p&gt;I will be happy to read you!&lt;/p&gt;

&lt;h3&gt;
  
  
  P.S
&lt;/h3&gt;

&lt;p&gt;If you have come this far, thanks for reading the article and have a nice day!! 🤙🏽&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>gatsby</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
