That really helps, thanks. So it *is* possible to output your example usage:
ga('create', 'UA-XXXX-Y', {'cookieExpires': 86400});
Setting it up does require adding two lines of code to your theme (or child theme) functions.php file (or can be added via simple plugin). Here are the steps:
1) Add the following code snippet:
function ga_google_analytics_enable_auto($enable_auto) { return false; }
add_filter('ga_google_analytics_enable_auto', 'ga_google_analytics_enable_auto');
2) Then add {'cookieExpires': 86400}
to the GA setting, “Custom Tracker Objects”.
Save changes and done.
Tip: Make sure that any quotes (single or double) that you want to include are straight quotes and not curly quotes. If you look at your pasted example, the quotes are curly not straight, so the code will not work. Compare with the quotes in the above example.