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

From Genesys Documentation
Jump to: navigation, search
(Published)
 
(Published)
 
(13 intermediate revisions by 4 users not shown)
Line 2: Line 2:
 
|Standalone=No
 
|Standalone=No
 
|DisplayName=pageview
 
|DisplayName=pageview
|Platform=PureEngage, PureConnect, PureCloud
 
 
|TocName=pageview
 
|TocName=pageview
|Context=The <tt>pageview</tt> method tracks page views.
+
|Context=Learn how to use the <tt>pageview</tt> method to track when visitors view your webpages.
 +
|Dimension=DevTracking
 +
|ComingSoon=No
 +
|Platform=PureConnect, GenesysCloud, GenesysEngage-cloud
 
|Section={{Section
 
|Section={{Section
 +
|alignment=Vertical
 +
|structuredtext={{NoteFormat|1=This article only applies to customers using {{Link-AnywhereElse|product=ATC|version=Current|manual=AdminGuide|topic=About_web_chats|display text=web chat}}. If you are a Genesys Cloud CX customer, we encourage you to use the new {{Link-AnywhereElse|product=ATC|version=Current|manual=AdminGuide|topic=About_web_messaging|display text=web messaging}} feature to replace web chat.|2=}}<br />
 +
|Status=No
 +
}}{{Section
 
|sectionHeading=Description
 
|sectionHeading=Description
|Type=Structured
 
 
|alignment=Vertical
 
|alignment=Vertical
|gif=No
 
 
|structuredtext=The <tt>Pageview</tt> method tracks page views.
 
|structuredtext=The <tt>Pageview</tt> method tracks page views.
|fullwidth=No
+
|Status=No
 
}}{{Section
 
}}{{Section
 
|sectionHeading=Signature
 
|sectionHeading=Signature
|Type=Structured
 
 
|alignment=Vertical
 
|alignment=Vertical
|gif=No
 
 
|structuredtext=<tt>ac('pageview', [pageOverrides], [customAttributes], [options])</tt>
 
|structuredtext=<tt>ac('pageview', [pageOverrides], [customAttributes], [options])</tt>
|fullwidth=No
+
|Status=No
 
}}{{Section
 
}}{{Section
 
|sectionHeading=Arguments
 
|sectionHeading=Arguments
|Type=Structured
 
 
|alignment=Vertical
 
|alignment=Vertical
|gif=No
+
|structuredtext=*[[#pageOverrides|pageOverrides]]
|structuredtext=* [[#pageOverrides|pageOverrides]]
+
*[[#customAttributes|customAttributes]]
* [[#customAttributes|customAttributes]]
+
*[[#options|options]]
* [[#options|options]]
+
|Status=No
|fullwidth=No
 
 
}}{{Section
 
}}{{Section
 
|sectionHeading=pageOverrides
 
|sectionHeading=pageOverrides
|Type=Structured
 
 
|anchor=pageOverrides
 
|anchor=pageOverrides
 
|alignment=Vertical
 
|alignment=Vertical
|gif=No
+
|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:''' See the following table.
* Properties:
+
 
 
{{{!}} class="wikitable"
 
{{{!}} class="wikitable"
 
{{!}}-
 
{{!}}-
Line 58: Line 57:
 
{{!}}{{!}}<br />
 
{{!}}{{!}}<br />
 
{{!}}}
 
{{!}}}
|fullwidth=No
+
|Status=No
 
}}{{Section
 
}}{{Section
 
|sectionHeading=customAttributes
 
|sectionHeading=customAttributes
|Type=Structured
 
 
|anchor=customAttributes
 
|anchor=customAttributes
 
|alignment=Vertical
 
|alignment=Vertical
|gif=No
+
|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:''' Object with properties of type string, number, Boolean or customAttribute. See {{Link-SomewhereInThisVersion|manual=SDK|topic=customAttribute|display text=customAttributes}}.
* Restrictions: a flat object with properties of type string, number, or boolean
+
|Status=No
|fullwidth=No
 
 
}}{{Section
 
}}{{Section
 
|sectionHeading=options
 
|sectionHeading=options
|Type=Structured
 
 
|anchor=options
 
|anchor=options
 
|alignment=Vertical
 
|alignment=Vertical
|gif=No
+
|structuredtext=*'''Description:''' Use for more configuration
|structuredtext=* Description: used for additional configuration
+
*'''Type:''' Object
* Type: object
+
*'''Status:''' Optional
* Status: optional<br />
+
*'''Properties:''' See the following table.<br />
* Properties:<br />
+
 
 
{{{!}} class="wikitable"
 
{{{!}} class="wikitable"
 
{{!}}-
 
{{!}}-
Line 89: Line 85:
 
{{!}}-
 
{{!}}-
 
{{!}}{{!}}traitsMapper
 
{{!}}{{!}}traitsMapper
{{!}}{{!}}Used to map custom attributes to traits
+
{{!}}{{!}}Used to map custom attributes to traits. For more information, see {{Link-SomewhereInThisVersion|manual=SDK|topic=Traits_mapper|display text=Traits Mapper.}}
 
{{!}}{{!}}traitsMapper
 
{{!}}{{!}}traitsMapper
 
{{!}}{{!}}<br />
 
{{!}}{{!}}<br />
Line 106: Line 102:
 
{{!}}{{!}}<br />
 
{{!}}{{!}}<br />
 
{{!}}}
 
{{!}}}
|fullwidth=No
+
|Status=No
 
}}
 
}}
 
}}
 
}}

Latest revision as of 10:17, July 7, 2022

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 visitors view your webpages.

Important
This article only applies to customers using web chat. If you are a Genesys Cloud CX customer, we encourage you to use the new web messaging feature to replace web chat.

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: Object with properties of type string, number, Boolean or customAttribute. See customAttributes.

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-11-09 09:28:21)"
Comments or questions about this documentation? Contact us for support!