From 25b80ad2e1a487e9a98fc2dda29df26cc36f96eb Mon Sep 17 00:00:00 2001 From: Ufuk Kayserilioglu Date: Tue, 12 Jan 2016 19:00:13 +0200 Subject: [PATCH] Allow build but not deploy without a valid GA ID --- config.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.rb b/config.rb index 7ed68fe..4f6b35b 100644 --- a/config.rb +++ b/config.rb @@ -80,7 +80,7 @@ end activate :google_analytics do |ga| # 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) ga.development = false @@ -94,7 +94,7 @@ activate :deploy do |deploy| # deploy.branch = 'custom-branch' # default: gh-pages # 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` -end +end if ENV['ANALYTICS_ID'] helpers do def themes