0.0.4 • Published 5 years ago

fv-analytics v0.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Download Tracker

Track clicks of download links via Google Analytics.

Pre-Requisites

  • You will need to have Google Analytics installed for this package to work.
  • Files will need to be served from a directory of /downloads.

Installation

npm add fv-analytics

Usage

Add this to your global app.js file.

import "fv-analytics";

To start tracking downloads, add the following class name to the elements:

<a href="..." class="download">...</a>

For dynamic elements that get added to the page, you will need to add this to your click handler:

trackDownload('file name');
0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago