A Dashing widget to display email campaign information using the Mailchimp API and Gibbon
To use this widget, copy mailchimp.coffee
, mailchimp.html
, and mailchimp.scss
into the /widgets/mailchimp
directory of your Dashing app. This directory does not exist in new Dashing apps, so you may have to create it. Copy the mailchimp.rb
file into your /jobs
folder, and include the Gibbon gem in your Gemfile
. Edit the mailchimp.rb
file to include your Mailchimp API key and, optionally, your Mailchimp campaign id.
To include the widget in a dashboard, add the following to your dashboard layout file:
#####dashboards/sample.erb
...
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="mailchimp" data-view="Mailchimp" data-title="Mailchimp Campaign"></div>
</li>
...