Here are the details where you use some tricks to get a customer is new or old and pass it on instantly into the postback URL.
Basic pixel looks like this
<!--Offer Conversion: _CPS -->
<iframe src="https://track.bodycupid.store/success.php?offer_id=2&afsecure=f2d830a67fdacbce5a64953a1d17ed80&afid={order_id}&afprice={order_amount}&afgoal={New/Old_User}&custom_field1={order_amount}&afstatus=1&promo_code={add_User_Applied_PromoCode_Here}" height="1" width="1"/>
</iframe>
<!-- End Offer Conversion -->
where :
afid=order id
afprice=order value
afgoal=New/returning User
Custom_field1=Order value
promo_code=pass the promo code which the User applied while checkout.
afstatus=1. ---> the orders are approved - can be declined afterwards but you will be able to see the revenue, payout and earning
Settings - > checkout - > Additional scripts
Add the following code
<iframe src="https://track.bodycupid.store/success.php?offer_id=2&afsecure=f2d830a67fdacbce5a64953a1d17ed80&afid={{ order_number }}&afprice={{ total_price | money_without_currency | remove: "," }}&afgoal={% if customer.orders_count == 1 %}1{% else %}2{% endif %}&custom_field1={{ total_price | money_without_currency | remove: "," }}&afstatus=1&promo_code={{discount_code}}" height="1" width="1"/>
</iframe>
Where I used the trick with Shopify customer which at least did at least one order before then the value of customer.orders_count would be anything >1, otherwise, it should be 1. (based on email id )
afgoal={% if customer.orders_count == 1 %}1{% else %}2{% endif %}
Here, 1 => New Customer
2 => Old Customer