|
222 | 222 | },
|
223 | 223 | "pushEvents": {
|
224 | 224 | "pushEvents": "const response = await client.pushEvents({\n events: [\n {\n eventType: 'click',\n eventName: 'Product Clicked',\n index: 'products',\n userToken: 'user-123456',\n authenticatedUserToken: 'user-123456',\n timestamp: 1641290601962,\n objectIDs: ['9780545139700', '9780439784542'],\n queryID: '43b15df305339e827f0ac0bdc5ebcaa7',\n positions: [7, 6],\n },\n ],\n});",
|
225 |
| - "Many events type": "const response = await client.pushEvents({\n events: [\n {\n eventType: 'conversion',\n eventName: 'Product Purchased',\n index: 'products',\n userToken: 'user-123456',\n authenticatedUserToken: 'user-123456',\n timestamp: 1741046400000,\n objectIDs: ['9780545139700', '9780439784542'],\n queryID: '43b15df305339e827f0ac0bdc5ebcaa7',\n },\n {\n eventType: 'view',\n eventName: 'Product Detail Page Viewed',\n index: 'products',\n userToken: 'user-123456',\n authenticatedUserToken: 'user-123456',\n timestamp: 1741046400000,\n objectIDs: ['9780545139700', '9780439784542'],\n },\n ],\n});", |
| 225 | + "Many events type": "const response = await client.pushEvents({\n events: [\n {\n eventType: 'conversion',\n eventName: 'Product Purchased',\n index: 'products',\n userToken: 'user-123456',\n authenticatedUserToken: 'user-123456',\n timestamp: 1741305600000,\n objectIDs: ['9780545139700', '9780439784542'],\n queryID: '43b15df305339e827f0ac0bdc5ebcaa7',\n },\n {\n eventType: 'view',\n eventName: 'Product Detail Page Viewed',\n index: 'products',\n userToken: 'user-123456',\n authenticatedUserToken: 'user-123456',\n timestamp: 1741305600000,\n objectIDs: ['9780545139700', '9780439784542'],\n },\n ],\n});", |
226 | 226 | "ConvertedObjectIDsAfterSearch": "const response = await client.pushEvents({\n events: [\n {\n eventType: 'conversion',\n eventName: 'Product Purchased',\n index: 'products',\n userToken: 'user-123456',\n authenticatedUserToken: 'user-123456',\n timestamp: 1641290601962,\n objectIDs: ['9780545139700', '9780439784542'],\n queryID: '43b15df305339e827f0ac0bdc5ebcaa7',\n },\n ],\n});",
|
227 | 227 | "ViewedObjectIDs": "const response = await client.pushEvents({\n events: [\n {\n eventType: 'view',\n eventName: 'Product Detail Page Viewed',\n index: 'products',\n userToken: 'user-123456',\n authenticatedUserToken: 'user-123456',\n timestamp: 1641290601962,\n objectIDs: ['9780545139700', '9780439784542'],\n },\n ],\n});",
|
228 | 228 | "AddedToCartObjectIDs": "const response = await client.pushEvents({\n events: [\n {\n eventType: 'conversion',\n eventSubtype: 'addToCart',\n eventName: 'Product Added To Cart',\n index: 'products',\n queryID: '43b15df305339e827f0ac0bdc5ebcaa7',\n userToken: 'user-123456',\n authenticatedUserToken: 'user-123456',\n timestamp: 1641290601962,\n objectIDs: ['9780545139700', '9780439784542'],\n objectData: [\n { price: 19.99, quantity: 10, discount: 2.5 },\n { price: '8$', quantity: 7, discount: '30%' },\n ],\n currency: 'USD',\n },\n ],\n});"
|
|
0 commit comments