What’s an Embed?

An embed is a piece of CrashCount you place in your own page.

  • Copy a snippet or shortcode.
  • Paste it into your website editor.
  • Publish.

Your page will show CrashCount search, map, or summary content.

Start Here: Pick Your Path

I use WordPress

Install the plugin once, then use shortcodes or Gutenberg blocks for each embed type.

  1. Use the plugin ZIP install below.
  2. Pick an embed card in Embed choices.
  3. Copy the shortcode from that section and publish.

Go to WordPress install steps

Install Once (WordPress Only)

If your site is WordPress, use one plugin ZIP for all supported CrashCount embeds.

  1. Download: crashcount-crashfinder-shortcode.zip
  2. In WordPress admin: Plugins -> Add New Plugin -> Upload Plugin
  3. Activate once, then use shortcodes or Gutenberg blocks.

No WordPress? Use iFrame or Script Snippet

If your publishing system is not WordPress, start with one of these two options:

  1. iFrame path (fastest): use iFrame snippets for products that are fully self-contained inside the frame (especially Search Box + Crash Counter and strip/map embeds).
  2. Script snippet path (search-only): use the script snippet in Crash Finder Search Box Only when you need autocomplete suggestions to overflow outside a frame without clipping.

For custom CMS teams, treat these snippets as reusable components/templates in your own editor workflow.

Configure Geography (Layer + ID)

Some embeds can be pointed at a specific geography by setting two parts:

  • layer: the geography type (for example, council or borough)
  • id: the geography identifier within that layer (for example, 39 or manhattan)

Which embeds use geography?

LayerUse this forID formatExample embed URL
citywideAll NYCnyc/embed/citywide/nyc/
boroughManhattan, Brooklyn, Bronx, Queens, Staten IslandSlug (example: manhattan, staten-island)/embed/borough/manhattan/
councilNYC Council districtDistrict number (example: 39)/embed/council/39/
assemblyNYS Assembly districtDistrict number (example: 52)/embed/assembly/52/
senateNYS Senate districtDistrict number (example: 23)/embed/senate/23/
precinctNYPD precinctPrecinct number (example: 114)/embed/precinct/114/
communityCommunity boardBoard code (example: 314)/embed/community/314/
ntaNeighborhood Tabulation AreaNTA code (example: mn0801)/embed/nta/mn0801/

How to find the correct ID quickly

  1. Open the matching CrashCount geography page in your browser.
  2. Copy the last URL segment.
  3. Use that value as id with the matching layer.

Examples:

  • /council-district/39/layer=“council”, id=“39”
  • /borough/staten-island/layer=“borough”, id=“staten-island”
  • /community-board/314/layer=“community”, id=“314”
  • /neighborhood/mn0801/layer=“nta”, id=“mn0801”

Pattern reminder

  • Search + counter: https://crashcountnyc.com/embed/<layer>/<id>/
  • Strip: https://crashcountnyc.com/embed/strip/<layer>/<id>/

Which Embed Should I Choose?

GoalRecommended embedFastest setupTypical install time
One search entry point in header/homepageCrash Finder Search Box OnlyWordPress shortcode or script snippet (best)3-5 min
Search plus local totals in one widget (reliable iframe path)Search Box + Crash CounteriFrame2-4 min
You can only use iFrames and still need searchSearch Box + Crash CounteriFrame2-4 min
Map call-to-action in stories or sidebarsNYC Council Heatmap MapWordPress map shortcode or iFrame3-6 min
Very compact metrics strip above/below articlesThin CrashCounter StripWordPress shortcode or iFrame2-4 min

CrashCount Embed Choices

How They Work

WordPress Plugin

Best for non-technical editors. No iframe clipping. One install, then reusable shortcodes/blocks.

iFrame

Fastest universal option across CMS tools. Best when plugin/script install is restricted.

Script Snippet / Linked Image

Good for custom CMS teams or very lightweight map call-to-action placements.

Crash Finder Search Box Only

Important: If you need autocomplete suggestions to extend beyond a frame, use the WordPress plugin or script snippet. Search-only in an iFrame can clip dropdown suggestions at the frame boundary.

What it looks like

Types

WordPress Plugin Recommended for most publishers

Pros

  • No iframe clipping.
  • Easiest editorial workflow.
  • Uses the same search behavior as CrashCount /find.

Cons

  • Requires one-time plugin install by a WordPress admin.

How to do it

  1. Download plugin ZIP: crashcount-crashfinder-shortcode.zip.
  2. In WordPress admin: Plugins -> Add New Plugin -> Upload Plugin.
  3. Install and activate.
  4. Paste this shortcode into your page/post.

WordPress shortcode

Click the box to select all, then copy.

iFrame

Pros

  • Works on almost any platform that allows iframe tags.
  • No plugin install required.

Cons

  • Suggestion panel is confined to iframe boundaries and can clip longer result lists.
  • Not the recommended path if search UX quality is the priority.

How to do it

  1. Add a Custom HTML block (or equivalent) in your CMS.
  2. Paste this iframe snippet.
  3. If clipping is a problem, switch to plugin/script snippet or use Search Box + Crash Counter.

Search-only iframe

Click the box to select all, then copy.

Other Options (Script Snippet)

Pros

  • No WordPress plugin required.
  • No iframe clipping.

Cons

  • Requires custom HTML + JavaScript permissions in your CMS.

How to do it

  1. Open your CMS Custom HTML/Code block.
  2. Paste the full snippet below.

Script snippet (non-WordPress CMS)

Click the box to select all, then copy.

Back to top ↑

Crash Finder Search Box + Crash Counter

What it looks like

Types

iFrame Recommended for this product

Pros

  • One copy-paste snippet.
  • Works across CMS platforms.
  • Search interactions stay inside the module, so this is the reliable iFrame search option.

Cons

  • Module height must be managed with iframe height.

How to do it

  1. Pick your layer and id from Configure Geography (Layer + ID).
  2. Paste the snippet and replace the sample URL if needed.

Search + crash counter iframe

Click the box to select all, then copy.

WordPress (Custom HTML block or iframe shortcode plugin)

Pros

  • No custom plugin development required.
  • Editors can reuse one approved block pattern.
  • Good fallback when your team can only ship iFrames in WordPress.

Cons

  • Depends on iframe permissions for your editor role.

How to do it

  1. In Gutenberg, use a Custom HTML block and paste the iframe snippet above.
  2. If your WordPress strips iframes, ask admin to install iframe shortcode plugin.
  3. Use this shortcode format.

WordPress iframe shortcode

Click the box to select all, then copy.

Back to top ↑

NYC Map With Council Regions

What it looks like

Types

WordPress Plugin (Map tout) Recommended for map call-to-action

Pros

  • No iframe permissions needed.
  • Fast load and simple editorial workflow with static image by default.
  • Clicking opens the full interactive council map page.
  • Size can be configured with shortcode attributes.

Cons

  • Best used as a compact preview card, not a full-page map replacement.

How to do it

  1. Install the CrashCount plugin ZIP from this page (same plugin as search-only widget).
  2. Add shortcode below in any page/post.
  3. Optional: set headline and as_of_text to custom copy.
  4. Optional: set window (example: 2026_ytd) to keep the linked council page in sync.

WordPress council map shortcode

Click the box to select all, then copy.

WordPress council map shortcode (custom text + year window)

Click the box to select all, then copy.

Default yearly behavior

  • Before January 15: defaults to prior year full totals.
  • On/after January 15: defaults to current year-to-date totals.
  • The same window is passed to the linked council page so map + leaderboard stay aligned.

iFrame (Map tout)

Pros

  • Compact and lightweight.
  • Shows hosted static map image (no live map runtime cost on page load).
  • Clicking opens the full map-first council page.

Cons

  • Not interactive inside the iframe preview.

How to do it

  1. Paste iframe snippet below into your page.
  2. Keep height around 520-620 based on layout.

Council map tout iframe

Click the box to select all, then copy.

iFrame (Interactive full map)

Pros

  • Fastest setup for map-based browsing.
  • Uses the same map and leaderboard as CrashCount.

Cons

  • Needs more iframe height for a good experience.

How to do it

  1. Paste iframe into your page.
  2. Keep height at or above 900 for desktop.

Council map iframe

Click the box to select all, then copy.

Back to top ↑

Thin CrashCounter Strip

What it looks like

Types

WordPress Plugin Recommended for most publishers

Pros

  • Very compact one-line style for article pages and sidebars.
  • Window-aware click-through to the matching CrashCount page.
  • Responsive labels: full metric names on wider layouts, icon-only chips on narrow layouts.
  • Theme-aware styling (auto-adapts to dark mode).
  • No iframe permissions needed.

Cons

  • Requires one-time plugin install by an admin.

How to do it

  1. Install the CrashCount plugin ZIP (same installer used for all plugin embeds).
  2. Pick your layer and id from Configure Geography (Layer + ID).
  3. Paste the shortcode for your geography.

WordPress shortcode (citywide)

Click the box to select all, then copy.

WordPress shortcode (example district)

Click the box to select all, then copy.

iFrame

Pros

  • Works in most CMS platforms.
  • Easy to swap geographies by URL path.

Cons

  • Requires iframe support in your CMS/editor role.

How to do it

  1. Use a Custom HTML block (or equivalent) in your CMS.
  2. Pick your layer and id from Configure Geography (Layer + ID).
  3. Paste the snippet below and adjust layer/id if needed.

Crashcounter strip iframe

Click the box to select all, then copy.

Back to top ↑

Developer Quick Reference

Use this section when you need canonical URL patterns and production-safe defaults.

Canonical URL patterns

  • /embed/search/
  • /embed/<layer>/<id>/ (search + crash counter)
  • /embed/council-map/
  • /embed/strip/<layer>/<id>/?window=auto

Valid layers: borough, council, assembly, senate, precinct, community, nta, citywide.

Production snippet checklist

  • Use https://crashcountnyc.com URLs for public embeds.
  • Set iframe width="100%" and explicit height.
  • Use target="_top" when you need links to break out of iframes.
  • Keep loading="lazy" enabled unless above-the-fold is required.

Need Help / Troubleshooting