Direct Integration Guide
This guide explains how to directly integrate Missena's script into your website.
Integration Steps
1. Get Your Script
Obtain your unique Missena script with the following format:
html
<script
type="text/javascript"
async
src="https://ad.missena.io/?t=PA-XXXXXXXX"
></script>Note
Replace PA-XXXXXXXX with your unique publisher key provided by Missena. If you want to trigger other placements than dynamic footer please add the following parameter in the script:
- Static footer:
&placement=footer - Header:
&placement=header - Prestitial:
&placement=prestitial - Postitial:
&placement=postitial - In-feed:
&placement=infeed - In-feed small:
&placement=infeed.s
Note that dynamic footer is the default placement when no placement parameter is specified.
Example with placement parameter:
html
<!-- Example for header placement -->
<script
type="text/javascript"
async
src="https://ad.missena.io/?t=PA-XXXXXXXX&placement=header"
></script>2. Add the Script to Your Pages
Insert the script immediately after the <head> tag on every page of your website:
html
<html>
<head>
<!--Missena-->
<script
type="text/javascript"
async
src="https://ad.missena.io/?t=PA-XXXXXXXX"
></script>
...
</head>
<body>
...
</body>
</html>Note
This applies to every placement except in-feed: those position themselves on the page, so the tag can sit in the <head>. An in-feed unit appears where you put its tag, so it is placed differently — see below.
3. In-Feed Placements
An in-feed ad renders in place, right after its own script element, so the tag goes in the <body> at the point where the ad should appear:
html
<html>
<head>
...
</head>
<body>
<h1>Today's headlines</h1>
<p>
Maecenas ultrices vulputate finibus. Nunc scelerisque lectus sit amet
tellus porta, a semper nibh faucibus.
</p>
<!--Missena-->
<script
type="text/javascript"
async
src="https://ad.missena.io/?t=PA-XXXXXXXX&placement=infeed"
></script>
<p>
Aenean tempor eros at justo dictum, a semper ligula iaculis. Mauris
sollicitudin arcu massa, quis sollicitudin mi tempus vitae.
</p>
</body>
</html>Note
An in-feed tag placed in the <head> has no position to render at, so its ad is appended to the end of the page instead.
Several In-Feed Units on One Page
A page can carry more than one in-feed unit — one between each pair of articles, for example. Give each tag its own slot parameter so they stay independent:
html
<html>
<head>
...
</head>
<body>
<p>
Maecenas ultrices vulputate finibus. Nunc scelerisque lectus sit amet
tellus porta, a semper nibh faucibus.
</p>
<!--Missena-->
<script
type="text/javascript"
async
src="https://ad.missena.io/?t=PA-XXXXXXXX&placement=infeed&slot=1"
></script>
<p>
Aenean tempor eros at justo dictum, a semper ligula iaculis. Mauris
sollicitudin arcu massa, quis sollicitudin mi tempus vitae.
</p>
<!--Missena-->
<script
type="text/javascript"
async
src="https://ad.missena.io/?t=PA-XXXXXXXX&placement=infeed&slot=2"
></script>
<p>
Curabitur blandit maximus odio, vel euismod dolor ultrices vitae. Nullam
molestie rhoncus diam maximus ullamcorper.
</p>
</body>
</html>The value may contain letters, digits, hyphens and underscores, up to 32 characters — slot=2, slot=mid-article, slot=sidebar_b. Anything else is ignored, and the tag behaves as though no slot had been given.
Note
Without slot, two tags for the same placement share one identity: the second one takes over the first one's ad, and only one ad is displayed. A single in-feed unit on the page needs no slot, and tags on different placements never need one.
Need Help?
If you encounter any issues during implementation, please contact your Missena account manager or support team.