https://github.com/firstandthird/hapi-referrer
Tracks referrers
https://github.com/firstandthird/hapi-referrer
hapi-plugin
Last synced: 4 months ago
JSON representation
Tracks referrers
- Host: GitHub
- URL: https://github.com/firstandthird/hapi-referrer
- Owner: firstandthird
- License: mit
- Created: 2017-12-26T19:42:16.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2023-01-07T22:19:48.000Z (over 3 years ago)
- Last Synced: 2025-03-04T09:40:25.757Z (about 1 year ago)
- Topics: hapi-plugin
- Language: JavaScript
- Size: 332 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
hapi-referrer
Hapi plugin to log referrers from search/ads/social/etc
## Installation
```sh
npm install hapi-referrer
```
_or_
```sh
yarn add hapi-referrer
```
## Options:
- `cookieName` - Name of the cookie to be set
- `ttl` - cookie expiration, defaults to 30 days
- `domains` - array of domains. Domains in the list will not have their referrer set
- `ignoredPaths` - array of paths. Paths set here wont have cookies set. Note, applies to all paths matching the text. Example: `/public` would also block `/public/css/common.css`
- `verbose` - Enable debug logging when cookie set
---
_A [First + Third](https://firstandthird.com) Project_