Obviously you need dashing first: shopify.github.com/dashing/.
Here is a screenshot of the result:
I went with a blue background and used the comment icon, obviously you can change this… The code is as follows:
In your dashboard.erb:
You just need to add in your disqus secret application key from here: http://disqus.com/api/applications/. If you don’t have one, create an application and then you will have one.
If you get more or less comments than me, you can tweak this line:
timestamp = Date.new(Date.today.year, Date.today.month, 1 ).to_time.to_i
for example, today:
timestamp = Date.new(Date.today.year, Date.today.month, Date.today.day ).to_time.to_i
or whatever you want it to be.
If you get comments more often you could also tweak how often it goes. Be aware of the 1000 calls per hour limit that disqus has on the api.