My Oracle Support Banner

Location of Javascript Tags Change in Page Source from BODY to HEAD After Login or Refresh of Page Affecting Google Analytics Reporting (Doc ID 1518364.1)

Last updated on MARCH 21, 2024

Applies to:

Oracle WebCenter Portal - Version to [Release 11g]
Information in this document applies to any platform.


Trying to add the following Javascript to the page template for Google Analytics, however we are seeing that accessing the Spaces Page in public view the code is placed into the BODY tag instead of the HEAD tag as it should. If you login to Spaces and access the same page and view the source you see the code in the HEAD tag which is correct. So the location is changing based on if your logged in or not.

The code added to the page template is as follows:





To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.