In this note we will tell you in detail what “Custom Script” is, where you can configure it, and examples of some of the fantastic features that you can achieve on your website.
What is “Custom Script” or “Custom Code”?
Brief introductory glossary so that you know all the concepts:
HTML: It is the code that details what is the content of a website and how it is displayed
CSS: It is a graphic design language that details display and presentation aspects of your website.
Where is “Custom Script” modified in CWT Advertising?
You have to go to “Settings-> Integrations and Apps”, and there you will see “Custom Code”. Edit it to be able to enable it and start using it.
What do “head” and “body” mean?
When you incorporate third-party code into instructions, some will tell you to add it to the Head, others to the Body, or they will give you HTML code for each of these places.
Basically in the head there are general instructions of the page, and in the body is the content to be shown itself.
Examples of functions that you can add with “Custom Scripts”
Add a chat to your website
There are multiple chat solutions available. As an example, we tested Freshchat. This type of tool is ideal for sites with high volume of traffic, since it incorporates bots with automatic response, or it also automatically assigns the conversation to the available operator with the lowest workload.
Once you register on your website, Freshchat will give you the code to add in the head, and in the body
Already implemented at the bottom of your website, the chat icon will appear.
When users click there, a window like the one below opens.
Incorporate a survey to your website
GetSiteControl is another powerful tool that you can incorporate into your site. Among its functions, there is a survey creator, so that your visitors complete within your website, and you can see the results at any time.
The interesting thing about GetSiteControl, or other similar tools such as Usabilla, is that they allow you to choose who and when will see the survey, which adds important opportunities to learn more about your website users.
Examples of what you can achieve?
- Show it when the user enters your website, when they leave it, or after a certain time has elapsed
- Include or exclude it according to the access device of your visitors, being able to display it only to users who access with iPhone, or with Android, or from a PC, etc.
- That goes only in some countries or cities
Popups with promotions
Also with GetSiteControl, or with other tools such as www.aivalabs.com or www.convertflow.com, you can add a pop-up to your website, like the following:
Web Analytics Tools
There are also solutions that provide very detailed information about the behavior of your visitors on the web, storing the path that your visitors have followed.
Some of them are www.mixpanel.com, www.woopra.com, www.hotjar.com, www.optimizely.com or www.useinsider.com
We tried, for example, Hotjar, which in addition to the results, allows you to add a feedback solution so that your readers can tell you what they like about your website
Another really very useful function, and increasingly used, is that of “Push Notifications”, by which the browser sends the visitor information of interest about the web while browsing it, such as suggestions or promotions. You can achieve it with tools like www.onesignal.com or www.foxpush.com
In this tutorial we show you how to configure OneSignal
Final remarks on “Custom Scripts”
- You can add any functionality provided by third parties, which allows you to incorporate their source code to your website.
- You can implement multiple solutions.
- Carefully test each implemented functionality, and check that your website behaves properly, since an error when pasting the texts may cause errors, which obviously can be solved if they are detected in time.
If you need help to implement any of the mentioned tools, do not hesitate to consult our technical team.