Migrating to the latest version of our package is straightforward and involves a few key changes to ensure compatibility and take advantage of new features. Please follow the steps below to complete your migration.
The configuration file has been renamed to meta-pixel
. Please update any references to the old config file in your project.
Replace the FACEBOOK_
prefix in your environment variables with META_
. For example, change FACEBOOK_PIXEL_ID
to META_PIXEL_ID
.
We have added a new feature advanced_matching_enabled
to the configuration file, which is enabled by default. This feature enhances user tracking accuracy.
The middleware name has been updated to MetaPixelMiddleware
. Update your middleware references accordingly.
All facade calls should now be made to MetaPixel
instead of the previous facade name.
Update the head and body tags in your HTML files using the new syntax for better integration:
<!DOCTYPE html>
<html>
<head>
<x-metapixel-head/>
</head>
<body>
<x-metapixel-body/>
</body>
</html>