1.0.0 • Published 12 months ago
@justeat/f-trak v1.0.0
f-trak
:bear:
Setup
Add f-trak
to your project:
yarn add @justeat/f-trak
Then, 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
12 months ago
0.7.1
5 years ago
0.7.0
5 years ago
0.7.1-alpha
6 years ago
0.7.0-alpha
6 years ago
0.6.0
6 years ago
0.5.0
6 years ago
0.4.0
6 years ago
0.3.0
7 years ago
0.2.0
7 years ago