@tmttn/gatsby-plugin-linkedin-insight
v5.2.0
Published
Gatsby plugin to add LinkedIn Insight onto a site
Downloads
1,013
Readme
gatsby-plugin-linkedin-insight
Easily add LinkedIn Insight to your Gatsby site.
💡 This is a fork from Florian Gächter's gatsby-plugin-linkedin-insight Gatsby plugin. The motivation for creating this fork is inactivity on the original repository: the original plugin's support goes up to Gatsby V2, and hasn't been updated for at least 7 months
Install
npm install --save @tmttn/gatsby-plugin-linkedin-insight
How to use
// In your gatsby-config.js
plugins: [
{
resolve: `@tmttn/gatsby-plugin-linkedin-insight`,
options: {
partnerId: `YOUR_LINKEDIN_INSIGHT_PARTNER_ID`,
// 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 gatsby-plugin-facebook-pixel and gatsby-plugin-google-tagmanager for a great base for this plugin!
the original creator of this plugin: Florian Gächter's gatsby-plugin-linkedin-insight