API Docs for: 0.0.6
Show:

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.

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 String

    The key of the event to be added

incrementCommerceCounterValue

(
  • variableName
)

Increment Commerce Variable (s.eVar)

Parameters:

  • variableName String

    The 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 Object

    this

  • linkName String

    the url or some other decription of where the user is going..

saveValues

(
  • thisvar
)

used to track evars / props WITHOUT associated page info.

Parameters:

  • thisvar Object

    this

setChannel

(
  • channelName
)

Set Channel

Parameters:

  • channelName String

    The Channel Name.

setCommerceVariable

(
  • variableName
  • value
)

Set Commerce Variable (s.eVar)

Parameters:

  • variableName String

    The key associated with the eVar number that is to be set.

  • value String

    The 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 String

    The key associated with the prop number that is to be set.

  • value String

    The value that is to be recorded.

setPageName

(
  • pageName
)

Set Page Name

Parameters:

  • pageName String

    The Name of the Page.

setPageUrl

(
  • url
)

Set Page Url

Parameters:

  • url String

    The Url To Set.

trackVirtualPageView

()

used to track evars / props with associated page info.