We’re here to support you. Our statement, resources and product updates:

COVID-19 Updates

How Can I Use Javascript?

Last updated:

JavaScript is a scripting language that enables you to create dynamically updating content on your page, control multimedia, animate images, and much more.

You can use the JavaScript field in the Customizations tab to embed custom scripts to your Cobot site. JavaScript entered here will be appended as a script to the head element of all of your public and admin pages.

If you're using Google Analytics, use this JavaScript to add your tracking code to Cobot or get in touch with support and send your code to us:

        gtag('config', 'YOUR GOOGLE PROPERTY ID', {
          'cookie_name': 'YOUR COBOT SUBDOMAIN',
          'cookie_domain': 'YOUR CUSTOM DOMAIN OR .cobot.me IF YOU DO NOT HAVE SET ONE'
        gtag('event', 'page_view', { 'send_to': 'YOUR GOOGLE PROPERTY ID' });

Click here to read more on how to use Google Anaylytics within Cobot.


Try Cobot For Free

Start your free 1 month trial. No commitment or credit card required.

Get Started for Free Request a personal demo