uzzairwebstudio / laravel-fb-pixel
FB Pixel Laravel component. You can include it in any Blade files.
Installs: 294
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/uzzairwebstudio/laravel-fb-pixel
Requires
- php: ^7.2.5
 - laravel/framework: ^7.0
 
This package is auto-updated.
Last update: 2025-10-20 14:19:31 UTC
README
This package offers you FB Pixel script as Laravel 7 component. You can include the component in any Blade files.
Once you installed, you can do stuff like this;
<x-uws-fb-pixel pixel-id="123456789" /> <script> fbq('track', 'Purchase', {currency: "USD", value: 30.00}); </script>
Installation
First and foremost, you need to require the package.
composer require uzzairwebstudio/laravel-fb-pixel
Then, publish the vendor files. This will publish View/Component file and views file into your app.
php artisan vendor:publish --tag="uws-fb-pixel-views" php artisan vendor:publish --tag="uws-fb-pixel-view-component"
Finally, you can now place the component in your blade file like this and place your FB Pixel ID in pixel-id parameter;
<x-uws-fb-pixel pixel-id="YOUR_FB_PIXEL_ID"/>
License
The MIT License (MIT).