The LTV is in terms of gross profit not net profit. It's the revenue minus the direct cost of fulfilling that revenue (cost of goods sold), so it would include: products, shipping, packaging, payment fees, staff time for handling, etc. It would not include: marketing, customer support (surprisingly!), R&D or creating the product, fixed costs such as offices, staff, etc.
I'm not quite sure what the best practice is on accounting for salaries of the marketing department. I think you wouldn't typically include full time employees managing marketing channels, but if you outsourced marketing to an agency you probably would account for the all-in cost to acquire customers via the agency, as they are almost their own marketing channel in a way. It really varies though, and I could be wrong on the best practice here.
It makes more sense if you think about it as a function that turns CAC into LTV.