![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@simpozio/gatsby-plugin-analytics
Advanced tools
Plugin for handling event tracking with Google Analytics and Facebook Pixel.
Gatsby Plugin for Analytics
Gatsby plugin that combined logic of Google Analytics and Facebook Pixel in single plugin.
npm i @simpozio/gatsby-plugin-analytics
Install plugin package from npm and add plugin configuration to your gatsby-config.js
file
/* gatsby-config.js */
module.exports = {
plugins: [
{
resolve: '@simpozio/gatsby-plugin-analytics',
options: {
head: true,
fbq: {
pixelId: 'your Facebook pixel id',
disablePushState: true,
trackViewContent: false,
trackPageView: false
},
gtag: {
trackingIds: ['your Google Analytics id', 'your Google Ads id', 'your Marketing Platform id'],
trackPageView: false,
}
}
}
]
}
head: boolean
- if true
include script tags into head, else add them to the bodyfbq: object
- configuration for Facebook Pixel, includes next properties:
pixelId: number
- your Facebook Pixel IDdisablePushState: boolean
- enable/disable PageView tracking on History updatestrackViewContent: boolean
- enable/disable tracking of ViewContent event on every route updatetrackPageView: boolean
- enable/disable default PageView trackinggtag: object
- configuration for Google gtag.js, includes next properties:
trackingIds: string[]
- array of tracking ID's of Google Services fits pattern - ['your Google Analytics id', 'your Google Ads id', 'your Marketing Platform id']trackPageView: boolean
- enable/disable default PageView trackingFAQs
Plugin for handling event tracking with Google Analytics and Facebook Pixel.
The npm package @simpozio/gatsby-plugin-analytics receives a total of 3 weekly downloads. As such, @simpozio/gatsby-plugin-analytics popularity was classified as not popular.
We found that @simpozio/gatsby-plugin-analytics demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.