Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
8290b44e
Commit
8290b44e
authored
Oct 01, 2020
by
Magdalena Frankiewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable tracking unique visits by default
Add changelog
parent
915ac9c6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
app/helpers/analytics/unique_visits_helper.rb
app/helpers/analytics/unique_visits_helper.rb
+1
-1
changelogs/unreleased/enable-track-unique-visits-ff-by-default.yml
...s/unreleased/enable-track-unique-visits-ff-by-default.yml
+5
-0
config/feature_flags/development/track_unique_visits.yml
config/feature_flags/development/track_unique_visits.yml
+1
-1
No files found.
app/helpers/analytics/unique_visits_helper.rb
View file @
8290b44e
...
@@ -14,7 +14,7 @@ module Analytics
...
@@ -14,7 +14,7 @@ module Analytics
end
end
def
track_visit
(
target_id
)
def
track_visit
(
target_id
)
return
unless
Feature
.
enabled?
(
:track_unique_visits
)
return
unless
Feature
.
enabled?
(
:track_unique_visits
,
default_enabled:
true
)
return
unless
visitor_id
return
unless
visitor_id
Gitlab
::
Analytics
::
UniqueVisits
.
new
.
track_visit
(
visitor_id
,
target_id
)
Gitlab
::
Analytics
::
UniqueVisits
.
new
.
track_visit
(
visitor_id
,
target_id
)
...
...
changelogs/unreleased/enable-track-unique-visits-ff-by-default.yml
0 → 100644
View file @
8290b44e
---
title
:
Enable track_unique_visits feature flag by default
merge_request
:
43989
author
:
type
:
other
config/feature_flags/development/track_unique_visits.yml
View file @
8290b44e
...
@@ -4,4 +4,4 @@ introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/33146
...
@@ -4,4 +4,4 @@ introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/33146
rollout_issue_url
:
rollout_issue_url
:
group
:
group::analytics
group
:
group::analytics
type
:
development
type
:
development
default_enabled
:
fals
e
default_enabled
:
tru
e
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment