Source: https://nishanth-fern-test.docs-staging.pageloop.ai/web/integrate-with-adobe-analytics-omniture

# Integrate with Adobe Analytics (Omniture)

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](/web/advanced-configuration).

| 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); };                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
