Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
gatsby-plugin-tealium-utag
Advanced tools
Gatsby Plugin for inserting Tealium's utag to the page
This plugin inserts Tealium's utag to the <body>
of Gatsby pages.
npm install --save gatsby-plugin-tealium-utag
// In your gatsby-config.js
module.exports = {
plugins: [
{
resolve: "gatsby-plugin-tealium-utag",
options: {
account: "YOUR_TEALIUM_ACCOUNT",
profile: "YOUR_TEALIUM_PROFILE",
env: "dev",
injectUtagSync: true,
disableInitialTracking: true
}
}
]
};
account
Your Tealium account name.
profile
Your Tealium profile name.
env
Must be "dev"
, "qa"
, or "prod"
.
injectUtagSync
Defaults to false
.
When set to true
, utag.sync.js
will be injected to the <head>
.
disableInitialTracking
Defaults to false
.
When set to true
, utag.view()
won't be called automatically on page load. Usually, that's what you want in Single Page Applications.
utag.view()
and utag.link()
in your app.utag.js
loads asynchronously. To know when it finished loading, listen to the "utag-loaded"
event on the document
:document.addEventListener("utag-loaded", () => {
console.log("utag is ready:", utag);
});
FAQs
Gatsby Plugin for inserting Tealium's utag to the page
The npm package gatsby-plugin-tealium-utag receives a total of 57 weekly downloads. As such, gatsby-plugin-tealium-utag popularity was classified as not popular.
We found that gatsby-plugin-tealium-utag 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
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.