Top
Integrate with Adobe Analytics (Omniture)
  • 26 Apr 2024
  • 1 Minute To Read
  • Dark
    Light
  • PDF

Integrate with Adobe Analytics (Omniture)

  • Dark
    Light
  • PDF

Article summary

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

Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.