Skip to content

Instantly share code, notes, and snippets.

@prsanjay
Last active June 3, 2018 14:35
Show Gist options
  • Save prsanjay/dc7a99e3922ebd5aac9b144ed4fec73c to your computer and use it in GitHub Desktop.
Save prsanjay/dc7a99e3922ebd5aac9b144ed4fec73c to your computer and use it in GitHub Desktop.
Event record created via Ahoy gem
2.5.1 :006 > Ahoy::Visit.first
Ahoy::Visit Load (1.1ms) SELECT "ahoy_visits".* FROM "ahoy_visits" ORDER BY "ahoy_visits"."id" DESC LIMIT $1 [["LIMIT", 1]]
=> #<Ahoy::Visit id: 1, visit_token: "d1dec227-ecd8-4052-bd45-ba7f5ac162b8", visitor_token: "76afdd83-5dc8-43a6-8dc8-21bf43ae247b",
user_id: nil, ip: "127.0.0.1", user_agent: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36...", referrer: nil,
referring_domain: nil, landing_page: "http://localhost:3000/", browser: "Chrome", os: "GNU/Linux", device_type: "Desktop",
country: nil, region: nil, city: nil, utm_source: nil, utm_medium: nil, utm_term: nil, utm_content: nil, utm_campaign: nil,
started_at: "2018-06-03 14:23:49">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment