Manual Installation

If a plugin isn’t available for your website, you can still easily integrate Zaraz manually.

Snippet Integration

For quick and simple integration, Zaraz supports old fashion snippet integration. Just paste the following JavaScript script in your website layout template, just above the </head> closing tag:

<script src="//zrz.co/z-{{ zaraz-account-number }}/i.js"></script>

Remember to replace {{ zaraz-account-number }} with your account number.

Continuous Deployment Integration

Note: You do not need to enable CI/CD integration when using a Zaraz plugin, as the plugin will configure it automatically!

Zaraz also features a CI/CD integration method that prefetches its loader script. This will improve website performance even further. The general procedure is fairly simple, but the details are dependant on your setup:

Create a placeholder script in your website layout template, just above the </head> closing tag.

<script id="zarazLoader"></script>

As part of your CI/CD build procedure, fetch the following URL and inject its content into the script.

https://zrz.co/z-{{ zaraz-account-number }}/i.js

Remember to replace {{ zaraz-account-number }} with your account number. Our team will gladly help with configuring your Continuous Deployment procedure.