I'm running google analytics in the head of the page. For performance I'm loading other code like facebook or jQuery Business Logic async deferred at the end of the body.
Is google universal analytics tracking correctly if ga('set', 'contentGroup1', 'Cat1') or ga('set', 'dimension1', 'customdimension1'); are fired anythere in the body and not before ga('send','pageview')?
Schematic Example:
<html>
<head>
...
ga('send','pageview')
...
</head>
<body>
ga('set', 'contentGroup1', 'Cat1')
</body>
</html>