-
Notifications
You must be signed in to change notification settings - Fork 269
Description
Hi,
One of the primary use cases for FF Ads Reporting (FFAR) is to notify the buyer in case of a click event.
When the ad is "Composed of Multiple Pieces", the FFAR API (window.fence.reportEvent
) is only available in the parent Fenced Frame.
When the user clicks on a nested Fenced Frame, however, the JS click event is not propagated to the parent FF.
The result is that there seems to be no clean way of reporting clicks via FFAR, if they happen on a nested FF (which is the most common scenario, as the nested FFs represent the advertised products).
The solution we're currently using is for the parent FF to observe the blur
and focus
events on the nested FFs. This, however, sounds a bit like a hack, and may have unintended side effects.
I was wondering, what would be the recommended way of reporting such clicks in FFAR? Would it be feasible to actually propagate the JS click event to the parent FF?
To clarify, our intention is to detect that a click happened anywhere on the ad; not to include data derived from the nested FF in the click report.
Best regards,
Jonasz