| 1 | <?php |
||
| 16 | class Jetpack_Google_Analytics_Utils { |
||
| 17 | /** |
||
| 18 | * Gets product categories or varation attributes as a formatted concatenated string |
||
| 19 | * @param WC_Product |
||
| 20 | * @return string |
||
| 21 | */ |
||
| 22 | public static function get_product_categories_concatenated( $product ) { |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Gets a product's SKU with fallback to just ID. IDs are prepended with a hash symbol. |
||
| 49 | * @param WC_Product |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | public static function get_product_sku_or_id( $product ) { |
||
| 63 | } |