How to install Continually on Drupal website

Drupal is one of the most widely used content management systems and adding Continually bots to it is easy. At the time of writing this article there are around 700,000 Drupal 7 Core installs and around 425,000 Drupal 8&9 Core installs. We will cover these three most popular versions here and if you want to use install Continually on a different version the process will be the same.

In this article

Add Continually bots to Drupal 7

1
Go to the Drupal Download & Extend section and search for a module called JS injector. Or follow this link directly to open the module.
2
Scroll to the Downloads section at bottom of the page, right click on the tar.gz file and copy the download link.

3
Go to your Drupal website and open the Modules section , click on +Install new module and paste the tar.gz link there and click Install. 
4
After installation click on 'Enable newly added Modules' , check the JS Injector and click on Save Configuration.

Note: JS Injector requires Ctools to be installed before being enabled, if you don't already have it please install it first.  

5

Now go to the Configuration tab, find the JS Injector module, click on it, and click on +Add button.

6

In the Friendly name field write Continually. Paste the following code and replace the xxxxxxxx with your appID from your Continually embed code, in Position of Javascript, choose Header, iand click Save.

var continuallySettings = { appID: "xxxxxxxx" };
var jsFile = document.createElement("script");
jsFile.src = "https://cdn-app.continual.ly/js/embed/continually-embed.latest.min.js";
document.head.appendChild(jsFile);
	

Now the bots will start showing on your website, you can also limit which pages the code is executed in by adding Conditions in the last step.

Add Continually bots to Drupal 8 & 9

1
Go to the Drupal Download & Extend section and search for a module called Asset injector. Or follow this link directly to open the module.
2
Scroll to the Downloads section at bottom of the page, right click on the tar.gz file and copy the download link
3
Go to your Drupal website and open the Extend section of the manage menu , click on +Install new module and paste the tar.gz link there and click Install. 

4
Now, let's enable the Assets Injector module. Go to the Extend section again, check the Asset Injector and click on Install.

5
Now go to the Configuration tab, find the Asset Injector module, click on it, choose the JS Injector option and click on +Add JS Injector.

6
In the Label field write Continually. Paste the following code and replace the xxxxxxxx with your appID from your Continually embed code. Check the 'Load the script in the header of the page' option and click Save.

var continuallySettings = { appID: "xxxxxxxx" };
var jsFile = document.createElement("script");
jsFile.src = "https://cdn-app.continual.ly/js/embed/continually-embed.latest.min.js";
document.head.appendChild(jsFile);
	

Now the bots will start showing on your website, you can also limit which pages the code is executed in by adding Conditions in the last step.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.