How to prepare History optional for IAS Tag