Optocoupler (Analog or Digital)
I think the analog part might be achievable by using your analog signal as a variable gain amp that has a a constant voltage source as an input, as suggested in the datasheet.  I'm not real familiar w/ this IC choice, but it looks doable with the choice of IC (I just don't know how well!).  If money were no object, I would have suggested something like an HCNR200 (at least for non-neg signals), but its for production.