Skip to content

Integrating Unbounce with StatsMix Using Webhooks

Landing pages are a staple of modern Internet marketing efforts and there’s a great service called Unbounce that makes the process incredibly easy.

Unbounce landing page form

While exploring their app the other day, I noticed they offered the ability to use webhooks. If you’re unfamilar with webhooks, they allow you to push notifications from one web service to another with no extra coding.

Looking at their partners page, I was intrigued with how fast ActiveCampaign built a webhook to support Unbounce in 89 minutes. Knowing how the StatsMix API works (and some of our interesting use cases), I figured I could beat that time by about 87 minutes!

So here’s what I did with StatsMix, right “out-of-the-box”, with no additional coding on our back-end. (i.e. I did the same thing any StatsMix customer can do right now.)

  1. Created a new custom metric in StatsMix
  2. Grabbed the sample code to send a new data point to StatsMix:
    http://statsmix.com/api/v2/stats?api_key=API_KEY&value=1&profile_id=1234&metric_id=12345
  3. Pasted this link into the Unbounce webhook form field

StatsMix webook for Unbounce

And that’s it! Whenever someone submits a form on the Unbounce landing page, a value of 1 will be sent to StatsMix for that metric. So for an “Unbounce Form Submissions” metric (or whatever you want to call it), you can track this on a dashboard and/or correlate it against any other metric you’re tracking in StatsMix.

Again, this works “out-of-the-box” due to how we built the StatsMix API. The POST to the stats resource in our API is essentially a bare-bones webhook for almost any web service.

I’ll be exploring more services with webhook capabilities and writing up the results, but in the meantime let me know if you try using our API as a webhook with any other web service.

So try it out and start pushing real-time data to StatsMix with no coding using webhooks!

Categories: API, Tutorials.

Tags: ,

Control the Look and Feel of StatsMix Dashboards

Once you setup metrics and dashboards in StatsMix, you often want to control the look and feel of those reports for your team, customers, or the public.

While we’ve had some existing options to change the branding, they were limited to this point. But that’s all changed! We’ve just launched a completely updated way to change the appearance of any dashboard or metric as well as making it possible to white label them. This is especially useful you’re sharing dashboards with customers.

Here’s what we’ve added and enhanced:

  • ability to remove all StatsMix branding
  • add your own custom CSS
  • upload your own logo
  • add a custom domain
  • password protection for shared dashboards and charts

Here’s more detail on each new feature:

Remove StatsMix Branding

By default, any shared dashboard or metric is wrapped in a nicely formatted StatsMix branding. On Standard plans and higher, you can now easily remove any and all references to StatsMix and customize the look and feel using the next few options.

StatsMix branding options

Add Your Own CSS

Add your own CSS to fully customize the look and feel of any shared report. The only limit is your design skill! Contact us if you need any assistance in this area.

Upload a Logo

You can now upload a logo that can be displayed on shared dashboards or metrics.

Use a Custom Domain

The default sharing URL follows this format: www.statsmix.com/x/random_token. We now offer the abilty to use any domain in place of www.statsmix.com. For example, your shared dashboards and charts can now have a URL that looks like this: metrics.mycompany.com/x/random_token. Once again, we now allow you to fully remove all mention of StatsMix as needed.

StatsMix custom domains

Password Protection

For any shared dashboard or metric, you can now also assign a password when setting up sharing. Passwords are unique to each shared dashboard or metric, giving you full control over access.

Most of these features apply to our Pro plans and higher. You can see the full list on our pricing page.

Categories: Announcements, Features, Releases.

Tags: , , , ,

Create PDFs of Dashboards

We now offer the ability to create PDFs on the fly for any of your StatsMix dashboards.

With just a single click, you can now download a nicely formatted PDF of your dashboard.

To create a dashboard PDF, just click on the sharing icon from the dashboard view (be sure to turn on sharing for that dashboard) and select “generate dashboard”. That’s it!

Categories: Announcements, Features.

Tags: ,

StatsMix Maintenance on Thursday 11-17-11

StatsMix will have a maintenance window this Thursday evening, November 17 from 8pm – 9pm MST.

We apologize for any inconvenience, but this is necessary for us to improve our infrastructure.

All systems may be unavailable during this time, though we do not anticipate taking the entire window.

Please follow us on Twitter for any updates during the maintenance and feel free to contact us with any questions.

Categories: Announcements.

API Hackday in Boulder

Apihackday logo

We’re happy to announce StatsMix is one of the sponsors for the API Hackday in Boulder tomorrow, November 8:

API HackDay brings developers together for an all-day coding fest focused on building apps with APIs. Developers of all experience levels can share ideas, collaborate on projects, start new ventures and discover great tools and new APIs to play with.

We’ll be hacking away all day at the Microsoft Bing offices in downtown Boulder.

Registration is free and you can still sign up here: http://apihackdayboulder.eventbrite.com/

This will be a great event to meet local developers/companies and win some prizes. Hope to see you there!

Categories: API, Events.

Tags: ,

Notes on Charts in StatsMix

Often there are business activities that would be useful to view with your metrics. You’d like to see them marked or displayed on a chart to identify if there are any effects from the event or possible correlations.

You can now add a note to any metric in StatsMix, just by clicking on the chart. This will open a window that gives you the ability to add a title, description, and the date of the event. The note can also apply to just the currently viewed metric or apply across all metrics.

Notes can be calendar events or actions that happen in your business. Some examples include:

  • the CEO speaks at a conference
  • deployed a new software release
  • product launched in an app store
  • launched an advertising campaign
  • released a new feature
  • wrote a new blog post
  • a company milestone or goal

