/* customTrackingCode below*/ /* // Addtional Google Analytics Event Data // ===================================== // * gaEvtData.dimension1 - appID = customer's App ID (1000° internal) // * gaEvtData.dimension2 - customerId : customer ID (1000° internal) // * gaEvtData.dimension3 - epaperID : this epaper's id (1000° internal) // * gaEvtData.dimension4 - publishTarget : epaper was published as: preview, previewlink, zip, weblink, hosting // * gaEvtData.dimension5 - host : hostname and port number // * gaEvtData.dimension6 - pathName : epaper URL path without host // * gaEvtData.dimension7 - pageIndex : page index at the time event was triggered // * gaEvtData.dimension8 - hash : URL at the time the event was triggered // * gaEvtData.metric1 - elapsedTime : time since start of epaper */ /* // Addtional Matomo Event Data // ===================================== // * gaEvtData.eventName - event name // * gaEvtData.page - page string // * gaEvtData.string - event data as string */ mtmEventData = {}; /* // startPage : page that epaper was opened from */ window.trackEpaperView = function(gaEvtData, startPage) { console.log('trackEpaperView: ' + startPage + '\n' + JSON.stringify(gaEvtData)); mtmEventData.eventName = 'trackEpaperView'; mtmEventData.string = 'Katalog Start'; mtmEventData.page = gaEvtData.dimension7; window.parent.postMessage(JSON.stringify(mtmEventData), "*"); }; /* // page : epaper page that was viewed */ window.trackPageView = function(gaEvtData, page) { console.log('trackPageView: ' + page + '\n' + JSON.stringify(gaEvtData)); mtmEventData.eventName = 'trackPageView'; mtmEventData.string = 'Katalog Page View'; mtmEventData.page = gaEvtData.dimension7; window.parent.postMessage(JSON.stringify(mtmEventData), "*"); }; /* // pageString : either 'all' or pagenumber of single page */ window.trackPDFDownload = function(gaEvtData, pageString) { console.log('trackPDFDownload: ' + pageString + '\n' + JSON.stringify(gaEvtData)); mtmEventData.eventName = 'trackPDFDownload'; mtmEventData.string = pageString; mtmEventData.page = gaEvtData.dimension7; window.parent.postMessage(JSON.stringify(mtmEventData), "*"); }; /* // searchTerm : inputString from search field; is triggered multiple times after typing (with delay) */ window.trackSearch = function(gaEvtData, searchTerm) { console.log('trackSearch: ' + searchTerm + '\n' + JSON.stringify(gaEvtData)); mtmEventData.eventName = 'trackSearch'; mtmEventData.string = searchTerm; mtmEventData.page = gaEvtData.dimension7; window.parent.postMessage(JSON.stringify(mtmEventData), "*"); }; /* // itemString : pageIndex + item caption */ window.trackDirectoryClick = function(gaEvtData, itemString) { console.log('trackDirectoryClick: ' + itemString + '\n' + JSON.stringify(gaEvtData)); mtmEventData.eventName = 'trackDirectoryClick'; mtmEventData.string = itemString; mtmEventData.page = gaEvtData.dimension7; window.parent.postMessage(JSON.stringify(mtmEventData), "*"); }; /* // shareTarget : target network eg. facebook, twitter, ... // page : page that is beeing shared */ window.trackShareClick = function(gaEvtData, shareTarget, page) { console.log('trackShareClick: ' + shareTarget + '\n' + page + '\n' + JSON.stringify(gaEvtData)); mtmEventData.eventName = 'trackShareClick'; mtmEventData.string = shareTarget; mtmEventData.page = gaEvtData.dimension7; window.parent.postMessage(JSON.stringify(mtmEventData), "*"); }; /* // link : target link of custom menu button */ window.trackCustomLinkClick = function(gaEvtData, link) { console.log('trackCustomLinkClick: ' + link + '\n' + JSON.stringify(gaEvtData)); mtmEventData.eventName = 'trackCustomLinkClick'; mtmEventData.page = gaEvtData.dimension7; mtmEventData.string = link; window.parent.postMessage(JSON.stringify(mtmEventData), "*"); }; /* // itemString : pageIndex + media title */ window.trackMediaClick = function(gaEvtData, itemString) { console.log('trackMediaClick: ' + itemString + '\n' + JSON.stringify(gaEvtData)); mtmEventData.eventName = 'trackMediaClick'; mtmEventData.page = gaEvtData.dimension7; mtmEventData.string = itemString; window.parent.postMessage(JSON.stringify(mtmEventData), "*"); };
Dokument wird geladen