Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Facebook Pixel ID setting #507

Merged
merged 1 commit into from
Mar 15, 2018

Conversation

pestevez
Copy link
Contributor

This PR adds a new configuration option to set the ID of a Facebook Pixel to track page views.

Motivation

Using the Facebook Pixel to track page views in the generated docs site.

Have you read the Contributing Guidelines on pull requests?

Yes.

Test Plan

  • Create a Facebook Pixel (or get the ID of an existing one.)
  • Update your Docusaurus' siteConfig.js file and add a new field named facebookPixelId to the exported object siteConfig. The value should be the ID of the pixel referenced in the previous step.
    • Example facebookAppId: '352490515235776',
  • Launch your docs site generated by Docusaurus by running npm start in the website folder.
  • Navigate to the home page e.g. http://localhost:3000/
  • Verify the pixel is firing Page View events. These are some of the options:

image

image

@pestevez
Copy link
Contributor Author

Fixes #503

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Mar 14, 2018
Copy link
Contributor

@JoelMarcey JoelMarcey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants