Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: keen/keen-gem-example
base: 43138ffc10
...
head fork: keen/keen-gem-example
compare: 1df0d171a8
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 5 additions and 8 deletions.
  1. +0 −3  public/javascripts/app.js
  2. +5 −5 views/layout.erb
View
3  public/javascripts/app.js
@@ -1,6 +1,3 @@
-Keen.configure(this.environment.keenProjectId,
- this.environment.keenApiKey)
-
function drawVisualizations() {
new Keen.Metric("votes", {
analysisType: "count"
View
10 views/layout.erb
@@ -100,12 +100,12 @@
</div>
</div>
</div>
- <script src="https://keen_web_static.s3.amazonaws.com/code/keen-1.1.0.js" type="text/javascript"></script>
<script type="text/javascript">
- this.environment = {
- keenProjectId: "<%= ENV['KEEN_PROJECT_ID'] %>",
- keenApiKey: "<%= ENV['KEEN_API_KEY'] %>"
- }
+ var Keen=Keen||{configure:function(a,b,c){this._pId=a;this._ak=b;this._op=c},addEvent:function(a,b,c,d){this._eq=this._eq||[];this._eq.push([a,b,c,d])},setGlobalProperties:function(a){this._gp=a},onChartsReady:function(a){this._ocrq=this._ocrq||[];this._ocrq.push(a)}};
+ (function(){var a=document.createElement("script");a.type="text/javascript";a.async=!0;a.src=("https:"==document.location.protocol?"https://":"http://")+"dc8na2hxrj29i.cloudfront.net/code/keen-2.0.0-min.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)})();
+
+ // Configure the Keen object with your Project Token and API Key
+ Keen.configure("<%= ENV['KEEN_PROJECT_ID'] %>", "<%= ENV['KEEN_API_KEY'] %>");
</script>
<script src="/javascripts/app.js" type="text/javascript"></script>
</body>

No commit comments for this range

Something went wrong with that request. Please try again.