Skip to content

Set up tracking events for this Price Benchmarks #2888

@joemcgill

Description

@joemcgill

User Story

As a product owner, I want to understand how people are using the Price Benchmarks Reports feature so I can refine it and make it more useful to merchants

Acceptance Criteria

  • When PriceBenchmarkSuggestions is shown, record event gla_price_benchmarks_shown with properties:
    • suggestions (int): Count of suggestions visible.
  • When the 'Change price' button is clicked, record event gla_price_benchmarks_change-price_clicked with properties:
    • context (string): location of the price change {'price-benchmarks-suggestion' | TBD}
    • productID (string): ID of product to change
  • When a merchant changes a price from the change price modal, record event gla_price_benchmarks_change_price_edited with properties:
    • context (string): location the price change originated {'price-benchmarks-suggestion' |
    • productID (string)
    • GTIN (string)
    • previous price (number)
    • recommended price (number)
    • changed price (number)
    • currency (string)
      TBD}
  • When the ChangePriceModal is open, record event gla_modal_open with prop:
    • context (string): 'price-benchmarks-change-price-modal'
  • When the ChangePriceModal is closed, record event gla_modal_closed with props:
    • context (string): 'price-benchmarks-change-price-modal'
    • action (string): {'close' | 'change-price'}
  • All new events are documented in https://github.com/woocommerce/google-listings-and-ads/blob/develop/src/Tracking/README.md.

All new tracking methods have been documented in the Tracking docs

Implementation brief

  • For all tracking, the recordGlaEvent function should be used.

    • The contexts for the Price Benchmark feature can be added in js/src/pages/price-benchmark/constants.js:
      • price-benchmark-suggestions
      • price-benchmark-change-price-modal
  • All tracking info should be added as comments using the @fires and @event properties.

  • Using js/src/pages/price-benchmark/change-price.js:

    • In the handleOnPriceChange, track the gla_modal_closed event with:
      • context: as per the AC
      • action: close
    • Add the following props to the Change Price button:
      • eventName: gla_price_benchmarks_change-price_clicked
      • eventProps: object containing:
        • context (as per the AC)
        • productID (with the product ID as value)
  • Using js/src/pages/price-benchmark/change-price-modal/index.js:

    • Track the gla_modal_open and gla_modal_closed events upon component mount with the parameters as per the AC.
    • Add the regularPrice prop to the PriceInputFooter component for tracking purposes (see below).
  • Using js/src/pages/price-benchmark/change-price-modal/price-input-footer.js:

    • Add a new regularPrice prop.
    • Update the handleOnPriceChange function to track the gla_price_benchmarks_change_price_edited event as per the AC.
      • The currency can be obtained via the googleAdsAccount object.
  • Using js/src/pages/price-benchmark/price-benchmark-suggestions/index.js:

    • Track the gla_price_benchmarks_shown event as per the AC.
  • Tracking Docs: https://github.com/woocommerce/google-listings-and-ads/blob/develop/src/Tracking/README.md

  • Script for updating docs: https://github.com/woocommerce/grow/tree/trunk/packages/js/tracking-jsdoc

TBD

Additional info

From the PRD:

For this feature, we would like to track:

  • % of Merchants who see at least once the report
  • Frequency of Use (how many times per week/month)
  • % of Merchants who adjust prices after seeing the report
  • From those who adjusted prices, the uplift in Conversions
  • From those who adjusted prices, the uplift in Conversions Value
  • From those who adjusted prices, the uplift in ARPA
  • From those who adjusted prices, the uplift in Retention

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions