
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.
@gravitywelluk/gtm
Advanced tools
Typed Google Tag Manager helper functions that ensures your app won't crash if GTM is not instantiated.
Typed Google Tag Manager helper functions that ensures your app won't crash if GTM is not instantiated.
yarn add @gravitywelluk/gtm
# or
npm install --save @gravitywelluk/gtm
Helper functions to track Google GTM GA4 events.
Tracks a GA4 e-commerce event
import { gtmGa4EventEcommerce } from "@gravitywelluk/gtm";
// Track an add_to_cart event
gtmGa4EventEcommerce("add_to_cart", {
currency: "GBP",
value: 215.14,
items: items: [
{
item_id: "SKU_12345",
item_name: "Stan and Friends Tee",
affiliation: "Google Store",
coupon: "SUMMER_FUN",
currency: "USD",
discount: 2.22,
index: 5,
item_brand: "Google",
item_category: "Apparel",
item_category2: "Adult",
item_category3: "Shirts",
item_category4: "Crew",
item_category5: "Short sleeve",
item_list_id: "related_products",
item_list_name: "Related Products",
item_variant: "green",
location_id: "L_12345",
price: 107.57,
quantity: 2
}
]
});
Tracks a GA4 authentication event.
import { gtmGa4EventAuth, GtmGa4EventAuthMethod } from "@gravitywelluk/gtm";
gtmGa4EventAuth("login", GtmGa4EventAuthMethod.GITHUB);
gtmGa4EventAuth("sign_up", GtmGa4EventAuthMethod.GOOGLE);
Tracks a GA4 share
event.
import { gtmGa4EventShare, GtmGa4EventShareMethod } from "@gravitywelluk/gtm";
gtmGa4EventShare('/example-page', GtmGa4EventShareMethod.TWITTER);
FAQs
Typed Google Tag Manager helper functions that ensures your app won't crash if GTM is not instantiated.
We found that @gravitywelluk/gtm 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.
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.