Websites & CMS
Embed Microsoft Bookings in DNN (DotNetNuke)
DNN sites, often run by Microsoft-centred organisations, can show a Microsoft Bookings calendar with an ordinary HTML module. The one trap is the rich text editor, which removes script tags by default. Put the snippet in the module's Header field instead and it renders on your page with full tracking.
- Integration
- DNN (DotNetNuke)
- Plan: Free
- Works on every plan, including Free ($0, no card).
- In short
- The snippet in an HTML module's Header field, shown on one page or on every page for a floating button, or in your skin.
- Microsoft Bookings
- Stays your system of record. Bookings land in Outlook and Teams and Microsoft sends the invites and reminders.
- Trademarks
- DNN is a trademark of its owner. BookingsXP is independent and not affiliated with or endorsed by DNN.
What happens with DNN (DotNetNuke)
- The HTML module's editor removes script tags from content by default, as a security measure. The Header and Footer fields under the module's Advanced Settings are written to the page as they are, so the loader script survives there.
- Code in the module header renders inside your DNN page, not in a frame, so the widget resizes itself and its events reach the GTM or Google tag on your site.
- A module set to Display Module On All Pages carries a floating button to every page. Skins can include the snippet too, if you maintain your own.
Set up DNN (DotNetNuke)
Step 1: Add an HTML module
Go to the page, switch to edit mode, add a module, choose HTML and drop it into the pane where the calendar belongs. Give it a title; you can hide the container later.
Step 2: Paste the snippet into the module Header
From the module's actions menu choose Manage → Settings. On the Settings tab, expand Advanced Settings and paste the script and element into Header. Save. Leave the module's content empty, or use it for an introduction above the calendar.
HTML <script src="https://bookingsxp.com/embed/v1.js" async></script> <bookingsxp-widget widget="w_8fk2m1qz"></bookingsxp-widget>Step 3: Optional: a floating button on every page
Use a separate HTML module with the floating element in its Header, and in Advanced Settings tick Display Module On All Pages. Untick Display Container so the empty module takes no space.
HTML <script src="https://bookingsxp.com/embed/v1.js" async></script> <bookingsxp-widget widget="w_8fk2m1qz" mode="floating" button-text="Book now" accent="#111827"></bookingsxp-widget>Step 4: Or: in your skin
If you maintain a custom skin, add the script and a floating element to the skin's .ascx file just before its closing markup. It then appears on every page that uses the skin. Keep a copy: skin upgrades overwrite the file.
Step 5: Check it as a visitor
Log out, or use a private window, and open the page. Edit mode adds its own toolbars, so judge the layout as a visitor. Step through the widget, check GTM Preview for bookingsxp.* events if you use GTM, and cancel the test booking in Microsoft Bookings.
Outcomes and caveats
What you get
- Microsoft Bookings availability inside a DNN page, in your accent colour, resizing to its content.
- Inline, popup or floating, from the same Header field.
- Booking events and campaign attribution on your own DNN domain.
Limits and caveats
- Do not paste the snippet into the HTML editor's content: the editor removes script tags by default. Turning off script removal in the editor's settings is possible but weakens a security default.
- Menu names here follow DNN 9 and later with the Persona Bar. Older versions and Evoq's HTML Pro module label things differently; look for the module's settings, Advanced Settings and Header.
- We have not tested every DNN version, skin and page cache setup. If something behaves differently, tell us at hello@bookingsxp.com.
Troubleshooting
- The script disappeared after saving the module content.
- The rich text editor removed it. Delete what is left in the content and paste the full snippet into the module's Header field under Advanced Settings instead.
- The Header change does not show for visitors.
- DNN or a page output cache is serving the old page. Clear the cache from the Persona Bar (Settings → Servers in DNN 9) or wait for the cache to expire, then reload in a private window.
- Two floating buttons appear on some pages.
- The floating element is in more than one place, such as an all-pages module and the skin. Keep one.
- The widget is narrow or squeezed.
- It takes the width of its pane. Move the module to a wider pane, or use a full-width page layout.
DNN (DotNetNuke) questions
Start free, no card
One widget, four templates, GTM and GA4 events and attribution in every booking. No card, no time limit.
No Microsoft sign-in or admin consent. Free plan, no card.