Skip to content

Setup

Generic installation instructions

Add the following line inside the <head> tag, just before the </head> tag closes.

<head>
<title>My title</title>
<meta name="description" content="My description">
<!-- Add the following line just before the closing of the head tag. -->
<script data-domain="example.com" src="https://cdn.mentionads.net/v1/script.min.js" defer></script>
</head>

Will adding the Mention Ads script slow down my website? No. The defer attribute guarantees that not only the script is not downloaded before the page finished loading, but also that it won’t execute until the page is fully loaded.

Test your installation

You can test your installation by adding the URL parameter to a page from your website, i.e. ?mentionads=debug. Open DevTools in Chrome and you should see a success message being logged. If you are having trouble confirming that your installation was successful, please reach out to [email protected].