https://www.uusisuomi.fi/kumppanisisallot/wp-content/mu-plugins/digitalData/digitalData.js?ver=1.0.3
1(function () { 2 'use strict'; 3 4 var getWidth = function () { 5 return Math.max(document.documentElement.clientWidth, window.innerWidth || 0); 6 }; 7 8 var getViewport = function (width) { 9 switch (true) { 10 case width <= 768: 11 return 'mobile'; 12 case width <= 1024: 13 return 'tablet'; 14 case width <= 1200: 15 return 'desktop'; 16 case width > 1200: 17 return 'desktop-wide'; 18 default: 19 return ''; 20 } 21 }; 22 23 var pageInstanceId = digitalData_php_vars.pageID + '_' + digitalData_php_vars.prefix + '_' + digitalData_php_vars.environment; 24 25 var digitalData = { 26 pageInstanceID: pageInstanceId, 27 version: { 28 almaVersion: '2.3', 29 specificationVersion: '1.0', 30 }, 31 page: { 32 pageInfo: { 33 pageID: digitalData_php_vars.pageID, 34 sysEnv: 'responsive', 35 pageTitle: document.title, 36 language: 'fi-FI', 37 geoRegion: 'FI', 38 publisher: digitalData_php_vars.publisher, 39 locationProtocol: document.location.protocol.slice(0, -1), 40 locationHost: document.location.host, 41 locationPathName: document.location.pathname, 42 locationHref: document.location.href, 43 referrer: document.referrer 44 }, 45 category: { 46 primaryCategory: digitalData_php_vars.primaryCategory, 47 pageType: digitalData_php_vars.pageType, 48 tags: [] 49 }, 50 attributes: { 51 environment: digitalData_php_vars.environment, 52 viewport: getViewport(getWidth()), 53 width: getWidth(), 54 userAgentHeader: navigator.userAgent, 55 contentCharge: 'free', 56 content: { 57 cid: digitalData_php_vars.pageID 58 } 59 } 60 } 61 }; 62 63 if (digitalData_php_vars.organizationName) { 64 digitalData.product = [ 65 { 66 productInfo: { 67 organization: { 68 organizationName: digitalData_php_vars.organizationName 69 }, 70 xandrLineItemIds: digitalData_php_vars.lineItemIds 71 } 72 } 73 ] 74 } 75 76 if (digitalData_php_vars.authors !== null) { 77 digitalData.page.attributes.authors = digitalData_php_vars.authors; 78 } 79 else { 80 digitalData.page.attributes.authors = []; 81 } 82 if (digitalData_php_vars.issueDate) { 83 digitalData.page.pageInfo.issueDate = digitalData_php_vars.issueDate; 84 } 85 window.digitalData = digitalData; 86})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.