Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-plugin-tealium-utag

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-tealium-utag

Gatsby Plugin for inserting Tealium's utag to the page

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
87
decreased by-23.68%
Maintainers
1
Weekly downloads
 
Created
Source

gatsby-plugin-tealium-utag

This plugin inserts Tealium's utag to the <body> of Gatsby pages.

Install

npm install --save gatsby-plugin-tealium-utag

How to use

// 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
      }
    }
  ]
};

Required Options

account

Your Tealium account name.

profile

Your Tealium profile name.

env

Must be "dev", "qa", or "prod".

Optional Options

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.

Notes

  • This plugin just adds the utag script to the page. It's up to you to call 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);
});

Keywords

FAQs

Package last updated on 18 Sep 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc