Skip to main content
Google Tag Manager can add the Brudcast site script to every page of your site without editing its code. Popups then work on every page the container runs on.
Before you start: add the website under Contacts > Forms > Websites and copy its install snippet. See Add a website. Your site must already load your Google Tag Manager container.

Install the site script

1

Create a tag

In your container, go to Tags and select New. Name it Brudcast site script.
2

Paste the snippet

Select Tag Configuration, choose Custom HTML, and paste the install snippet:
3

Fire it on every page

Select Triggering and choose All Pages. Save the tag.
4

Preview, then publish

Select Preview to check the tag fires, then Submit and Publish the container. Open your site, and the website in Brudcast changes to Connected.
If the site script is also in your site’s theme, leave both. It only runs once on a page.

Embed a form on chosen pages

The script embed needs a div in the page where the form goes, and Tag Manager can’t place content inside your page reliably. Add the div to the page in your site’s own editor, then load the embed script from Tag Manager:
  1. Paste <div data-brudcast-form="your_form_id"></div> where the form should appear.
  2. Create a Custom HTML tag with <script src="https://forms.brudcast.com/embed.js" async></script>.
  3. Trigger it on Page View for the pages that carry the form, or on All Pages.
If your site adds the div after the page loads, add window.BrudcastForms.mount() to a tag that fires once it’s there.

Popups

Create the popups the script shows.

Embed a form

Embed variants, layouts and prefill.