How to check if SiteLint is working
Content Security Policy
Is your site protected by the Content Security Policy (CSP)? If it does, you must add platform.sitelint.com
and auditor.sitelint.com
to the list of allowed domains.
Apache example:
Header add Content-Security-Policy "script-src https://auditor.sitelint.com; connect-src 'self' https://platform.sitelint.com;"
Google Tag Manager
The SiteLint code snippet may not work when loaded by Google Tag Manager. A common reason is that Google Tag Manager is blocked by ad blockers.
Script tags type attribute hash prepended
If the SiteLint code snippet has the type
attribute prepended with a hash, like <script type="ea80e272b0a1989fb2f3aa4e-text/javascript">...</script>
and you’re using Cloudflare services, then the root cause is the Cloudflare Rocket Loader.
You can:
- Disable Cloudflare Rocket Loader. Switch toggle option to
off
. - Add the attribute
data-cfasync="false"
to the SiteLint code snippet<script data-cfasync="false" src="..."></script>
. - Login to Cloudflare and then contact Cloudflare Support by activating the Get More Help button.
See article: Resolving the script tag type attribute hash prepending issue with Cloudflare.