1.0.0 • Published 1 year ago
@justeat/f-trak v1.0.0
f-trak :bear:
Setup
Add f-trak to your project:
yarn add @justeat/f-trakThen, inside your script import the module such that:
import Trak from '@justeat/f-trak';Usage
Event Throttling
Throttles events by a given timeout (in seconds) using the event action as a key.
For example
<!-- Set event throttling to 1 minute -->
<button
data-trak='{
"trakEvent": "click",
"category": "My test category",
"action": "My test action",
"label": "My test label"
"throttle": 60
}'
>
My Test Button
</button>Contribution notes
If you use Volta, compatible node and yarn versions will be automatically used. If not, please install the versions found in the volta config in package.json.
For testing with other applications, I found yalc@1.0.0-pre.35 to work. The latest version of yalc gave "primordials is not defined" when it ran the prepare script.
1.0.0
1 year ago
0.7.1
6 years ago
0.7.0
6 years ago
0.7.1-alpha
7 years ago
0.7.0-alpha
7 years ago
0.6.0
7 years ago
0.5.0
7 years ago
0.4.0
7 years ago
0.3.0
8 years ago
0.2.0
8 years ago