1.0.1 • Published 1 year ago
arena-tools v1.0.1
Documentation
You can get the latest version of Arena tools from npm.
npm install arena-tools
Once installed you can begin tracking your events in your code calling these methods:
Log Event
You can track any event invoking logEvent(token, address, event_you_want_to_track)
method:
import React, { Component } from 'react';
// Other imports you need
import { logEvent } from 'arena-tools'
const ARENA_TOKEN = '1234567890' // You'll get your token by signing in our website
// YOUR CODE HERE
// When you want to log an event you have to use this method
logEvent(ARENA_TOKEN, walletAddress, "event you want to log")