This seems like a really clunky way to do it, and totally undermines the value of smart content. Hubspot's main selling point for many is not having to write code to accomplish really cool things...
Have you figured out a better way yet? It has been 3 years since this request.