Skip to content

[Feature]: Finalize server-side tracking with timestamp and IP context #129

Closed

Description

@PascaleBeier

Summary

Finalize first-class server-side tracking for historical timestamp and visitor IP context.

Problem

Users importing or forwarding server-side access logs need to record pageviews and custom events with the original visit timestamp and visitor IP context. HitKeep has the beginnings of server-side tracking through the public ingest APIs and related docs, but the current POST /ingest/event endpoint is still designed around the browser tracker: it identifies the site from the Origin header, derives the client IP from the HTTP request, and stores the event time as the current server time. That makes it unsuitable for replaying historical server logs or creating accurate no-JavaScript/server-side tracking data.

Who Benefits

Self-hosted operators, managed cloud customers, and API users who want to ingest server-side access logs, edge logs, webhook-derived activity, or no-JavaScript analytics data into HitKeep.

Proposed Solution

Finish the server-side tracking implementation by adding dedicated authenticated server-side ingest endpoints for visits/pageviews and events that can accept:

  • a site identifier or token that does not depend on a browser Origin header
  • an explicit event or visit timestamp
  • a visitor IP address or trusted visitor IP context for geolocation, spam filtering, and exclusion rules
  • the same session, pageview, event name, and property payload shape used by current browser ingest where possible

Keep the existing browser /ingest and /ingest/event behavior unchanged.

User Workflow

  1. Create or choose an API client/token with permission to ingest data for a site.
  2. Send server-side log-derived pageviews or events with the original timestamp and visitor IP context.
  3. Review the resulting traffic and events in the dashboard with accurate time buckets, filters, geolocation, and existing analytics views.

Success Criteria

  • Server-side pageviews and custom events can be ingested without a browser Origin header.
  • Accepted server-side records can use an explicit RFC3339 timestamp instead of time.Now().UTC().
  • Trusted server-side ingest can apply visitor IP context without exposing this capability to the public browser endpoint.
  • Existing spam filtering, IP exclusions, privacy constraints, and tenant-aware storage continue to apply.
  • Docs and OpenAPI describe the server-side tracking contract and clearly distinguish it from browser tracker ingest.

Alternatives Considered

Users can send pageviews and custom events to the current public ingest endpoints, but those endpoints use the request IP and current server time. Event properties could carry an ip or timestamp value today, but those values would not drive HitKeep's canonical timestamp, geolocation, spam filtering, exclusion rules, or dashboard time buckets.

Additional Context

Activity

  1. added
    enhancement
    backend
    on Apr 30, 2026
  2. changed the title [-]Add server-side event ingest with timestamp and IP context[/-] [+][Feature]: Add server-side event ingest with timestamp and IP context[/+] on Apr 30, 2026
  3. changed the title [-][Feature]: Add server-side event ingest with timestamp and IP context[/-] [+]Finalize server-side tracking with timestamp and IP context[/+] on Apr 30, 2026
  4. changed the title [-]Finalize server-side tracking with timestamp and IP context[/-] [+][Feature]: Finalize server-side tracking with timestamp and IP context[/+] on Apr 30, 2026
  5. added
    ready
    on May 4, 2026
  6. added a commit that references this issue on May 5, 2026
    c3fc332
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendenhancementready

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions