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
with-facebook-pixel: new implementation with app folder #49880
Merged
Merged
Conversation
This file contains 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 |
niko20
force-pushed
the
facebook-pixel-example-app
branch
from
May 19, 2023 23:43
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 |
niko20
force-pushed
the
facebook-pixel-example-app
branch
from
June 15, 2023 03:54
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 folder
structure.layout.js
fileFacebookPixel
is provided to handle the initial script setup and managePageView
events when the page changes.pages
folder now is in_pages
Why?
To provide an example of implementing the new
app folder
structure with Next.js ˆ13, which includes using the new files likelayout
,page
, etc.How?
Utilizing the
next/script
package and thelayout.js
file 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 folder
structure andNext.js ˆ13
Tracking main page
app/page.js
Tracking another path
app/about/page.js
navigation between pages with
next/link