Regular Expressions 101

Google Analytics 4 Ecommerce Events

Open Workspace
  • JavaScript
  • Unit Tests
2

Regular Expression

/
(?:view_(?:item(?:_list)?)|select_item|add_(?:payment|shipping)_info|(?:add_to|remove_from)_cart|begin_checkout|purchase)
/

Description

gets all GA4 Ecommerce Events

Submitted by Lukas Grebe