![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@lidofinance/analytics-matomo
Advanced tools
Matomo analytics. You can read about Matomo there.
yarn add @lidofinance/analytics-matomo
Module does not send matomo event if cookie forbids.
If you need to send matomo event, you should set cookie with one of key:
and cookie value must be 'yes'.
document.cookie = 'cookie-allowed=yes'
window
contains __env__
;window.__env__
contains matomoHost
something like window.__env__.matomoHost='https://matomo.somedomain.com/'
;@lidofinance/analytics-matomo
, for example:import { trackEvent } from '@lidofinance/analytics-matomo'
If you can't provide matomoHost
to window.__env__
see Variant 2
.
initMatomo
from @lidofinance/analytics-matomo
;initMatomo
with parameter matomoHost: string
like below:import { initMatomo } from '@lidofinance/analytics-matomo'
initMatomo('https://matomo.somedomain.com/')
// some code
You can also pass any matomo configuration as a second argument
initMatomo('https://matomo.somedomain.com/', [
// enable option
['option', true],
['option'],
// disable option
['option', false],
// enable and customize option
['option', 'value'],
])
import { callMatomo, trackEvent, wrapWithEventTrack } from '@lidofinance/analytics-matomo'
const matomoSomeEvent: MatomoEventType = [
'Some_Stacking_Widget',
'Push "Some" button',
'some_widget_some_button_clicked',
]
// Variant 1
callMatomo('trackEvent', ...matomoSomeEvent)
// Variant 2
trackEvent(...matomoSomeEvent)
// Variant 3: through the decorator
const someHandler = wrapWithEventTrack(matomoSomeEvent, (arg1, arg2) => {
// some function
})
someHandler('some_value1', 'some_value2')
FAQs
Matomo analytics
The npm package @lidofinance/analytics-matomo receives a total of 114 weekly downloads. As such, @lidofinance/analytics-matomo popularity was classified as not popular.
We found that @lidofinance/analytics-matomo demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.