Difference between revisions of "ATC/Current/SDK/Pageview"
From Genesys Documentation
DannaShirley (talk | contribs) (Published) |
DannaShirley (talk | contribs) (Published) |
||
Line 5: | Line 5: | ||
|TocName=pageview | |TocName=pageview | ||
|ComingSoon=No | |ComingSoon=No | ||
+ | |Dimension=DevTracking | ||
|Context=Learn how to use the <tt>pageview</tt> method to track when users view your webpages. | |Context=Learn how to use the <tt>pageview</tt> method to track when users view your webpages. | ||
|Section={{Section | |Section={{Section | ||
Line 27: | Line 28: | ||
|alignment=Vertical | |alignment=Vertical | ||
|gif=No | |gif=No | ||
− | |structuredtext=* [[#pageOverrides|pageOverrides]] | + | |structuredtext=*[[#pageOverrides|pageOverrides]] |
− | * [[#customAttributes|customAttributes]] | + | *[[#customAttributes|customAttributes]] |
− | * [[#options|options]] | + | *[[#options|options]] |
|fullwidth=No | |fullwidth=No | ||
|Status=No | |Status=No | ||
Line 38: | Line 39: | ||
|alignment=Vertical | |alignment=Vertical | ||
|gif=No | |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: | + | *Properties: |
+ | |||
{{{!}} class="wikitable" | {{{!}} class="wikitable" | ||
{{!}}- | {{!}}- | ||
Line 70: | Line 72: | ||
|alignment=Vertical | |alignment=Vertical | ||
|gif=No | |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: 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 | |Status=No | ||
Line 82: | Line 84: | ||
|alignment=Vertical | |alignment=Vertical | ||
|gif=No | |gif=No | ||
− | |structuredtext=* Description: used for additional configuration | + | |structuredtext=*Description: used for additional configuration |
− | * Type: object | + | *Type: object |
− | * Status: optional<br /> | + | *Status: optional<br /> |
− | * Properties:<br /> | + | *Properties:<br /> |
+ | |||
{{{!}} class="wikitable" | {{{!}} class="wikitable" | ||
{{!}}- | {{!}}- |
Revision as of 19:07, January 14, 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 |
Comments or questions about this documentation? Contact us for support!