combindma / laravel-facebook-pixel

Meta Pixel integration for Laravel
MIT License
33 stars 9 forks source link

[Question]: Setup Multiple pixel ids #2

Closed aeq-dev closed 4 months ago

aeq-dev commented 7 months ago

What happened?

Hi @omarherri Thanks for this awesome package, Please, how could we manage multiple pixel ids ? Thanks

How to reproduce the bug

-

Package Version

-

PHP Version

8.2

Laravel Version

10.x

Which operating systems does with happen with?

No response

Notes

No response

omarherri commented 6 months ago

At the moment this is not possible. I think i just need to tackle the documentation provided by Facebook to implement this. But definitely this is will be added soon.

omarherri commented 6 months ago

As for now you can set the Pixel id on the fly using this in your controller:

FacebookPixel::setPixelId('XXXXXXXX');

Maybe this is an all-round solution for the moment.