Global Action not working

Thank you for the suggestion Matt. The snippet gets called. But now it throws another error.

Uncaught TypeError: Cannot read property ‘push’ of undefined

XMLHttpRequest cannot load https://na34.salesforce.com/_ui/common/request/servlet/JsLoggingServlet. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://genesisextn.na34.visual.force.com’ is therefore not allowed access.

What should I look at to resolve this issue? Thanks again for your comments.