Difference between revisions of "ATC/Current/SDK/Pageview"

From Genesys Documentation
Jump to: navigation, search
m (Text replacement - "\|Platform=([^\|]*)GenesysEngage-onpremises([\|]*)" to "|Platform=$1GenesysEngage-cloud$2")
(Published)
Line 2: Line 2:
 
|Standalone=No
 
|Standalone=No
 
|DisplayName=pageview
 
|DisplayName=pageview
|Platform=GenesysEngage-cloud, PureConnect, GenesysCloud
 
 
|TocName=pageview
 
|TocName=pageview
 +
|Context=Learn how to use the <tt>pageview</tt> method to track when users view your webpages.
 +
|Dimension=DevTracking
 
|ComingSoon=No
 
|ComingSoon=No
|Dimension=DevTracking
+
|Platform=PureConnect, GenesysCloud, GenesysEngage-cloud
|Context=Learn how to use the <tt>pageview</tt> method to track when users view your webpages.
 
 
|Section={{Section
 
|Section={{Section
 
|sectionHeading=Description
 
|sectionHeading=Description
|Standalone=No
 
|ComingSoon=No
 
 
|alignment=Vertical
 
|alignment=Vertical
 
|structuredtext=The <tt>Pageview</tt> method tracks page views.
 
|structuredtext=The <tt>Pageview</tt> method tracks page views.
|fullwidth=No
 
 
|Status=No
 
|Status=No
 
}}{{Section
 
}}{{Section
 
|sectionHeading=Signature
 
|sectionHeading=Signature
|Standalone=No
 
|ComingSoon=No
 
 
|alignment=Vertical
 
|alignment=Vertical
 
|structuredtext=<tt>ac('pageview', [pageOverrides], [customAttributes], [options])</tt>
 
|structuredtext=<tt>ac('pageview', [pageOverrides], [customAttributes], [options])</tt>
|fullwidth=No
 
 
|Status=No
 
|Status=No
 
}}{{Section
 
}}{{Section
 
|sectionHeading=Arguments
 
|sectionHeading=Arguments
|Standalone=No
 
|ComingSoon=No
 
 
|alignment=Vertical
 
|alignment=Vertical
 
|structuredtext=*[[#pageOverrides|pageOverrides]]
 
|structuredtext=*[[#pageOverrides|pageOverrides]]
 
*[[#customAttributes|customAttributes]]
 
*[[#customAttributes|customAttributes]]
 
*[[#options|options]]
 
*[[#options|options]]
|fullwidth=No
 
 
|Status=No
 
|Status=No
 
}}{{Section
 
}}{{Section
 
|sectionHeading=pageOverrides
 
|sectionHeading=pageOverrides
 
|anchor=pageOverrides
 
|anchor=pageOverrides
|Standalone=No
 
|ComingSoon=No
 
 
|alignment=Vertical
 
|alignment=Vertical
|structuredtext=*Description: sets custom page view location and title
+
|structuredtext=*'''Description:''' Sets custom page view location and title
*Type: object
+
*'''Type:''' Object
*Status: optional
+
*'''Status:''' Optional
*Properties:
+
*'''Properties:''' See the following table.
  
 
{{{!}} class="wikitable"
 
{{{!}} class="wikitable"
Line 64: Line 53:
 
{{!}}{{!}}<br />
 
{{!}}{{!}}<br />
 
{{!}}}
 
{{!}}}
|fullwidth=No
 
 
|Status=No
 
|Status=No
 
}}{{Section
 
}}{{Section
 
|sectionHeading=customAttributes
 
|sectionHeading=customAttributes
 
|anchor=customAttributes
 
|anchor=customAttributes
|Standalone=No
 
|ComingSoon=No
 
 
|alignment=Vertical
 
|alignment=Vertical
|structuredtext=*Description: adds extra information to <tt>pageview</tt> event
+
|structuredtext=*'''Description:''' Adds extra information to <tt>pageview</tt> event
*Type: object
+
*'''Type:''' Object
*Status: optional
+
*'''Status:''' Optional
*Restrictions: a flat object with properties of type string, number, or boolean
+
*'''Restrictions:''' Flat object with properties of type string, number, or Boolean
|fullwidth=No
 
 
|Status=No
 
|Status=No
 
}}{{Section
 
}}{{Section
 
|sectionHeading=options
 
|sectionHeading=options
 
|anchor=options
 
|anchor=options
|Standalone=No
 
|ComingSoon=No
 
 
|alignment=Vertical
 
|alignment=Vertical
|structuredtext=*Description: used for additional configuration
+
|structuredtext=*'''Description:''' Use for more configuration
*Type: object
+
*'''Type:''' Object
*Status: optional<br />
+
*'''Status:''' Optional
*Properties:<br />
+
*'''Properties:''' See the following table.<br />
  
 
{{{!}} class="wikitable"
 
{{{!}} class="wikitable"
Line 115: Line 98:
 
{{!}}{{!}}<br />
 
{{!}}{{!}}<br />
 
{{!}}}
 
{{!}}}
|fullwidth=No
 
 
|Status=No
 
|Status=No
 
}}
 
}}
 
}}
 
}}

Revision as of 19:27, December 16, 2020

This topic is part of the manual Journey JavaScript SDK for version Current of Genesys Predictive Engagement.

Learn how to use the pageview method to track when users view your webpages.

Description

The Pageview method tracks page views.

Signature

ac('pageview', [pageOverrides], [customAttributes], [options])

Arguments

pageOverrides

  • Description: Sets custom page view location and title
  • Type: Object
  • Status: Optional
  • Properties: See the following table.
Name Description Type Status Default
location Page URL string optional
title Page title string optional

customAttributes

  • Description: Adds extra information to pageview event
  • Type: Object
  • Status: Optional
  • Restrictions: Flat object with properties of type string, number, or Boolean

options

  • Description: Use for more configuration
  • Type: Object
  • Status: Optional
  • Properties: See the following table.
Name Description Type Status Default
traitsMapper Used to map custom attributes to traits. For more information, see Traits Mapper. traitsMapper

callback Called once beacon is sent function optional
callbackTimeout ms to wait for beacon to send number optional
Retrieved from "https://all.docs.genesys.com/ATC/Current/SDK/Pageview (2024-07-27 21:23:16)"
Comments or questions about this documentation? Contact us for support!