diff options
Diffstat (limited to 'lib/product_analytics/tracker.rb')
-rw-r--r-- | lib/product_analytics/tracker.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/product_analytics/tracker.rb b/lib/product_analytics/tracker.rb new file mode 100644 index 00000000000..d4a88b879f0 --- /dev/null +++ b/lib/product_analytics/tracker.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module ProductAnalytics + class Tracker + # The file is located in the /public directory + URL = Gitlab.config.gitlab.url + '/-/sp.js' + + # The collector URL minus protocol and /i + COLLECTOR_URL = Gitlab.config.gitlab.url.sub(/\Ahttps?\:\/\//, '') + '/-/collector' + end +end |