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 08, 2017

Applies to:

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

Symptoms

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:

 

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms