Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
initPiwikTracker() {
const trackerInstance = getTracker(
__PIWIK_TRACKER_URL__,
__PIWIK_SITEID__,
false,
false
)
configureTracker({
appDimensionId: __PIWIK_DIMENSION_ID_APP__,
app: 'Cozy Bar',
heartbeat: 0
})
this.setState({ usageTracker: trackerInstance })
}