Question

Custom script to <head>

Hi community, 

 

I am looking to place a custom script (widget) to display on all pages. Does anyone know the best way to do this? 



I have adjusted system setting to activate google tag manager, but not having any luck displaying the widget. 





Thanks!

Harry

Like 0

Like

4 comments

Greetings,



Your can implement such behavior by following our guide on the Academy page: https://academy.creatio.com/docs/developer/interface_elements/dashboard…

Hi Mykhailo, I was referring to a chat "widget" or in this exact instance a widget that the team can use to report bugs in Creatio (implementation) or request features. 

Hi Harry,

 

You need to add additional button to the ContextHelpSchema (for example like it's done for the askSupportMenuItem in the schema diff):

{
				"operation": "insert",
				"name": "askSupportMenuItem",
				"parentName": "HelpButton",
				"propertyName": "menu",
				"values": {
					"caption": {"bindTo": "Resources.Strings.AskSupport"},
					"markerValue": {"bindTo": "Resources.Strings.AskSupport"},
					"itemType": this.Terrasoft.ViewItemType.MENU_ITEM,
					"click": {"bindTo": "callMailTo"},
					"tag": "support",
					"imageConfig": resources.localizableImages.Support
				}
			},

and in your custom button you can either use already implemented callMailTo method (so your users could report bugs or features via email) or create your own method (to open some URL or oepn some page). As a result this button will be available on any page and your business task will be achieved.

Hi Oscar, 



Thank you for the input. 



I am actually just simply looking to allow an external script to be run, so my widget can appear at the bottom right of the screen. I am using https://gleap.io , but this is similar to any third party chat app. 



Is there anything stopping this from working as it seems like Google is picking up the G-tag. 

 

Thanks

Show all comments