-
Notifications
You must be signed in to change notification settings - Fork 29.8k
with-facebook-pixel: new implementation with app folder #49880
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
@lfades ✋🏻 please help me with this contribution, I worked on the last examples and now it's an example of Facebook pixel but using the new 😃 |
1 task
|
Hi! The linter fails here |
bd87c3a to
91260a9
Compare
|
@dvakatsiienko Hi, I appreciate your support. The issue was "prettier"... thank you. |
leerob
reviewed
Jun 15, 2023
|
Allow CI Workflow Run
Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer |
d3cdd85 to
bb557bd
Compare
leerob
approved these changes
Jun 15, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
app folderstructure.layout.jsfileFacebookPixelis provided to handle the initial script setup and managePageViewevents when the page changes.pagesfolder now is in_pagesWhy?
To provide an example of implementing the new
app folderstructure with Next.js ˆ13, which includes using the new files likelayout,page, etc.How?
Utilizing the
next/scriptpackage and thelayout.jsfile to initialize the Facebook pixel when the application starts and manage subsequent events.Evidence of Implementation:
Here are some examples that demonstrate the successful implementation of the Facebook pixel using the new
app folderstructure andNext.js ˆ13Tracking main page

app/page.jsTracking another path

app/about/page.jsnavigation between pages with

next/link