What happens when Javascript & User Experience Combine forces
@orangedrum
Are we showcasing what we think we are?
@orangedrum
"Test early and often."
@orangedrum
Hi, the Goat.
My name is Jean, and I'm going to be walking you through this session. You probably already know, but let me explain why we've asked you to come here today: We're testing a web site that we're working on to see what it's like for actual goats to use it.
I want to make it clear right away that we're testing the site, not you. You can't do anything wrong here.
We want to hear exactly what you think, so please don't worry that you're going to hurt our feelings. We want to improve it, so we need to know honestly what you think.
As we go along, I'm going to ask you to think out loud, to tell me what's going through your mind. This will help us.
If you have questions, just ask. I may not be able to answer them right away, since we're interested in how goats do when they don't have someone sitting next to them, but I will try to answer any questions you still have when we're done.
Do you have any questions before we begin?
@orangedrum
Before we look at the site, I'd like to ask you just a few quick questions.
OK, great.
We're done with the questions, and we can start looking at things.
@orangedrum
First, I'm just going to ask you to look at this page and tell me what you think it is, what strikes you about it, and what you think you would click on first.
For now, don't actually click on anything, just tell me what you would click on.
And again, as much as possible, it will help us if you can try to think out loud so we know what you're thinking about.
What would you say americangoat.com is a site for? What would you expect to find if you were to click in the different sections? (think out loud)
So ___the Goat, you have a hot date this Friday and need to find a good place to go. You may click around to find your answer.
Would you think to go to Americangoat.com to find your perfect date spot? (What are you thinking right now?)
Where would you click next?
What would you expect to see?
What would you say americangoat.com is a resource for?
@orangedrum
@orangedrum
a) quickest and easiest integration - well documented
b) stop running your own data servers
c) powerful - Data Modeling, Visualization tools
d) SDKs in all colors: JS, iOS, Android, PHP, Ruby, cURL, .NET...
e) scalable - use it however you need to
f) can change over time
g) so easy a UX Designer can use it
@orangedrum
1) Sign Up
Free to store data in Keen.io for up to 50,000 events. keen.io/signup
2) Create Project
Click giant "New Project" button. This creates a separate database to store all the things.
1) Grab the Keys
Be careful with that master key
@orangedrum
//********** Configuring Instance of Project **********//
var client = new Keen({ ...
});
//********** Listeners **********//
$( "#distraction_eyewear" ).on( "click", recordEyewear);
//********** CTAs as Data Objects **********//
function recordEyewear(){
// Create a data object with the properties you want to send
var recordEyewear = {
item: "recordEyewear",
referrer: document.referrer,
keen: {
timestamp: new Date().toISOString()
}
};
// Send it to the collection
client.addEvent("ctas", recordEyewear, function(err, res){
});
};
@orangedrum
//********** visualization **********//
Keen.ready(function(){
//goal count//
var count = new Keen.Query("count", {
eventCollection: "ctaGoal"
});
client.draw(count, document.getElementById("my_chart"), {
chartType: "metric",
title: "Total Times Goal Was Hit",
colors: ["#49c5b1"]
});
//pie chart test//
var pie_clicks = new Keen.Query("count", {
eventCollection: "ctas",
groupBy: "item"
});
client.draw(pie_clicks, document.getElementById("count-pageviews-piechart"), {
chartType: "piechart",
title: "Clicks on CTAs"
});
});
@orangedrum
Questions?