You can integrate Adobe Analytics (Omniture) to analyze how your content is performing using Whatfix API's. The following can be inserted in Advanced Customization.
| Function | Script |
|---|---|
| Load the Omniture tracking script | if(document.querySelector('[id*="_UIScumil1u"]' ).title=='William Chua'){ var head = document.getElementsByTagName('head'); var script = document.createElement("script"); script.setAttribute ("src","https://whatfix.com/omniuture/Appmeasurement.js"); script.setAttribute("type","text/javascript"); head[0].appendChild(script); |
| Common handler to send Whatfix events to Omniture | window._wfx_settings.onEvent = function(page,flow_id){ s.pageName = page; s.channel = "direct"; s.prop1 = flow_id; var s_code = s.t();if(s _code)document.write(s_code); }; |
| Choose subset of Whatfix events that you want to forward to Omniture and call the common handler | window._wfx_settings.onStart =function(event) {window._wfx_settings.onEvent('/flow/live/start',event.flow_id);}; window._wfx_settings.onShow =function(event) {window._wfx_settings.onEvent('/flow/live/show'+event.step,event.flow_id);}; window._wfx_settings.onEnd =function(event) {window._wfx_settings.onEvent('/flow/live/end',event.flow_id);}; window._wfx_settings.onMiss=function(event) {window._wfx_settings.onEvent('/flow/live/miss',event.flow_id);}; window._wfx_settings.onClose =function(event) {window._wfx_settings.onEvent('/flow/live/close',event.flow_id);}; } |
| OR Forward ALL events to Omniture | window._wfx_settings.tracker = {track:onEvent(event.event_name,event.flow_id); }; |