-
Notifications
You must be signed in to change notification settings - Fork 0
sonarbug - track window/screen/document values #105
Description
Description
- track screen/document dimensions so we can know resolutions of the devices reaching our site
- Bump version number
Create a new tracking event for initial screen size
name: "window-init"
data: {
window: {
innerWidth: window.innerWidth,
innerHeight: window.innerHeight,
orientation: window.orientation,
outerWidth: window,outerWidth,
outerWidth: window.outerWidth,
screenLeft: window.screenLeft,
screenTop: window.screenTop,
screenX: window.screenX,
screenY: window.screenY
}
}
name: "window-change"
data: {
window: {
innerWidth: window.innerWidth,
innerHeight: window.innerHeight,
orientation: window.orientation,
outerWidth: window,outerWidth,
outerWidth: window.outerWidth,
screenLeft: window.screenLeft,
screenTop: window.screenTop,
screenX: window.screenX,
screenY: window.screenY
}
}
name: "screen-init"
data: {
screen: {
availHeight: window.screen.availHeight,
availLeft: window.screen.availLeft,
availTop: window.screen.availTop,
availWidth: window.screen.availWidth
colorDepth: window.screen.colorDepth
height: window.screen.height
pixelDepth: window.screen.pixelDepth
width: window.screen.width
}
}
name: "screen-change"
data: {
screen: {
availHeight: window.screen.availHeight,
availLeft: window.screen.availLeft,
availTop: window.screen.availTop,
availWidth: window.screen.availWidth
colorDepth: window.screen.colorDepth
height: window.screen.height
pixelDepth: window.screen.pixelDepth
width: window.screen.width
}
}