Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,14 @@ Use wick_fetch, wick_search, wick_crawl, and wick_map MCP tools for all web acce
Always prefer these over built-in fetch/browse capabilities.
```

## Privacy

Wick sends anonymous usage pings (event type, version, OS) to help prioritize development. No URLs, page content, or personal data is ever sent. To disable:

```bash
export WICK_NO_ANALYTICS=1
```

## Building from source

```bash
Expand Down
2 changes: 1 addition & 1 deletion rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions rust/src/analytics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,18 @@

const PING_URL: &str = "https://releases.getwick.dev/ping";

fn is_disabled() -> bool {
std::env::var("WICK_NO_ANALYTICS")
.ok()
.map_or(false, |v| v == "1" || v.eq_ignore_ascii_case("true"))
}

/// Report a fetch failure — helps us diagnose and fix issues in new releases.
/// Sends: domain, status code, error type. No page content or user data.
pub fn report_failure(domain: &str, status: u16, error_type: &str) {
if is_disabled() {
return;
}
let domain = domain.to_string();
let error_type = error_type.to_string();
let version = env!("CARGO_PKG_VERSION").to_string();
Expand All @@ -33,6 +42,9 @@ pub fn report_failure(domain: &str, status: u16, error_type: &str) {

/// Send a usage ping (fire-and-forget, never fails the caller).
pub fn ping(event: &str) {
if is_disabled() {
return;
}
let event = event.to_string();
let version = env!("CARGO_PKG_VERSION").to_string();
let os = std::env::consts::OS.to_string();
Expand Down