
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
jk-analytics
Advanced tools
"I am a log maker, so I write logs JIKE by JIKE."
$ npm i jk-analytics
<script id="jka-providers"
data-google="UA-3318xxxx-1"
data-sensors="USER-4e7020cb"
></script>
Set the userId
on the tracker:
JKA.setUser(userId, userData)
// Set the current page, default value of the 'page' field while invoking JKA.event(options)
JKA.setCurrentPage('Home Page')
JKA.pageview({
title: 'My Overridden Page', // Required.
page: '/my-overridden-page' // Required. This value should start with a slash (/) character.
})
Event Options Table (analogous to GA) :
Name | Required | Description |
---|---|---|
page | yes | The name of the page/activity (e.g. About Page ) |
action | yes | The type of interaction (e.g. View Sune's Portfolio ) |
label | no | Useful for extra infos (e.g. Junior Frontend Developver ) |
You can call the event function to track an event:
JKA.event({
page: 'Download Page',
action: 'Download Jike app',
label: 'Superhero button'
})
Or, easily add data-jka="{}"
to a DOM element as:
<button data-jka="{
page: 'Download Page',
action: 'Download Jike app',
label: 'Superhero button'
}">Download App</button>
To automatically log event options
, you can use the debug
mode:
JKA.enableDebug()
FAQs
I am a log maker, so I write logs JIKE by JIKE.
We found that jk-analytics demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.