Mautic Ad Manager

Central ad management for the Mautic Community

API Endpoints

GET /api/ads?slot=topic-list-top&limit=1

Returns active ads for a given slot with weighted random selection.

POST /api/track

Log impression or click events. Body: {"ad_id", "event_type", "slot", "referrer"}

GET /api/stats?days=30

Stats JSON (requires Panel login).

Embed Snippet

Add this to any page to display ads:

<div data-mautic-ad data-slot="website-homepage"></div>
<script src="https://ads.moorwald.dev/assets/js/embed.js" async></script>

Available Slots

topic-list-top          Discourse: Top of topic list
topic-above-post-stream Discourse: Above posts
topic-above-suggested   Discourse: Above suggested topics
post-bottom             Discourse: Below posts
topic-list-between      Discourse: Between topics
website-homepage        Website: Homepage banner
website-download        Website: Download page
website-sidebar         Website: Sidebar