An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

hapi-referrer



Test Status


Lint Status

NPM

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_