OmnitureHelper Class
OmnitureHelper - a microlibrary for omniture tagging.
Constructor
OmnitureHelper
-
events
-
commerceVariables
-
insightVariables
Parameters:
-
events
Object(id,name) array of all events that will be used.
-
commerceVariables
Object(id,name) array of all commerce variables that will be used.
-
insightVariables
Object(id,name) array of all insight variables that will be used.
Item Index
Methods
- clearCommerceVariables
- clearInsightVariables
- clearVariablesAndEvents
- commerceVariablesWithValues
- fireEvent
- fireEvent
- incrementCommerceCounterValue
- insightVariablesWithValues
- saveValues
- saveValues
- setChannel
- setCommerceVariable
- setErrorPage
- setInsightVariable
- setPageName
- setPageUrl
- trackVirtualPageView
Methods
clearCommerceVariables
()
Clears Every Commerce Variable.
clearInsightVariables
()
Clears Every Insight Variable
clearVariablesAndEvents
()
Clears Variables, Page Name and Events. Useful to be used before setting values in a method
commerceVariablesWithValues
()
Lists Every Commerce Variable with a Value.
fireEvent
()
Clear Events (s.events) removes all events.
fireEvent
-
eventName
Fire Event (s.events) adds another event to the list of events.
Parameters:
-
eventName
StringThe key of the event to be added
incrementCommerceCounterValue
-
variableName
Increment Commerce Variable (s.eVar)
Parameters:
-
variableName
StringThe key associated with the eVar number that is to be incremented.
insightVariablesWithValues
()
Lists Every Insight Variable with a Value.
saveValues
-
thisvar
-
linkName
used to track exit link.
Parameters:
-
thisvar
Objectthis
-
linkName
Stringthe url or some other decription of where the user is going..
saveValues
-
thisvar
used to track evars / props WITHOUT associated page info.
Parameters:
-
thisvar
Objectthis
setChannel
-
channelName
Set Channel
Parameters:
-
channelName
StringThe Channel Name.
setCommerceVariable
-
variableName
-
value
Set Commerce Variable (s.eVar)
Parameters:
-
variableName
StringThe key associated with the eVar number that is to be set.
-
value
StringThe value that is to be recorded.
setErrorPage
()
Used only to designate a 404 Page Not Found Error Page.
setInsightVariable
-
variableName
-
value
Set Insight Variable (s.prop)
Parameters:
-
variableName
StringThe key associated with the prop number that is to be set.
-
value
StringThe value that is to be recorded.
setPageName
-
pageName
Set Page Name
Parameters:
-
pageName
StringThe Name of the Page.
setPageUrl
-
url
Set Page Url
Parameters:
-
url
StringThe Url To Set.
trackVirtualPageView
()
used to track evars / props with associated page info.