项目作者: firstandthird

项目描述 :
Tracks referrers
高级语言: JavaScript
项目地址: git://github.com/firstandthird/hapi-referrer.git
创建时间: 2017-12-26T19:42:16Z
项目社区:https://github.com/firstandthird/hapi-referrer

开源协议:MIT License

下载


hapi-referrer



Test Status


Lint Status

NPM

Hapi plugin to log referrers from search/ads/social/etc

Installation

  1. npm install hapi-referrer

or

  1. 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 Project