Skip to content

Commit

Permalink
Better target
Browse files Browse the repository at this point in the history
  • Loading branch information
tunetheweb committed May 9, 2024
1 parent 638b5a6 commit 4a9cc97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/browser_action/vitals.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@
if (!eventTarget) {
eventTarget = metric.entries.find(entry => entry.target)?.target;
}
console.log('Interaction target:', eventTarget);
console.log('Interaction target:', eventTarget || metric.attribution.interactionTarget);
console.log(`Interaction event type: %c${metric.attribution.interactionType}`, 'font-family: monospace');

// Sub parts are only available for INP events and not Interactions
Expand Down
Loading

0 comments on commit 4a9cc97

Please sign in to comment.