Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@couds/react-analytics
Advanced tools
Readme
A utility that centralize several analytics systems. This library add the neccesary scripts to run the analytics that are used on your system
Currently supports:
npm i --save @couds/react-analytics
After installing you just need to add the AnalyticsContext to on your top view, this will add only the scripts that you need (if you only pass the gtm prop will not download the rest of services for example)
import React from 'react';
import Analytics from '@couds/react-analytics';
const App = () => {
return (
<Analytics gtm="XXXX" hotjar="XXXX" segment="XXXX" fullstory="xxxx">
{/* The rest of your app */}
</Analytics>
);
};
export default App;
import React, { useEffect, useContext } from 'react';
import { AnalyticsContext } from 'views/components/analytics';
const MyInnerView = () => {
const { trackEvent, identify, trackPage } = useContext(AnalyticsContext);
useEffect(() => {
// Track this page
trackPage();
// Identify user on analytids that allow indentifying
identify('user-id', {
name: 'test',
otherprop: 2,
});
}, []);
const onClick = () => {
// You can send custom events this way
trackEvent('my-custom-event', {
prop1: 'custom value',
});
};
return (
...
);
}
gtm.js
, because it send a event undefined
, We send a custom event named pageView
.To setup the tracking when the user navigate you should create a new trigger of tyoe Custom Event
wieh the event name pageView
FAQs
A utility that centralize several analytics systems
The npm package @couds/react-analytics receives a total of 6 weekly downloads. As such, @couds/react-analytics popularity was classified as not popular.
We found that @couds/react-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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.