
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
cookieless-analytics-consent
Advanced tools
A simple solution to request consent from a user to use analytics for pageviews only (without using cookies).
This library tries to provide general purpose components to include an analytics consent in your website. If the user accepts this consent, eg. google analytics will be included to track page-views. The structure of the components is designed for exchangeability.
Actually there are only three components available:
NextJsGaPageviews
- Google Analytics integration for NextJs with storage none and ip anonymisation to track pageviews.CookieGuard
- Cookie guard to remember whether a user has accepted or rejected a consent.SimpleConsent
- A simple small ui component with a title, text and a reject and accept button. Its displayed by default on the bottom right.npm i --save cookieless-analytics-consent
Have a look at the example!
<NextJsGaPageviews analyticsId="YOUR_ID">
{(includeAnalytics) => (
<CookieGuard onIncludeAnalytics={includeAnalytics}>
{(onAccept, onReject) => (
<SimpleConsent onAccept={onAccept} onReject={onReject} content={{
title: 'Web analysis',
text: <Text />,
buttonRejectText: 'No thanks',
buttonAcceptText: 'Accept',
}} />
)}
</CookieGuard>
)}
</NextJsGaPageviews>
If you want your own ui component, then just replace SimpleConsent
with another one.
FAQs
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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.