We need to add custom meta tags for analytics or other tools directly into the HTML <head>. We want to avoid appending them via JavaScript or using lf-theme.
What is your project about? (e. g. Intranet, Partner Portal, Enterprise Website, etc)
Client public portal
What is your proposed solution? (optional)
Using a specific CX or a property within a specific page.
Depending on your specific use case and Liferay version, you can configure custom meta tags in the Page Settings.
To configure a specific page, open the Site Menu and go to Site Builder → Pages. Then click Actions () for the page you want to customize and select Configure.
Sorry, we described the proposed solution as applying to a specific page, which was incorrect. We need it to be applied globally, not just on one page.
Thanks for you reply!
Hi @vmosuna , One solution is to create an OSGI which implement DynamicInclude and register it to "/html/common/themes/top_head.jsp#pre" The content of your meta tag can then be write in a Custom Field (Site scope) and read in the OSGI module KR
Hi @vmosuna , One solution is to create an OSGI which implement DynamicInclude and register it to "/html/common/themes/top_head.jsp#pre" The content of your meta tag can then be write in a Custom Field (Site scope) and read in the OSGI module KR
– jconrad