You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example for Google Analytics e-commerce tracking, you would need to provide the price of the current transaction value to the tracking pixel. Is it possible to access that information from inside the middleware?
The text was updated successfully, but these errors were encountered:
Hi, I had not taken this kind of thing in to consideration - It's quite a specific case. As it's a middleware it doesn't have any proper interaction with the application, other than receiving the response.
Maybe it would be possible to place some kind of marker in the page response and parse this out before rendering - It seems kind of dirty to me.
I'm not sure of the exact life cycle of a middleware, is it initialized per request? Maybe the page could call instance methods on the current request instance to set properties, which the pixel rendering could use?
Can anyone else think of a better way?
I currently don't have the time to add this feature, but feel free to discuss and fork :)
For example for Google Analytics e-commerce tracking, you would need to provide the price of the current transaction value to the tracking pixel. Is it possible to access that information from inside the middleware?
The text was updated successfully, but these errors were encountered: