further-external / loews-dl-spec-ga4

An Apollo generated Event Driven Data Layer
0 stars 1 forks source link

Product Viewed #72

Open braxton-butcher opened 1 year ago

braxton-butcher commented 1 year ago

https://github.com/searchdiscovery/loews-dl-spec-ga4/blob/main/Data%20Layer%20Events/Product%20Viewed.md

The new Google dataLayer events should fire in all scenarios where the corresponding appEventData data layer event fires.

Please reference the Data Layers Event Mapping document to see the relationship between the two data layers events.

Reference the Data Layers Attribute Mapping document to see how the specific attributes of the old appEventData data layer corresponds to the attributes of the new dataLayer data layer.

When ecommerce.items.item_id and event_data.location_id are populated in the new data layer, the hotel code "77714" should be used.

You may also reference the “Attached Notes” section of the event’s specs to determine where and when to fire.

estum1 commented 1 year ago

What is market code supposed to be?

JH-SDI commented 1 year ago

@estum1

The event is firing in the correct scenario, the market_code is coming empty, the value expected is the market code of a room.

Moved to "to do"

estum1 commented 1 year ago

@JH-SDI but what are the market code values you are looking for?

JH-SDI commented 1 year ago

@estum1

here is an example of the market_code that is being captured on the BE:

Image

estum1 commented 1 year ago

Right but what is the market code you are looking for specifically for Bisha? Does it change per room type?

JH-SDI commented 1 year ago

Hi @estum1

I'm validating it with the client now... I'll confirm soon because I'm seeing that depending on the room they do have a market code:

Image Image

JH-SDI commented 1 year ago

Hi @estum1

I have the info already:

Here are the market codes for Bisha. Market codes just correspond to the type of rate category. They do not have an impact on room codes at all.

 

AC Accounting Use Only
CP Complimentary
CR CREW
AP Advance Purchase
DI Property Discount
MG Management Approved
OP OTA - Opaque
PK Package
PE Permanent
OD OTA - Discount Commission
OT OTA - Discount Merchant
GA Group Association
GC Group Corporate
GF Group SMERF
GG Group Government
GP Group Sports
GT Group Tour and Travel
IH Unassigned Function Space Market
CS Consortia
VC Volume Corporate
AA AAA
AR AARP
GO Government
LZ Loews Employee Rate
TA Travel Agent Discount
LB Loews Best Rate
OC OTA - Retail Commission
OM OTA - Retail Merchant
WH FIT / Wholesales

 

estum1 commented 1 year ago

So would this be booking engine only?

JH-SDI commented 1 year ago

Hi @estum1

It will be for the Bisha site as well but we could go without it.

So the push will be like this:

window.dataLayer = window.dataLayer || []; dataLayer.push({ ecommerce: null }); // Clear the previous ecommerce object. dataLayer.push({ "event": "view_item", "detailed_event": "Product Viewed", "ecommerce": { "currency": "<currency>", "items": [ { "city": "<city>", "item_id": "<item_id>", "item_name": "<item_name>", "state": "<state>" } ], "value": <value> } });

JH-SDI commented 1 year ago

@estum1

This event is firing in the correct scenario and capturing data as expected.

Moved to complete