gatsby-plugin-dsp-universal-pixel

Gatsby plugin to add Basis DSP Universal Pixel Script onto a site

Usage no npm install needed!

<script type="module">
  import gatsbyPluginDspUniversalPixel from 'https://cdn.skypack.dev/gatsby-plugin-dsp-universal-pixel';
</script>

README

gatsby-plugin-dsp-universal-pixel

Easily add Universal Pixel Script to your Gatsby site.

Install

npm install --save gatsby-plugin-dsp-universal-pixel

How to use

// In your gatsby-config.js
// options.id is required
// options.cntrData is optional
plugins: [
  {
    resolve: `gatsby-plugin-dsp-universal-pixel`,
    options: {
      id: 'Universal Pixel ID.',
      cntrData: {
        'category':'shoes',
        'gender':'m'
      }
    },
  },
]