Tracking New Users with variable in Customer Events Pixel

Hi y’all! First time posting here.

I’m trying to add the new user tracking variable to my customer events pixel script. There seems to be some discussion, but a lack of concrete answers/guides for setting this up.

Here are the variables I’m tracking correctly:
var orderId = event.data.checkout.order.id;
var currency = event.data.checkout.currencyCode;
var total = event.data.checkout.totalPrice.amount;

I tried also including this, but I’m getting “undefined” returned for every order:
var customerStatus = event.data.checkout.order.isFirstOrder;

Anyone have experience with this variable? Is this able to be tracked on all upgraded shopify stores?

Appreciate any and all help!

This is wrong, you should have ...checkout.order.customer.isFirstOrder

1 Like

Thanks for the help Luke!