In the above code, there is a path where fid is loaded from the externalMetrics while the EventTiming plugin is undefined or not enabled, but then ttfi tries to read from the EventTiming plugin while it is undefined, resulting in the error TypeError: Cannot read properties of undefined (reading 'metrics')
I am experiencing an edge case where I am trying to read Time to First Interaction, but do not have the EventTiming plugin.
https://github.com/akamai/boomerang/blob/master/plugins/continuity.js#L3369-L3376
In the above code, there is a path where
fid
is loaded from the externalMetrics while the EventTiming plugin is undefined or not enabled, but thenttfi
tries to read from the EventTiming plugin while it is undefined, resulting in the errorTypeError: Cannot read properties of undefined (reading 'metrics')