Millennials will surpass baby boomers as the largest pet-owning generation in about three years, according to Stifel Equity Research, and they'll make up almost half of the workforce by 2020. Now companies are looking to attract those younger employees by letting pets into the office.

A 2015 Society for Human Resource Management survey found 8 percent of American workplaces allow employees to bring their furry loved ones to work, and up from 5 percent in 2013. The same survey found 9 percent of companies such as Google offered pet health insurance to employees, which also marks an increase in recent years.