File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,8 @@ export default async function init () {
179
179
180
180
function onTelemetryMessage ( request , sender ) {
181
181
if ( request . trackView ) {
182
- return trackView ( request . trackView )
182
+ const { version } = browser . runtime . getManifest ( )
183
+ return trackView ( request . trackView , { version } )
183
184
}
184
185
}
185
186
Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ export function handleConsentFromState (state) {
34
34
}
35
35
36
36
const ignoredViewsRegex = [ ]
37
- export function trackView ( view ) {
37
+ export function trackView ( view , segments ) {
38
38
log ( 'trackView called for view: ' , view )
39
- metricsProvider . trackView ( view , ignoredViewsRegex )
39
+ metricsProvider . trackView ( view , ignoredViewsRegex , segments )
40
40
}
41
41
42
42
export const startSession = ( ...args ) => metricsProvider . startSession ( ...args )
You can’t perform that action at this time.
0 commit comments