While the event is fired for for 'any' slot on the page, you could check the values for each call to addEventListener
, and interrogate the event.slot
property. You'll need to test against a value that is available either globally or hard-coded.
Here is a code example from Google:
var targetSlot = googletag.defineSlot(...);
googletag.pubads().addEventListener('slotRenderEnded', function(event) {
if (event.slot === targetSlot) {
// Slot specific logic
}
});'
See: GPT Reference.