Skip to content
This repository has been archived by the owner on Oct 18, 2019. It is now read-only.

Commit

Permalink
fix for typo in $google_analytics_key
Browse files Browse the repository at this point in the history
  • Loading branch information
msaffitz committed Nov 25, 2011
1 parent 7601e72 commit 58bdd42
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions landingpad.rb
Expand Up @@ -11,16 +11,16 @@ class LandingPad < Sinatra::Base


configure do configure do
# Admin settings - used to access contacts # Admin settings - used to access contacts
$admin_acct_name = 'admin' $admin_acct_name = 'admin'
$admin_acct_passwd = 'admin' $admin_acct_passwd = 'admin'

# Page settings - used to configure your landing page # Page settings - used to configure your landing page
$page_title = 'LandingPad.rb | Just add water landing pages' $page_title = 'LandingPad.rb | Just add water landing pages'
$app_title = 'LandingPad.rb' $app_title = 'LandingPad.rb'
$app_summary = 'Get a page up and running in minutes and $app_summary = 'Get a page up and running in minutes and
start collecting contacts immediately!' start collecting contacts immediately!'
#your google analyics tracking key, if applicable #your google analyics tracking key, if applicable
$google_analyics_key = 'UA-XXXXXX-X' $google_analytics_key = 'UA-XXXXXX-X'


$bg_color = '#2B2F3D' $bg_color = '#2B2F3D'
$app_title_color = '#FFFFFF' $app_title_color = '#FFFFFF'
Expand All @@ -47,7 +47,7 @@ def authorized?
@auth.provided? && @auth.basic? && @auth.credentials && @auth.credentials == [$admin_acct_name, $admin_acct_passwd] @auth.provided? && @auth.basic? && @auth.credentials && @auth.credentials == [$admin_acct_name, $admin_acct_passwd]
end end
end end

get '/' do get '/' do
erb :index erb :index
end end
Expand All @@ -69,7 +69,7 @@ def authorized?
"type" => contact_type, "type" => contact_type,
"referer" => request.referer, "referer" => request.referer,
} }

$collection.insert(doc) $collection.insert(doc)
{"success" => true, "type" => contact_type}.to_json {"success" => true, "type" => contact_type}.to_json
end end
Expand Down
2 changes: 1 addition & 1 deletion views/index.erb
Expand Up @@ -67,7 +67,7 @@


<script type="text/javascript"> <script type="text/javascript">
var _gaq = _gaq || []; var _gaq = _gaq || [];
_gaq.push(['_setAccount', <%= $google_analytics_key %>]); _gaq.push(['_setAccount', '<%= $google_analytics_key %>']);
_gaq.push(['_trackPageview']); _gaq.push(['_trackPageview']);


(function() { (function() {
Expand Down

0 comments on commit 58bdd42

Please sign in to comment.