Show Personal Visits

The showVisits component uses cookies to display how many times a user has visited a page.

NOTE: Usage: var counter = showVisitsComponent1.getVisit("showVisitsComponent1");
Most developers would place the getVisits() method within the onLoad event of the body tag.

Properties

name

DisplayName - Name
Description - (REQUIRED) Enter unique name of the control. Must exactly match the name of the corresponding JavaScript object on the page.
DefaultValue - personalVisitCounter1

Cookie

DisplayName - Cookie Component Name
Description - Enter the name of the cookie component that is required for this component to work

duration

DisplayName - Duration
Description - Enter the amount of time that based on the Time Type that you wish to track visits.
Type - NUMBER

timetype

DisplayName - Type of Time
Description - Choose the type of time duration that you wish to track visits.
ValueSet - day | hour
Type - STRING
DefaultValue - day


Methods

void getVisits(name)

Function:getVisits
Input:String - name of the showVisits Component being used
Return:void
Description:This method increase the counter each time that it is called and returns that value.

Events

None

Other Information

Environment: Client