Closed remcotolsma closed 1 year ago
Sample code (untested) for Pronamic Pay version >= 8.0
:
\add_filter( 'pronamic_pay_google_analytics_ecommerce_item_name', 'pronamic_pay_ecommerce_recurring_item_name', 10, 2 );
function pronamic_pay_ecommerce_recurring_item_name( $name, $line ) {
if ( 'recurring' !== $line->get_payment()->get_meta( 'mollie_sequence_type' ) ) {
return $name;
}
return \sprintf( '%s (recurring)', $name );
}
This has not come up in recent months, so I am marking this issue as not planned for now, also because the current Google Analytics integration will end on July 1, 2023.
Google Analytics 4 is our next-generation measurement solution, and it's replacing Universal Analytics. On July 1, 2023, standard Universal Analytics properties will stop processing new hits. If you still rely on Universal Analytics, we recommend that you prepare to use Google Analytics 4 going forward.
Originally posted by @LeoOosterloo in https://github.com/pronamic/wp-pronamic-pay/discussions/311#discussioncomment-2477630
If we start supporting Google Analytics 4, this will probably be included in a separate (premium) add-on.
Request from customer:
@rvdsteege mentioned the following custom solution:
The customer unfortunately failed to implement this and asked us to implement this.
Somewhat related: