Allow build but not deploy without a valid GA ID

This commit is contained in:
Ufuk Kayserilioglu committed 2016-01-12 21:30:46 +02:00
1 parent cef3aad95a
commit 25b80ad2e1
1 file changed
+2 -2
+2 -2
View File
@@ -80,7 +80,7 @@ end
activate :google_analytics do |ga| activate :google_analytics do |ga|
# Property ID (default = nil) # Property ID (default = nil)
ga.tracking_id = ENV['ANALYTICS_ID'] ga.tracking_id = ENV['ANALYTICS_ID'] || 'TEST_GA_TRACKING_ID'
# Tracking in development environment (default = true) # Tracking in development environment (default = true)
ga.development = false ga.development = false
@@ -94,7 +94,7 @@ activate :deploy do |deploy|
# deploy.branch = 'custom-branch' # default: gh-pages # deploy.branch = 'custom-branch' # default: gh-pages
# deploy.strategy = :submodule # commit strategy: can be :force_push or :submodule, default: :force_push # deploy.strategy = :submodule # commit strategy: can be :force_push or :submodule, default: :force_push
# deploy.commit_message = 'custom-message' # commit message (can be empty), default: Automated commit at `timestamp` by middleman-deploy `version` # deploy.commit_message = 'custom-message' # commit message (can be empty), default: Automated commit at `timestamp` by middleman-deploy `version`
end end if ENV['ANALYTICS_ID']
helpers do helpers do
def themes def themes