- Merge request !6Issue #3290942: Event data should be passed as object → (Merged) created by krystalcode
Re the question in #6 above:
All events generated by
facebook_pixel
orfacebook_pixel_commerce
are funnelled throughfacebook_pixel_page_attachments()
which runsXss::filter(json_encode($event['data'])
on the event data.I think it is therefore a safe assumption that once you get to the client-side javascript where
initTracking()
loops overdrupalSettings.facebook_pixel.events
, thatevents['data']
will be JSON-encoded, so doingJSON.parse()
is appropriate without needing to check ifevents['data']
is already an object.Uploading the change in #2 as a patch so it's more easily usable while we wait for the maintainer to merge this.
- Status changed to RTBC
9 months ago 7:52pm 29 March 2024 - last update
9 months ago 23 pass Giving this another RTBC. And no, I've no idea how many RTBCs an issue needs :-)
- last update
9 months ago 23 pass -
Anybody →
committed 0c3ac5d6 on 2.x authored by
krystalcode →
Issue #3290942 by krystalcode, josephr5000, Anybody: Event data should...
-
Anybody →
committed 0c3ac5d6 on 2.x authored by
krystalcode →
- Status changed to Fixed
9 months ago 8:22am 2 April 2024 Automatically closed - issue fixed for 2 weeks with no activity.