API Docs for:
Show:

getRefererInformation Class

Constructor

getRefererInformation

(
  • refererUrl
  • currentUrl
  • Id
)

Parameters:

  • refererUrl String

    The document.referrer of visited url

  • currentUrl String

    The current visiting url

  • Id Number

    Profile Id of registerd website.

Methods

detectCampaign

() Object

using detect campaign for current url parameters. not implimented

Returns:

Object: this contains array of campaigns as key value pairs

detectRefererCampaign

() Boolean

using detect campaign for current visit. not implimented.

Returns:

Boolean: .

detectRefererDirectEntry

() Boolean

Returns:

Boolean: .

getCampaignParameters

() Array

Returns:

Array: hostname of the url.

getCampainFromUrl

(
  • campaignNames
)
Array

using detect campaign for current url parameters. not implimented.

Parameters:

  • campaignNames Array

    , params{Array}

Returns:

Array: .

getRefererObject

() Object

Provided by the DB module.

Defined in routes/lib/tracker/event.js:2

using to getRefererInformation from url.

Returns:

Object: returns following format { 'RefererType' : value, 'RefererName' : value, 'RefererKeyword' : value, 'RefererUrl' : value }

getRefererObject

() Object

using to getRefererInformation from url.

Returns:

Object: returns following format { 'RefererType' : value, 'RefererName' : value, 'RefererKeyword' : value, 'RefererUrl' : value }

init

() Void

Returns:

Void: .

isParams

(
  • url
)
Boolean

Parameters:

  • url Object

    the url

Returns:

Boolean: of Query string variables as object.

unsanitizeInputValue

() String

Returns:

String: url with unwanted things removed.

wrapDirectUtm

()

wraping up the utm parameters It will set the utm details of the current visit

wrapOrganicUtm

()

wraping up the utm parameters It will set the utm details of the current visit

wrapReferalUtm

()

wraping up the utm parameters It will set the utm details of the current visit