title: How to display location of users using ChartKick, Ahoy and Geocoding in Rails 5?
body: <p>I'm currently creating a website and I'd like to gather some metrics about users habits. I'm using the Ahoy gem to track visits and events and ChartKick to display the metircs. </p>
  
  <p>So after looking up the documentation, I added this </p>
  
  <pre><code> = geo_chart Ahoy::Visit.group(:country).count
  </code></pre>
  
  <p>I then needed to get some form of charting library so I imported Google's</p>
  
  <pre><code> %script{:type =&gt; "text/javascript", :src =&gt; "https://www.gstatic.com/charts/loader.js"}
  </code></pre>
  
  <p>Now when I go on to the page, I see a map displayed, but it shows no countries</p>
  
  <p><a href="https://i.stack.imgur.com/IA3I6.png" rel="nofollow noreferrer">Image of chart</a></p>
  
  <p>In my database I have a visit which I've added an IP, country and city name to. I would've thought that this would show up on the map, but it doesn't</p>