Skip to main content

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

ParameterTypeDescription
widthstringviewport width
heightstringviewport height
Returns:

void