![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.
@arcxmoney/analytics
Advanced tools
`ArcxAnalyticsSdk` is a wrapper for [ARCx Analytics API](https://docs.arcx.money/#tag--analytics). It aims at increasing the usability and simplicity of our API.
ArcxAnalyticsSdk
is a wrapper for ARCx Analytics API. It aims at increasing the usability and simplicity of our API.
const arcxAnalyticsSdk = await ArcxAnalyticsSdk.init(YOUR_API_KEY)
await arcxAnalyticsSdk.event('EXAMPLE_EVENT', {
attribute: 'random',
anotherAttribute: 'value',
})
npm install @arcxmoney/analytics
yarn add @arcxmoney/analytics
init
This function is used to initialize the ArcxAnalyticsSdk
instance. An api key
is is required to invoke it, simply contact us and we'll be happy to provide you one and start our collaboration.
init
takes two arguments:
Example:
import { ArcxAnalyticsSdk } from '@arcxmoney/analytics'
...
await arcxAnalyticsSdk = await ArcxAnalyticsSdk.init(
YOUR_API_KEY,
{
trackPages: true, // default - automatically trigger PAGE event if the url changes after click
cacheIdentity: true, // default - caches identity of users in their browser's local storage
}
)
event
Save a custom event
in order to be analysed by the ARCx Team.
Example:
import { ArcxAnalyticsSdk } from '@arcxmoney/analytics'
...
await arcxAnalyticsSdk = await ArcxAnalyticsSdk.init(YOUR_API_KEY)
await arcxAnalyticsSdk.event(
'EXAMPLE_EVENT',
{
attribute: 'random',
anotherAttribute: 'value',
},
)
page
Save a standardized event
to track changes on a given page.
Example:
import { ArcxAnalyticsSdk } from '@arcxmoney/analytics'
...
await arcxAnalyticsSdk = await ArcxAnalyticsSdk.init(YOUR_API_KEY)
await arcxAnalyticsSdk.page(
'EXAMPLE_EVENT',
{
url: 'https://target.url',
},
)
transaction
Save a standardized event
to track executed Web3 transactions.
Example:
import { ArcxAnalyticsSdk } from '@arcxmoney/analytics'
...
await arcxAnalyticsSdk = await ArcxAnalyticsSdk.init(YOUR_API_KEY)
await analyticsSdk.transaction(
transactionType, // required(string) - type of trasaction e.g. 'SWAP', 'STAKE'...
transactionHash, // optional(string) - hash of the transaction
attributes, // optional(object) - additional information about the transaction
)
connectWallet
Save a standardized event
to track connections to wallets.
Example:
import { ArcxAnalyticsSdk } from '@arcxmoney/analytics'
...
await arcxAnalyticsSdk = await ArcxAnalyticsSdk.init(YOUR_API_KEY)
await analyticsSdk.connectWallet({
account: '0x1234',
chain: '1',
})
FAQs
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) [![npm version](https://badge.fury.io/js/@arcxmoney%2Fanalytics.svg)](https://badge.fury.io/js/@arcxmoney%2Fanalytics) [![seman
The npm package @arcxmoney/analytics receives a total of 0 weekly downloads. As such, @arcxmoney/analytics popularity was classified as not popular.
We found that @arcxmoney/analytics 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.