My Oracle Support Banner

Adding Google Tag Manager Code Snippet to a WebCenter Portal Template Results in Error: <script> tag must not be included in a <form> (Doc ID 2866845.1)

Last updated on OCTOBER 16, 2023

Applies to:

Oracle WebCenter Portal - Version and later
Information in this document applies to any platform.


Adding Google Tag Manager code snippet to a WebCenter portal template results in the following error when viewing a page using the page template:


<script> tag must not be included in a <form>



The issue can be reproduced with the following steps:

  1. Generate tags with Google Tag Manager.
  2. Add tags to a WebCenter Portal page template.
  3. Set the page template in a portal.
  4. Install the "Google Tag Assistant Legacy" extension for Chrome browser.
  5. View a page in the portal using Chrome browser.
  6. Enable the Google Tag Assistant Legacy.
    Here the error is displayed:






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.