getRefererInformation Class
Constructor
getRefererInformation
(
-
refererUrl
-
currentUrl
-
Id
Parameters:
-
refererUrl
StringThe document.referrer of visited url
-
currentUrl
StringThe current visiting url
-
Id
NumberProfile Id of registerd website.
Item Index
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
(
Array
-
campaignNames
using detect campaign for current url parameters. not implimented.
Parameters:
-
campaignNames
Array, params{Array}
Returns:
Array:
.
getRefererObject
()
Object
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
(
Boolean
-
url
Parameters:
-
url
Objectthe 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