Skip to content

Commit ddb5914

Browse files
authored
Merge pull request #133 from xwp/feature/non_interaction
Add non_interaction: true to perf events
2 parents 40e4e26 + ec51473 commit ddb5914

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ All contributions are welcome! Please create [an issue](https://github.com/xwp/s
7272

7373
### Changelog
7474

75+
#### 1.3.6 - Jan 14th, 2025
76+
77+
- Made events non_interaction, such that they don't interfere with user events.
78+
7579
#### 1.3.5 - Jul 28th, 2023
7680

7781
- Add tracking support for Google Tag Manager setup GA4 with window.dataLayer.

js/src/send-to-analytics.js

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export function sendToAnalytics( { name, value, delta, id, attribution, rating }
2222
metric_value: value,
2323
metric_delta: Math.round( name === 'CLS' ? delta * 1000 : delta ),
2424
metric_rating: rating,
25+
non_interaction: true,
2526
};
2627

2728
switch ( name ) {

site-performance-tracker.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Plugin Name: Site Performance Tracker
99
* Plugin URI: https://github.com/xwp/site-performance-tracker
1010
* Description: Allows you to detect and track site performance metrics.
11-
* Version: 1.3.5
11+
* Version: 1.3.6
1212
* Author: XWP.co
1313
* Author URI: https://xwp.co
1414
*/

0 commit comments

Comments
 (0)