Skip to Content
OpenAI CAPILookup table GA4 events - OpenAI Events

GA4-OpenAI event mapping table for the Addingwell OpenAI CAPI tag

In Inherit from client mode, the tag automatically converts the following GA4 events into OpenAI standard events:

GA4 eventOpenAI standard eventData shape (data.type)
page_viewpage_viewedcontents
view_itemcontents_viewedcontents
add_to_cartitems_addedcontents
begin_checkoutcheckout_startedcontents
purchaseorder_createdcontents
generate_leadlead_createdcustomer_action
sign_upregistration_completedcustomer_action
scheduleappointment_scheduledcustomer_action
subscribesubscription_createdplan_enrollment
start_trialtrial_startedplan_enrollment

Any GA4 event missing from this table is sent to OpenAI as a custom event (type: custom), with the GA4 event name as custom_event_name. Characters not allowed by OpenAI (anything other than letters, digits, _ and -) are replaced with _. For example, add_to_wishlist is sent as the custom event add_to_wishlist.

Data sent depending on the event shape

data.typeFields sent by the tag
contentsamount (GA4 value × 100), currency, contents built from items (id, name, content_type, quantity, amount)
customer_actionamount and currency when present, without a contents array
plan_enrollmentamount, currency, contents and plan_id (GA4 plan_id parameter, otherwise the item_id of the first item)
customamount, currency, contents, plan_id and any field added in Custom Data Override

OpenAI expects the amount in the currency’s minor unit (cents for the euro or the dollar). The tag always multiplies the GA4 value by 100.