After installing Clym on your website, advanced users might want to customize the default configurations for the services that are running on the website.
By default, Clym offers automatic blocking for the services, which means the widget identifies the running services on your website, adds them to services and the website visitors have control to opt-in or opt-out of those services. This happens automatically all the time.
However, even if we continuously try to optimize this automatic process as much as possible, there might be cases when some additional manual overseeing is required and you want to gain more or full control of what's happening with the scripts on your website. Here is how you can do it:
Automatic blocking
If you still would like to enjoy the feature of automatic scripts management but there are certain scripts that you don't want to block in any scenario, you can exclude certain scripts by adding data-clym-blocking="restrict-blocking" attribute to the script itself, like this:
<script src="https://myownscript.com" data-clym-blocking="restrict-blocking"></script>
If you use automatic blocking with additional "restrict-blocking", regardless of the user's preference, it will always load in.
To turn off the restriction, you can just simply remove the attribute from the script.
Explicit blocking
If you would like to gain full control of the scripts running on your website, you have the option to switch to explicit blocking. This will make sure the Clym widget will not block anything unless set explicitly in the source code. Add the following attribute to the main blocking.js script.
<script src="https://widget.clym-sdk.net/blocking.js" data-explicit-blocking="allowed"></script>
If this is setup, a script is being blocked only if that script has this following attribute:
<script src="https://myownscript.com" data-clym-blocking="allow-blocking"></script>
In this case, Clym won't add it to the list of services anymore, will simply ignore it.
If you encounter any challenges, please reach out to us at support@clym.io.