Gatsby plugin to add LinkedIn Insight onto a site
npm install gatsby-plugin-linkedin-insightEasily add LinkedIn Insight to your Gatsby site.
npm install --save gatsby-plugin-linkedin-insight
``javascriptgatsby-plugin-linkedin-insight
// In your gatsby-config.js
plugins: [
{
resolve: ,YOUR_LINKEDIN_INSIGHT_PARTNER_ID
options: {
partnerId: ,
// Include LinkedIn Insight in development.
// Defaults to false meaning LinkedIn Insight will only be loaded in production.
includeInDevelopment: false
}
}
];
``
#### Note
Out of the box this plugin will simply load LinkedIn Insight on the initial page/app load.
#### Credit
Thanks to https://github.com/gabeskipio/gatsby-plugin-facebook-pixel and https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-google-tagmanager for a great base for this plugin!