1/*global dataLayer:true*/ 2 3 4var pwlGtmDataLayer = {}; 5 6(function () { 7 'use strict'; 8 9 pwlGtmDataLayer = { 10 11 push: function ( pushArray ) { 12 window.dataLayer = window.dataLayer || []; 13 dataLayer.push( pushArray ); 14 }, 15 16 /** 17 * Return current prop when multiple dataLayer elements on a page 18 */ 19 findDlValue: function ( prop ) { 20 var result = ''; 21 22 var i = ''; 23 24 for ( i = 0; i < window.dataLayer.length; i ++ ) { 25 if ( window.dataLayer[ i ].hasOwnProperty( prop ) ) { 26 result = window.dataLayer[ i ][ prop ]; 27 break; 28 } 29 } 30 31 return result; 32 } 33 34 }; 35}());
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.