;
}
diff --git a/package-lock.json b/package-lock.json
index dc77825b..305ac5d0 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@yext/analytics",
- "version": "1.0.0-beta.1",
+ "version": "1.0.0-beta.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@yext/analytics",
- "version": "1.0.0-beta.0",
+ "version": "1.0.0-beta.2",
"license": "BSD-3-Clause",
"dependencies": {
"ulidx": "^2.0.0"
@@ -17541,4 +17541,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/package.json b/package.json
index 61ee7178..dc457209 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@yext/analytics",
- "version": "1.0.0-beta.1",
+ "version": "1.0.0-beta.2",
"description": "An analytics library for Yext",
"author": "fusion@yext.com",
"license": "BSD-3-Clause",
diff --git a/playwright.config.ts b/playwright.config.ts
index cbacd8c4..72fd510a 100644
--- a/playwright.config.ts
+++ b/playwright.config.ts
@@ -45,9 +45,10 @@ export default defineConfig({
/* Run your local dev server before starting the tests */
webServer: {
- command: 'npm run build && npm run serve',
+ command: 'npm i && npm run build && npm run serve',
cwd: './test-site',
port: 3000,
- reuseExistingServer: !process.env.CI
+ reuseExistingServer: !process.env.CI,
+ stdout: 'pipe'
}
});
diff --git a/src/Action.ts b/src/Action.ts
index 7ea86c4f..900b6a7b 100644
--- a/src/Action.ts
+++ b/src/Action.ts
@@ -13,14 +13,14 @@ export type Action =
| 'BACKWARD_PAGINATE'
| 'BOOK'
| 'BRAND_ICON'
- | 'CALL_TO_ACTION'
| 'CASE_START'
| 'CASE_SUBMITTED'
| 'CHAT_IMPRESSION'
| 'CHAT_LINK_CLICK'
| 'CHAT_RESPONSE'
| 'COLLAPSE'
- | 'DIRECTIONS'
+ | 'CTA_CLICK'
+ | 'DRIVING_DIRECTIONS'
| 'EVENT'
| 'EXPAND'
| 'FEATURED_MESSAGE'
@@ -34,7 +34,6 @@ export type Action =
| 'MESSAGE'
| 'ORDER'
| 'PAGINATE'
- | 'PHONE'
| 'POST'
| 'PRESET_PROMPT'
| 'PRODUCT'
@@ -46,6 +45,7 @@ export type Action =
| 'SCROLL_TO_BOTTOM_OF_PAGE'
| 'SEARCH_BAR_IMPRESSION'
| 'SEARCH_CLEAR_BUTTON'
+ | 'TAP_TO_CALL'
| 'THUMBS_DOWN'
| 'THUMBS_UP'
| 'TICKET_URL'
diff --git a/src/EventPayload.ts b/src/EventPayload.ts
index 847dd48f..c0618ee3 100644
--- a/src/EventPayload.ts
+++ b/src/EventPayload.ts
@@ -60,7 +60,7 @@ export interface EventPayload {
/** The ID of the individual response in which the event occurred. */
responseId?: string;
};
- /** Fields specific to reporting Search Analytics Events */
+ /** Fields specific to reporting Yext Search Analytics Events */
search?: {
/** Unique identifier of the search */
searchId?: string;
@@ -78,6 +78,13 @@ export interface EventPayload {
/** The identifier of the search experience. */
experienceKey: string;
};
+ /** Fields specific to reporting Yext Pages Analytics Events */
+ sites?: {
+ /* The UID of the site an event was tied to. */
+ siteUid?: number;
+ /* The ID of the template from which a site was generated. */
+ template?: string;
+ };
/**
* When the record summarizes multiple events, the number of events the record represents.
* The event is treated as if it is duplicated this many times.
diff --git a/test-cdn/index.html b/test-cdn/index.html
index 6b86eedc..457a3532 100644
--- a/test-cdn/index.html
+++ b/test-cdn/index.html
@@ -6,13 +6,14 @@
Analytics Script Tag Integration Test Site
-
-
-
+
+
+
+
+