Google Analytics Cloud Service Configuration inside the head element
I've successfully added the Google Analytics snippet as a Cloud Service Configuration (Generic Analytics Snippet) and it's being rendered by
<sly data-sly-resource="${@ resourceType='cq/cloudserviceconfigs/components/servicecomponents'}" data-sly-unwrap/>
which is placed immediately before the </body> end tag as specified on https://docs.adobe.com/docs/en/aem/6-2/develop/personalization/target.html (The body Section (end)).
But Google recommends that "The code should be added before the closing </head> tag", https://developers.google.com/analytics/devguides/collection/analyticsjs/.
So what to do? Would I break it for other servicecomponents if I move it inside the head section or could I somehow specify that only the Google Analytics service configuration should be placed within the head section?