導讀
https://developers.google.com/analytics/devguides/collection/ga4/ecommerce?hl=zh-tw&client_type=gtag
事件
https://developers.google.com/analytics/devguides/collection/ga4/reference/events?hl=zh-tw&client_type=gtag#add_payment_info
$a = 0;
if ($a == 'b') {
echo 111;
}
這邊會印出111
因為$a是數字,$a==$b這個判斷式,因為$a是數字,$b PHP也會將他轉換成數字,文字轉成數字就會變成0,所以這個判斷式成立