Problem/Motivation

GA 4 Provides a list of Recommended Events, with predefined Event names containing unique Parameters.

Is it possible to utilize this module to track an event on the site as a recommended event such as: select_item
https://developers.google.com/analytics/devguides/collection/ga4/referen...

Then after setting an entry for the recommended event populate the parameters with Tokens?

Example code per GA:

gtag("event", "select_item", {
  item_list_id: "related_products",
  item_list_name: "Related products",
  items: [
    {
      item_id: "SKU_12345",
      item_name: "Stan and Friends Tee",
      affiliation: "Google Store",
      coupon: "SUMMER_FUN",
      currency: "USD",
      discount: 2.22,
      index: 5,
      item_brand: "Google",
      item_category: "Apparel",
      item_category2: "Adult",
      item_category3: "Shirts",
      item_category4: "Crew",
      item_category5: "Short sleeve",
      item_list_id: "related_products",
      item_list_name: "Related Products",
      item_variant: "green",
      location_id: "L_12345",
      price: 9.99,
      quantity: 1
    }
  ]
});

Comments

robcbo created an issue.