Skip to content
A

Ahoy.js

Simple, powerful JavaScript analytics

by ankaneFree

#2300in Productivity
0In stores

Description

Ahoy.js is a small JavaScript library for tracking visits and events on a website, and it works with any backend. When someone lands on a pa…

Highlights

  • Tracks unique visitors and visits
  • Custom events with names and properties
  • Automatic page view, click and submit tracking
  • Visit and visitor tokens with set expiry times
  • Works with any backend, with a Rails gem available

Ratings & Reviews

No ratings yet

Be the first to rate Ahoy.js.

People also visit

A

Ahoy

Simple, powerful, first-party analytics for Rails

Productivity
Launch
A

Analytics

Lightweight analytics abstraction layer for tracking page views, custom events

Productivity
Launch
S

Snowplow Javascript Tracker

Snowplow event tracker for client-side and server-side JavaScript

Productivity
Launch
F

Freshlytics

Open source privacy-friendly analytics

Productivity
Launch
B

Betterlytics

GDPR-compliant web analytics with real-time insights, session replay

Productivity
Launch
A

Aptabase

Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web apps

Productivity
Launch

Ahoy.js FAQ

What is Ahoy.js?

A JavaScript library for visit and event tracking on a website, designed to work with any backend.

How does it count visitors?

Each visitor gets a visitor token that lasts 2 years, and each visit gets a visit token that expires after 4 hours, so a new visit starts after that.

How do I install it?

Download ahoy.js and include it on the page, or install it with Yarn and import it.

What does the server receive?

A POST to /ahoy/visits with the visit token, visitor token, referrer and landing page, and a POST to /ahoy/events for custom events.

Is it for Rails only?

No. The README says it works with any backend and points to the separate Ahoy gem for Rails apps.

What are the best Ahoy.js alternatives?

Popular alternatives to Ahoy.js include Ahoy, Analytics and Snowplow Javascript Tracker. See all Ahoy.js alternatives

Developer Stuff

Badges