browser-tracker.trackercore.setviewport
Home > @snowplow/browser-tracker > TrackerCore > setViewport
TrackerCore.setViewport() method
Set the viewport dimensions
Signature:setViewport(width: string, height: string): void;
Parameters
Parameter | Type | Description |
---|---|---|
width | string | viewport width |
height | string | viewport height |
void