Skip to content

Instantly share code, notes, and snippets.

@bvodola
Created October 16, 2018 16:01
Show Gist options
  • Save bvodola/b326faa7829972fbaba5b0527acb2b67 to your computer and use it in GitHub Desktop.
Save bvodola/b326faa7829972fbaba5b0527acb2b67 to your computer and use it in GitHub Desktop.
Pixel/index.js
import React from 'react'
import Head from 'next/head'
import FACEBOOK_PIXEL_1 from './facebook/pixel-1'
export default ({name}) => {
return(
<Head>
{name === 'FACEBOOK_PIXEL_1' && <FACEBOOK_PIXEL_1 />}
</Head>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment