Big Crunch

Search Documentation

Search across all documentation pages

Installation

Configure the snippet below with your Property ID, toggle the integrations you use, and paste the result into the <head> of every page on your site — as early as possible.

Find your Property ID underWebsitesSettingsGeneralin the dashboard.

<!-- Geo -->
<link rel="preload" as="fetch" href="https://geo.bigcrunch.com/" crossorigin="anonymous">

<!-- CMP -->
<link rel="preload" as="fetch" href="https://cdn.bigcrunch.com/cmp/config/YOUR_PROPERTY_ID.json" crossorigin="anonymous">
<script async src="https://dist.bigcrunch.com/cmp/cmp.js" data-property-id="YOUR_PROPERTY_ID" crossorigin="anonymous" fetchpriority="high"></script>

<!-- Prebid -->
<link rel="preload" as="script" href="https://cdn.bigcrunch.com/prebid/YOUR_PROPERTY_ID.js" crossorigin="anonymous">

<!-- Core -->
<link rel="preload" as="fetch" href="https://cdn.bigcrunch.com/config/YOUR_PROPERTY_ID.json" crossorigin="anonymous">
<script async src="https://dist.bigcrunch.com/lighthouse/main.js" id="bigcrunchtag" data-property-id="YOUR_PROPERTY_ID" crossorigin="anonymous" fetchpriority="high"></script>

What the toggles do

  • Consent Management Platform — Big Crunch's CMP. Turn off if you run a different one.
  • Prebid — preloads the per-property Prebid bundle. Turn off if your property doesn't run header bidding.

Content Security Policy

Lighthouse and the CMP inject their stylesheets at runtime, so a strict CSP must allow style-src 'unsafe-inline' (or a nonce) for our origin.

Queueing commands before the bundle loads

To push commands onto BCLighthouseTag.cmd before main.js finishes loading, declare the queue first:

<script>
  window.BCLighthouseTag = window.BCLighthouseTag || { cmd: [] };
  BCLighthouseTag.cmd.push(function () {
    /* runs once main.js is ready */
  });
</script>

Support

Need help? Contact support@bigcrunch.com.