@artsy/cohesion
Advanced tools
Comparing version 1.6.2 to 1.7.0
@@ -0,1 +1,13 @@ | ||
# v1.7.0 (Mon Jun 15 2020) | ||
#### 🚀 Enhancement | ||
- Adds clickedMainArtworkGrid [#58](https://github.com/artsy/cohesion/pull/58) ([@abhitip](https://github.com/abhitip)) | ||
#### Authors: 1 | ||
- Abhiti Prabahar ([@abhitip](https://github.com/abhitip)) | ||
--- | ||
# v1.6.2 (Thu Jun 11 2020) | ||
@@ -2,0 +14,0 @@ |
@@ -36,2 +36,6 @@ import { AuthImpression, CreatedAccount, ResetYourPassword, SuccessfullyLoggedIn } from "./Events/Authentication"; | ||
/** | ||
* Corresponds to {@link ClickedMainArtworkGrid} | ||
*/ | ||
clickedMainArtworkGrid = "clickedMainArtworkGrid", | ||
/** | ||
* Corresponds to {@link CreatedAccount} | ||
@@ -38,0 +42,0 @@ */ |
@@ -29,2 +29,3 @@ "use strict"; | ||
ActionType["clickedFairGroup"] = "clickedFairGroup"; | ||
ActionType["clickedMainArtworkGrid"] = "clickedMainArtworkGrid"; | ||
ActionType["createdAccount"] = "createdAccount"; | ||
@@ -31,0 +32,0 @@ ActionType["resetYourPassword"] = "resetYourPassword"; |
@@ -38,4 +38,31 @@ import { ActionType } from "../Event"; | ||
/** | ||
* A user clicks a grouping of artworks on web | ||
* A user clicks on an artwork in the main artwork grid, which is the main product feed we can find on our core merchandising surfaces. | ||
* Currently, this event only fires on our new artwork grids on the following pages: Collect, Collection, Artist works-for-sale, and Search Results. | ||
* Note: This event is separate from [[clickedArtworkGroup]] because it is an important and frequent event. | ||
* Separating it out will make it easier for analysts to access. | ||
* | ||
* This schema describes events sent to Segment from [[clickedMainArtworkGrid]] | ||
* | ||
* @example | ||
* ``` | ||
* { | ||
* action: "clickedMainArtworkGrid", | ||
* context_module: "mainArtworkGrid", | ||
* context_page_owner_type: "artist", | ||
* context_page_owner_id: "4d8b926a4eb68a1b2c0000ae", | ||
* context_page_owner_slug: "damien-hirst", | ||
* destination_page_owner_type: "artwork", | ||
* destination_page_owner_id: "53188b0d8b3b8192bb0005ae", | ||
* destination_page_owner_slug: "damien-hirst-anatomy-of-an-angel", | ||
* type: "thumbnail" | ||
* } | ||
* ``` | ||
*/ | ||
export interface ClickedMainArtworkGrid extends ClickedEntityGroup { | ||
action: ActionType.clickedMainArtworkGrid; | ||
} | ||
/** | ||
* A user clicks a grouping of artworks on web. This includes all artwork groupings (i.e. artwork rails), except the main artwork grid on our core merchandising surfaces. | ||
* For our main artwork grids, we use the event [[clickedMainArtworkGrid]]. | ||
* | ||
* This schema describes events sent to Segment from [[clickedArtworkGroup]] | ||
@@ -130,3 +157,3 @@ * | ||
export interface ClickedEntityGroup { | ||
action: ActionType.clickedArtistGroup | ActionType.clickedArtworkGroup | ActionType.clickedAuctionGroup | ActionType.clickedCollectionGroup | ActionType.clickedFairGroup; | ||
action: ActionType.clickedArtistGroup | ActionType.clickedMainArtworkGrid | ActionType.clickedArtworkGroup | ActionType.clickedAuctionGroup | ActionType.clickedCollectionGroup | ActionType.clickedFairGroup; | ||
context_module: ContextModule; | ||
@@ -133,0 +160,0 @@ context_page_owner_type: PageOwnerType; |
{ | ||
"name": "@artsy/cohesion", | ||
"version": "1.6.2", | ||
"version": "1.7.0", | ||
"description": "Analytics schema and library helpers", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82122
1896