-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Always show direct traffic in sources reports #2531
Conversation
Removes query param show_noref which was used from React to control whether to show Direct / None traffic or not. The show_noref behaviour was untested previously. Closes #2523
BundleMonFiles updated (1)
Unchanged files (6)
Total files change -41B 0% Final result: ✅ View report in BundleMon website ➡️ |
|
||
const detailed = this.showExtra() | ||
api.get(`/api/stats/${encodeURIComponent(site.domain)}/${this.currentFilter()}`, query, {limit: 100, page, detailed, show_noref: true}) | ||
.then((res) => this.setState({loading: false, sources: sources.concat(res), moreResultsAvailable: res.length === 100})) | ||
api.get(`/api/stats/${encodeURIComponent(site.domain)}/${this.currentFilter()}`, query, { limit: 100, page, detailed }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, the editor auto-formatted this file. Here's the real change.
showConversionRate() { | ||
return !!this.props.query.filters.goal | ||
} | ||
|
||
fetchReferrers() { | ||
if (this.props.query.filters.source) { | ||
api.get(`/api/stats/${encodeURIComponent(this.props.site.domain)}/referrers/${encodeURIComponent(this.props.query.filters.source)}`, this.props.query, {show_noref: this.showNoRef()}) | ||
api.get(`/api/stats/${encodeURIComponent(this.props.site.domain)}/referrers/${encodeURIComponent(this.props.query.filters.source)}`, this.props.query) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Real change
Removes query param show_noref which was used from React to control whether to show Direct / None traffic or not. The show_noref behaviour was untested previously.
The main visual change is that we used to not show
Direct / None
in sources list by default. It would only be shown when you clicked on 'details'. Now it's always shown:Closes #2523
Changes
Tests
Changelog
Documentation
Dark mode