Return on investment for advertising is very simple:
net present average customer lifetime value acquired per unit of advertising cost
If it's over unity, you're making money with advertising, if it's not, you're wasting money on advertising or need to increase your CLTV or decrease your discount rate.
You put a cookie on their machine when they hit your website, tracking where they came from, and exactly how much you paid for that visit (because FB will give you which cohort they came from).
Then you track that to a sale, and you can determine how much you made from them.
If it is a single sale, then that's basically it (obviously you track return visitors and amortize the cost of them against that too).
If it is a SAAS, then customer value calculation is a little more complicated (you record how long people stay with you etc).
net present average customer lifetime value acquired per unit of advertising cost
If it's over unity, you're making money with advertising, if it's not, you're wasting money on advertising or need to increase your CLTV or decrease your discount rate.