@cocomo/pixel
v1.0.0
Published
A JavaScript tracking pixel for collecting visitor data.
Downloads
6
Readme
Cocomo Pixel
A JavaScript tracking pixel for collecting visitor data.
Installation
npm install @cocomo/pixel
# or
yarn add @cocomo/pixel
Usage
As a Module
import "@cocomo/pixel";
As a Script
<script src="https://unpkg.com/@cocomo/pixel"></script>
Manual Tracking
If you need to manually trigger the tracking, you can use the track
function:
import Pixel from "@cocomo/pixel";
Pixel.track();