When building complex web sites, you often need to use third-party JavaScript code to integrate services, such as customer analytics. You integrate services such as Google Tag Manager (GTM) or Adobe Experience Platform, which enable you to quickly and easily update measurement or other code fragments on your sites without touching the content. They can be a valuable marketing tool, in addition to Sitefinity Insight.
In this article, you learn how to integrate external scripts, such as GTM on your Sitefinity CMS sites.
NOTE: When you change the script configuration, whether adding, editing, or deleting a script, Sitefinity CMS invalidates the output page cache for all affected sites. This can reduce the performance until the cache is rebuilt. For more information, see Output cache.
To add a new script, perform the following:
<head>
<body>
NOTE: You need to enter a fully formed HTML including the <script></script> tags.
<script></script>
To edit or delete a script inside an existing configuration, perform the following:
By default, the scripts configured in the Script manager are active on every page in your web site. You can selectively disable them for a particular page. This is useful, for example, if some pages contain sensitive data.
To configure whether the Script manager is active on a particular page, perform the following:
The third-party scripts you use usually make requests to external web domains. By default, Sitefinity CMS security blocks such requests. For the integration to work properly, you need to allow these domains. Perform the following:
NOTE: Google Tag Manager is automatically enabled as a trusted source. However, if you are updating an existing Sitefinity deployment, you need to manually add its domains as described above.
Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.
This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.
This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important