Skip to main content

Integrate to traffic driving tags to website

Add traffic-driving tags to your websites

There are two parts: Contimo tag and Placement code.

The Contimo tag is a script like

<script async src="https://scripts.contimo.app/pub/{publisherId}/drivers.js"></script>

That needs to be added to the head section of a website HTML. It is small, cacheable, non-blocking and asynchronous.

Each placement gets a code, like

<div data-contimo-placement-key="mysite/in-feed"></div>

Add the placement code where you want it to appear. You can have multiple placements per page, even with the same key. There is no protection again, rendering the same traffic driver.

Test

Once you have your Contimo tag and Placement code on a page, you can visit it with ?contimo_dummy parameter (e.g. mysite.com/?contimo_dummy), and the dummy traffic driver will be rendered.

Also, there is a demo page that shows all your traffic driving placement codes in one place: https://scripts.contimo.app/pub/{publisherId}/demo.html. You can open it with ?contimo_dummy parameter to render dummy traffic drivers. Otherwise, Contimo will render traffic drivers to your active campaigns.

info

Please note that they will look unstyled as this page misses your website stylesheets. However, you can check if it works.

Controlling number of teasers to show

When you are using templates that render multiple traffic drivers, you have a detault maximum value configured on template level in the platform. But you can change using the data-max-tds attribute, like in the example below.

<div data-contimo-placement-key="mysite/in-feed" data-max-tds="3"></div>