Skip to content
This repository has been archived by the owner on Apr 30, 2023. It is now read-only.
This repository has been archived by the owner on Apr 30, 2023. It is now read-only.

[Bug]: this method dont work on varnish cache (trackServerEvent on .phtml) #126

Open
1 task done
redati opened this issue Nov 30, 2022 · 2 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@redati
Copy link

redati commented Nov 30, 2022

Contact Details

[email protected]

What happened?

This function used for send server events on pixel dont work for varnish or other eficent cache type.

https://github.com/facebookincubator/facebook-for-magento2/blob/0da8145b893f7fa7f43e4851bf75b6c304d97317/view/frontend/templates/pixel/view_content.phtml#L5

Magento Version

2.4.3

Plugin Version

1.4.5

Relevant log output

no need

Code of Conduct

  • I agree to follow this project's Code of Conduct
@redati redati added the bug Something isn't working label Nov 30, 2022
@dankocrama
Copy link

Same problem here

@VasilisX
Copy link

VasilisX commented Dec 7, 2022

It does not work with phtml and block class because this files are in cache and the eventId is always the same
It is need to refactor the viewContent and viewCategory events to implement like the addtocart event
that is, to be done with a controller

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants