Touch Device Orientation

if (isMobileOrTablet()) { var _gaq = _gaq || []; var scrOrientation = getScrOrientation();

window.addEventListener('load', function() { _gaq.push(['_trackEvent', 'Orientation', scrOrientation, undefined, undefined, true]); });

window.addEventListener('resize', function() { if (scrOrientation != getScrOrientation()) { scrOrientation = getScrOrientation(); _gaq.push(['_trackEvent', 'Orientation', 'changed to ' + scrOrientation, undefined, undefined, true]); } }); }

Connect

SyndicatedTV Widget