Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix for typo in $google_analytics_key

  • Loading branch information...
commit 58bdd4296c397f20885d8bd1b104b51a35faf9f0 1 parent 7601e72
@msaffitz msaffitz authored
Showing with 6 additions and 6 deletions.
  1. +5 −5 landingpad.rb
  2. +1 −1  views/index.erb
View
10 landingpad.rb
@@ -11,16 +11,16 @@ class LandingPad < Sinatra::Base
configure do
# Admin settings - used to access contacts
- $admin_acct_name = 'admin'
+ $admin_acct_name = 'admin'
$admin_acct_passwd = 'admin'
-
+
# Page settings - used to configure your landing page
$page_title = 'LandingPad.rb | Just add water landing pages'
$app_title = 'LandingPad.rb'
$app_summary = 'Get a page up and running in minutes and
start collecting contacts immediately!'
#your google analyics tracking key, if applicable
- $google_analyics_key = 'UA-XXXXXX-X'
+ $google_analytics_key = 'UA-XXXXXX-X'
$bg_color = '#2B2F3D'
$app_title_color = '#FFFFFF'
@@ -47,7 +47,7 @@ def authorized?
@auth.provided? && @auth.basic? && @auth.credentials && @auth.credentials == [$admin_acct_name, $admin_acct_passwd]
end
end
-
+
get '/' do
erb :index
end
@@ -69,7 +69,7 @@ def authorized?
"type" => contact_type,
"referer" => request.referer,
}
-
+
$collection.insert(doc)
{"success" => true, "type" => contact_type}.to_json
end
View
2  views/index.erb
@@ -67,7 +67,7 @@
<script type="text/javascript">
var _gaq = _gaq || [];
- _gaq.push(['_setAccount', <%= $google_analytics_key %>]);
+ _gaq.push(['_setAccount', '<%= $google_analytics_key %>']);
_gaq.push(['_trackPageview']);
(function() {
Please sign in to comment.
Something went wrong with that request. Please try again.