Simply integrate twitter Pixel with Gridsome
yarn add gridsome-plugin-twitter-pixel
gridsome.config.js
module.exports = {
plugins: [
'gridsome-plugin-twitter-pixel'
]
}
The default config options will take id
.
{
use: 'gridsome-plugin-twitter-pixel',
options: {
id: 'xxxx'
}
}
To prevent use in development mode, add debug: false
{
use: 'gridsome-plugin-twitter-pixel',
options: {
debug: true
}
}