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

From Genesys Documentation
Jump to: navigation, search
(Published)
Line 9: Line 9:
 
|Section={{Section
 
|Section={{Section
 
|sectionHeading=Description
 
|sectionHeading=Description
|Type=Structured
+
|Standalone=No
 +
|ComingSoon=No
 
|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
 
|fullwidth=No
Line 17: Line 17:
 
}}{{Section
 
}}{{Section
 
|sectionHeading=Signature
 
|sectionHeading=Signature
|Type=Structured
+
|Standalone=No
 +
|ComingSoon=No
 
|alignment=Vertical
 
|alignment=Vertical
|gif=No
 
 
|structuredtext=<tt>ac('pageview', [pageOverrides], [customAttributes], [options])</tt>
 
|structuredtext=<tt>ac('pageview', [pageOverrides], [customAttributes], [options])</tt>
 
|fullwidth=No
 
|fullwidth=No
Line 25: Line 25:
 
}}{{Section
 
}}{{Section
 
|sectionHeading=Arguments
 
|sectionHeading=Arguments
|Type=Structured
+
|Standalone=No
 +
|ComingSoon=No
 
|alignment=Vertical
 
|alignment=Vertical
|gif=No
 
 
|structuredtext=*[[#pageOverrides|pageOverrides]]
 
|structuredtext=*[[#pageOverrides|pageOverrides]]
 
*[[#customAttributes|customAttributes]]
 
*[[#customAttributes|customAttributes]]
Line 35: Line 35:
 
}}{{Section
 
}}{{Section
 
|sectionHeading=pageOverrides
 
|sectionHeading=pageOverrides
|Type=Structured
 
 
|anchor=pageOverrides
 
|anchor=pageOverrides
 +
|Standalone=No
 +
|ComingSoon=No
 
|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
Line 68: Line 68:
 
}}{{Section
 
}}{{Section
 
|sectionHeading=customAttributes
 
|sectionHeading=customAttributes
|Type=Structured
 
 
|anchor=customAttributes
 
|anchor=customAttributes
 +
|Standalone=No
 +
|ComingSoon=No
 
|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
Line 80: Line 80:
 
}}{{Section
 
}}{{Section
 
|sectionHeading=options
 
|sectionHeading=options
|Type=Structured
 
 
|anchor=options
 
|anchor=options
 +
|Standalone=No
 +
|ComingSoon=No
 
|alignment=Vertical
 
|alignment=Vertical
|gif=No
 
 
|structuredtext=*Description: used for additional configuration
 
|structuredtext=*Description: used for additional configuration
 
*Type: object
 
*Type: object

Revision as of 13:34, January 17, 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:
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: a flat object with properties of type string, number, or boolean

options

  • Description: used for additional configuration
  • Type: object
  • Status: optional
  • Properties:
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 23:18:18)"
Comments or questions about this documentation? Contact us for support!