gatsby-plugin-facebook-pixel
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "gatsby-plugin-facebook-pixel", | ||
"description": "Gatsby plugin to add facebook pixel onto a site", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"author": "Gabe Barrientos <gbscopet@gmail.com> (https://www.twitter.com/gabefromutah)", | ||
@@ -6,0 +6,0 @@ "devDependencies": { |
import React from 'react'; | ||
exports.onRenderBody = ({ setHeadComponents }, pluginOptions) => { | ||
if (process.env.NODE_ENV === `production`) { | ||
if (process.env.NODE_ENV === `production` && pluginOptions.pixelId) { | ||
return setHeadComponents([ | ||
@@ -6,0 +6,0 @@ <script |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1
2246
6
28