The possibilities are endless as our new notes feature is truly extensible for many different uses in your business.

Here’s a brief video to demonstrate:

We have more improvements to notes in the works, so let us know how you’re using it and what you’d like to see moving forward.

Categories: Features.

Tags: , ,

New Charting Functionality in StatsMix

We released an exciting upgrade to our charting functionality in StatsMix. Our goal was to provide more ways for our customers to dive into their data and visualize metrics in the ways that suit their business best.

New StatsMix metric charting functionality

The charting release includes these new features:

  • Compare and analyze different metrics on the same chart (outside of dashboards)
  • Chart settings are now easier to find with simplified navigation
  • When sending metadata to a metric, their display is much easier and clearer
  • Data tooltips are improved
  • Speed improvements – the charts load much faster, especially when comparing multiple series
  • Zooming in/out of data is real-time – no more having to configure and reload settings
  • Comparisons are remembered between sessions
  • More intuitive to find the API code and chart sharing

But enough text! Here’s a short demo video on our new charting:

To try this out, just sign in to StatsMix and select any of your metrics. The new charting will immediately appear.

Let us know what you think!

Categories: Features.

Tags: , ,

Heroku Integration Tutorial

Now that StatsMix is live as a Heroku add-on, I’d like to provide more details on just how easy it is to add StatsMix to a Heroku application. The following tutorial illustrates how to get started tracking metrics in your application.

In this example, I’ll create a basic Rails app from scratch and then add in metrics tracking with StatsMix.

Assuming you are already have a Heroku account (if you don’t, you can get a free one here), create a new Rails application on Heroku following these steps: http://devcenter.heroku.com/articles/rails3

Next add the StatsMix Heroku add-on (detailed documentation):

heroku addons:add statsmix

We’ll automatically populate your API key as a Heroku config variable, which will be used by the StatsMix gem.

Let’s start by assuming we’re creating a basic blogging application. The first resource we’d create is posts:

rails generate scaffold post title:string description:text author:string
rake db:migrate

Now let’s fire up the application to make sure it works:

rails server

Navigate to /posts in your browser: http://localhost:3000/posts and you should see the basic CRUD scaffolding for posts.

We can now start to implement StatsMix in this basic app. Suppose we want to track every time a new post is created in our application. Just edit the posts_controller.rb with a single line of code:

StatsMix.track('Posts Created', 1)
def create
  @post = Post.new(params[:post])
 
  respond_to do |format|
    if @post.save
 
      StatsMix.track('Posts Created', value = 1, options = {})
 
      format.html { redirect_to(@post, :notice => 'Post was successfully created.') }
      format.xml  { render :xml => @post, :status => :created, :location => @post }
    else
      format.html { render :action => "new" }
      format.xml  { render :xml => @post.errors, :status => :unprocessable_entity }
    end
  end
end

Now let’s test it out by creating a new post: http://localhost:3000/posts/new

When you create the post, the controller is sending a call to the StatsMix API using the track method included in the Ruby gem. You can check the results by signing in to your Heroku account and clicking on the name of your Heroku app.

Heroku's StatsMix Launchpad

Click the add-ons menu in upper right hand corner, then select StatsMix. You’ll be automatically signed in to your new StatsMix launchpad where your first metric is listed. In this case, the metric listed is “Posts Created”.

Click on the name of the metric (again, in this example it’s “Posts Created”) and you’ll see a data point that one post was created.

You can manage all aspects of this metric right from this view. Edit the the metric name, change the chart settings, share the chart, or manually enter or edit the raw data from here.

If you click on chart settings, you can control the date range, chart type, and the data grouping. The first two are self explanatory, but let’s discuss data grouping briefly.

StatsMix Heroku Chart Demo

The default setting is “none” — this means all the data you send will be displayed in real time. By selecting daily, weekly, monthly, or annual, StatsMix will roll up the data and display it in those time frames. So if you want to see daily groupings of your data, just select “daily”. It’s that simple.

If you don’t want to track events in development, add this to development.rb (be sure to restart your server!):

StatsMix.ignore = true

or

StatsMix.test_metric_name = "My Test Metric"

You can also download the full StatsMix/Heroku demo application from Github here: https://github.com/tmarkiewicz/statsmix-heroku-demo

Categories: API, Developers, Tutorials.

Tags: ,

Public Availability of StatsMix as a Heroku Add-on

I’m excited to announce that StatsMix is now publicly available as a Heroku add-on. After a couple months of working with Heroku and some great beta testers, we’re now live as an add-on to their platform.

If you’re not familiar with Heroku, they’re a leading cloud application platform focusing on Ruby, Ruby on Rails, Node.js, Clojure, and Java applications. Add-ons extend Heroku’s functionality by adding new features or connecting third party services (like StatsMix).

Heroku customers can now add StatsMix to their applications in minutes with just a few clicks.

If you have any applications on Heroku, give us a try!

Categories: Announcements.

Tags:

Alerts on Metrics

We launched a really useful new feature this week — alerts on metrics. StatsMix now allows you to set alerts on any of your metrics.

When your metric reaches the trigger you set, we’ll send you an email with the details and actionable links.

Here’s a brief video demonstrating how easy it is to set up an alert:

Our current alert options include:

  • Metric hits an all-time high
  • Metric hits an all-time low
  • Metric increased by percent or amount
  • Metric decreased by percent or amount
  • Metric went higher than a value
  • Metric went lower than a value

If there are important metrics you need notifications on (we all have some), you can now monitor it with our alerts.

Try setting up some alerts today and let us know what you think!

Categories: Features.

Tags: ,