-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
1,409 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/analytics](./analytics.md) > [CommonConversionData](./analytics.commonconversiondata.md) > [cookieId](./analytics.commonconversiondata.cookieid.md) | ||
|
||
## CommonConversionData.cookieId property | ||
|
||
A cookie id from a first party cookie (i.e. from a visit to a domain you control) | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
cookieId: string; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/analytics](./analytics.md) > [CommonConversionData](./analytics.commonconversiondata.md) | ||
|
||
## CommonConversionData interface | ||
|
||
Shared properties of both ConversionEvent and ListingsClickEvent | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface CommonConversionData | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [cookieId](./analytics.commonconversiondata.cookieid.md) | string | A cookie id from a first party cookie (i.e. from a visit to a domain you control) | | ||
| [referrer?](./analytics.commonconversiondata.referrer.md) | string | <i>(Optional)</i> Page which sent the user to the current page, comes from typically Document.referrer | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/analytics](./analytics.md) > [CommonConversionData](./analytics.commonconversiondata.md) > [referrer](./analytics.commonconversiondata.referrer.md) | ||
|
||
## CommonConversionData.referrer property | ||
|
||
Page which sent the user to the current page, comes from typically Document.referrer | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
referrer?: string; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/analytics](./analytics.md) > [ConversionDetails](./analytics.conversiondetails.md) > [cid](./analytics.conversiondetails.cid.md) | ||
|
||
## ConversionDetails.cid property | ||
|
||
The id of the conversion tag, you can find the value from the conversion tracking section in your Yext account. You can find a list of tags under: https://www.yext.com/s/\[your business id\]/reports/conversiontracking/setup | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
cid: string; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/analytics](./analytics.md) > [ConversionDetails](./analytics.conversiondetails.md) > [cv](./analytics.conversiondetails.cv.md) | ||
|
||
## ConversionDetails.cv property | ||
|
||
Conversion Value Optional custom value supplied for this conversion | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
cv?: string; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/analytics](./analytics.md) > [ConversionDetails](./analytics.conversiondetails.md) | ||
|
||
## ConversionDetails interface | ||
|
||
The details of an individual conversion event, without the cookie id. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface ConversionDetails | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [cid](./analytics.conversiondetails.cid.md) | string | The id of the conversion tag, you can find the value from the conversion tracking section in your Yext account. You can find a list of tags under: https://www.yext.com/s/\[your business id\]/reports/conversiontracking/setup | | ||
| [cv?](./analytics.conversiondetails.cv.md) | string | <i>(Optional)</i> Conversion Value Optional custom value supplied for this conversion | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/analytics](./analytics.md) > [ConversionEvent](./analytics.conversionevent.md) | ||
|
||
## ConversionEvent interface | ||
|
||
An event representing a Conversion | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface ConversionEvent extends CommonConversionData, ConversionDetails | ||
``` | ||
<b>Extends:</b> [CommonConversionData](./analytics.commonconversiondata.md)<!-- -->, [ConversionDetails](./analytics.conversiondetails.md) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/analytics](./analytics.md) > [ConversionTrackingService](./analytics.conversiontrackingservice.md) | ||
|
||
## ConversionTrackingService interface | ||
|
||
A service for tracking conversions | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface ConversionTrackingService | ||
``` | ||
|
||
## Methods | ||
|
||
| Method | Description | | ||
| --- | --- | | ||
| [setDebugEnabled(enabled)](./analytics.conversiontrackingservice.setdebugenabled.md) | Turns on debug logging for event details. Will log details to the console when report() is called. | | ||
| [trackConversion(event)](./analytics.conversiontrackingservice.trackconversion.md) | tracks a conversion event | | ||
| [trackListings(event)](./analytics.conversiontrackingservice.tracklistings.md) | tracks a user's arrival on a landing page from a listings publisher | | ||
|
24 changes: 24 additions & 0 deletions
24
docs/analytics.conversiontrackingservice.setdebugenabled.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/analytics](./analytics.md) > [ConversionTrackingService](./analytics.conversiontrackingservice.md) > [setDebugEnabled](./analytics.conversiontrackingservice.setdebugenabled.md) | ||
|
||
## ConversionTrackingService.setDebugEnabled() method | ||
|
||
Turns on debug logging for event details. Will log details to the console when report() is called. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
setDebugEnabled(enabled: boolean): void; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| enabled | boolean | whether debug logging should be turned on | | ||
|
||
<b>Returns:</b> | ||
|
||
void | ||
|
24 changes: 24 additions & 0 deletions
24
docs/analytics.conversiontrackingservice.trackconversion.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/analytics](./analytics.md) > [ConversionTrackingService](./analytics.conversiontrackingservice.md) > [trackConversion](./analytics.conversiontrackingservice.trackconversion.md) | ||
|
||
## ConversionTrackingService.trackConversion() method | ||
|
||
tracks a conversion event | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
trackConversion(event: ConversionEvent): void; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| event | [ConversionEvent](./analytics.conversionevent.md) | a Conversion event | | ||
|
||
<b>Returns:</b> | ||
|
||
void | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/analytics](./analytics.md) > [ConversionTrackingService](./analytics.conversiontrackingservice.md) > [trackListings](./analytics.conversiontrackingservice.tracklistings.md) | ||
|
||
## ConversionTrackingService.trackListings() method | ||
|
||
tracks a user's arrival on a landing page from a listings publisher | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
trackListings(event: ListingsClickEvent): Promise<void>; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| event | [ListingsClickEvent](./analytics.listingsclickevent.md) | the event to track | | ||
|
||
<b>Returns:</b> | ||
|
||
Promise<void> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/analytics](./analytics.md) > [COOKIE\_PARAM](./analytics.cookie_param.md) | ||
|
||
## COOKIE\_PARAM variable | ||
|
||
URL Parameter & Param name for Yext conversion pixels | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
COOKIE_PARAM = "_yfpc" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/analytics](./analytics.md) > [CookieManager](./analytics.cookiemanager.md) > [(constructor)](./analytics.cookiemanager._constructor_.md) | ||
|
||
## CookieManager.(constructor) | ||
|
||
Takes the window and document | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
constructor(_outerWindow?: Window, _outerDocument?: Document); | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| \_outerWindow | Window | typically the window object or a mock | | ||
| \_outerDocument | Document | typically teh document object or a mock | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/analytics](./analytics.md) > [CookieManager](./analytics.cookiemanager.md) | ||
|
||
## CookieManager class | ||
|
||
CookieManager will manager conversion tracking cookies | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare class CookieManager | ||
``` | ||
|
||
## Constructors | ||
|
||
| Constructor | Modifiers | Description | | ||
| --- | --- | --- | | ||
| [(constructor)(\_outerWindow, \_outerDocument)](./analytics.cookiemanager._constructor_.md) | | Takes the window and document | | ||
|
||
## Methods | ||
|
||
| Method | Modifiers | Description | | ||
| --- | --- | --- | | ||
| [setAndGetYextCookie()](./analytics.cookiemanager.setandgetyextcookie.md) | | Gets the existing YFPC ID, or sets a new one if it doesn't already exist. You should only call this method if doing so complies with your GDPR/CCPA compliance requirements. | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/analytics](./analytics.md) > [CookieManager](./analytics.cookiemanager.md) > [setAndGetYextCookie](./analytics.cookiemanager.setandgetyextcookie.md) | ||
|
||
## CookieManager.setAndGetYextCookie() method | ||
|
||
Gets the existing YFPC ID, or sets a new one if it doesn't already exist. You should only call this method if doing so complies with your GDPR/CCPA compliance requirements. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
setAndGetYextCookie(): string; | ||
``` | ||
<b>Returns:</b> | ||
|
||
string | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/analytics](./analytics.md) > [ListingsClickEvent](./analytics.listingsclickevent.md) > [location](./analytics.listingsclickevent.location.md) | ||
|
||
## ListingsClickEvent.location property | ||
|
||
The url of the landing page. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
location: string; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/analytics](./analytics.md) > [ListingsClickEvent](./analytics.listingsclickevent.md) | ||
|
||
## ListingsClickEvent interface | ||
|
||
An event representing a user arriving at a landing page from a publisher site. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface ListingsClickEvent extends CommonConversionData | ||
``` | ||
<b>Extends:</b> [CommonConversionData](./analytics.commonconversiondata.md) | ||
## Properties | ||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [location](./analytics.listingsclickevent.location.md) | string | The url of the landing page. | | ||
| [source](./analytics.listingsclickevent.source.md) | string | The source parameter signifying which listings publisher should get credit Comes from the y\_source URL Parameter. | | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/analytics](./analytics.md) > [ListingsClickEvent](./analytics.listingsclickevent.md) > [source](./analytics.listingsclickevent.source.md) | ||
|
||
## ListingsClickEvent.source property | ||
|
||
The source parameter signifying which listings publisher should get credit Comes from the y\_source URL Parameter. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
source: string; | ||
``` |
Oops, something went wrong.