Difference between revisions of "ATC/Current/SDK/Pageview"
From Genesys Documentation
DannaShirley (talk | contribs) (Published) |
DannaShirley (talk | contribs) (Published) |
||
Line 4: | Line 4: | ||
|Platform=PureEngage, PureConnect, PureCloud | |Platform=PureEngage, PureConnect, PureCloud | ||
|TocName=pageview | |TocName=pageview | ||
+ | |ComingSoon=No | ||
|Context=The <tt>pageview</tt> method tracks page views. | |Context=The <tt>pageview</tt> method tracks page views. | ||
|Section={{Section | |Section={{Section | ||
Line 12: | Line 13: | ||
|structuredtext=The <tt>Pageview</tt> method tracks page views. | |structuredtext=The <tt>Pageview</tt> method tracks page views. | ||
|fullwidth=No | |fullwidth=No | ||
+ | |Status=No | ||
}}{{Section | }}{{Section | ||
|sectionHeading=Signature | |sectionHeading=Signature | ||
Line 19: | Line 21: | ||
|structuredtext=<tt>ac('pageview', [pageOverrides], [customAttributes], [options])</tt> | |structuredtext=<tt>ac('pageview', [pageOverrides], [customAttributes], [options])</tt> | ||
|fullwidth=No | |fullwidth=No | ||
+ | |Status=No | ||
}}{{Section | }}{{Section | ||
|sectionHeading=Arguments | |sectionHeading=Arguments | ||
Line 28: | Line 31: | ||
* [[#options|options]] | * [[#options|options]] | ||
|fullwidth=No | |fullwidth=No | ||
+ | |Status=No | ||
}}{{Section | }}{{Section | ||
|sectionHeading=pageOverrides | |sectionHeading=pageOverrides | ||
Line 59: | Line 63: | ||
{{!}}} | {{!}}} | ||
|fullwidth=No | |fullwidth=No | ||
+ | |Status=No | ||
}}{{Section | }}{{Section | ||
|sectionHeading=customAttributes | |sectionHeading=customAttributes | ||
Line 70: | Line 75: | ||
* Restrictions: a flat object with properties of type string, number, or boolean | * Restrictions: a flat object with properties of type string, number, or boolean | ||
|fullwidth=No | |fullwidth=No | ||
+ | |Status=No | ||
}}{{Section | }}{{Section | ||
|sectionHeading=options | |sectionHeading=options | ||
Line 89: | Line 95: | ||
{{!}}- | {{!}}- | ||
{{!}}{{!}}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 107: | Line 113: | ||
{{!}}} | {{!}}} | ||
|fullwidth=No | |fullwidth=No | ||
+ | |Status=No | ||
}} | }} | ||
}} | }} |
Revision as of 12:14, June 28, 2019
This topic is part of the manual Journey JavaScript SDK for version Current of Genesys Predictive Engagement.
The pageview method tracks page views.
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 |
Comments or questions about this documentation? Contact us for support!