Skip to content

Universal usage of the Fingerprint.js API built for Blavity's Vue & Nuxt properties

Notifications You must be signed in to change notification settings

blavity/fingerprint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Utilizes FingerprintJS API to track the fingerprint, page visited and timestamp associated with each action a user takes on all Vue & Nuxt properties.

Install

$ npm install --save blavity/fingerprint

Usage

const fingerprint = require("@blavity/fingerprint");

fingerprint(this, https://api.staging.blavity.com/v1/fingerprint, https://blavity.com/, true );

> Passes entire vueInstance into the function, will need to pass in the this keyword and it will destructure below
> Pass the endpoint in the 2nd param to keep the endpoint dynamic
> Pass the slug in the 3rd param to keep the function site agnostic
> Pass a true or false in the 4th param to affirm that you are in the development enviornment or not
> In developer tools you'll see => "your fp:  9eea5059858c3274041xjrty40f"

fingerprint(9eea5059858c3274041xjrty40f);
//=> Uncaught TypeError: This fingerprint is already taken!
//    at fingerprint (<anonymous>:2:41)
//    at <anonymous>:1:1

About

Universal usage of the Fingerprint.js API built for Blavity's Vue & Nuxt properties

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published