Discovery

Embed Discovery in your site

Show a community's Discovery pages inside your own website with an iframe, and set them up with URL parameters.

Discovery is the public site of each of your communities: the master plan, the models, amenities, galleries and location, with lead forms on every page. You can link to it, or show any of its pages inside your own website with an <iframe>.

Every page has the same address pattern:

https://discovery.acantera.com/<organization>/<community>/<page>
PagePath
Home/<organization>/<community>
Master plan…/masterplan
Models…/modelos
Amenities…/amenidades
Galleries…/galerias
Location…/ubicacion

You'll find your community's address in Acantera Studio, on the community's page.

Quick start

<iframe
  src="https://discovery.acantera.com/<organization>/<community>/masterplan?embed&lock=auto"
  style="width: 100%; height: 100vh; border: 0"
  allow="fullscreen; clipboard-write"
></iframe>
  • ?embed shows the page on its own, without Discovery's menu, so it fits in your site.
  • lock=auto keeps the iframe from capturing your page's scrolling until the visitor clicks it (see Scroll lock).
  • allow="fullscreen" lets galleries and plans open full screen.

To react to what visitors do inside the iframe (a lead sent, a lot reserved), listen to its events.

URL parameters

Add them to the iframe's src (or to any Discovery link). Parameters are kept as the visitor moves around the community, and a value that isn't recognized is ignored.

ParameterPagesValuesEffect
embedEvery community pagebare, 1, true (false/0 turn it off)Embed mode: no navigation menu and no links to the other sections. Lead forms stay available.
lockEvery pageon, off, autoStarts the page behind a transparent layer that leaves scrolling to your page until the visitor clicks. auto: only in an iframe.
eventsEvery community pagenone, a list such as lead.*,reservation.*Which events are sent to your page. All of them by default.
brokerEvery community pagea broker's handleShows that broker's profile next to the lead forms and credits new leads to them.
itemMaster planan inventory item idOpens that lot on load: its details show and the plan zooms onto it, on the plan it's drawn on.
itemsMaster planan inventory item idSame as item when it holds a single id. A list of several ids opens nothing.
viewMaster plana plan view idOpens that sub-plan (a phase, a building, a floor). Unknown ids open the site plan.
viewModelsphotos, plans, tourThe view a model opens on. Photos when the model doesn't have the one asked for.
collapsedMaster planbare (false/0 turn it off)Starts with the sidebar folded away on wide screens, so the plan takes the full width.
modelModelsa model's slug or idThe model to show.
guideMaster plan, Modelson, offon starts the guided tour of the plan's points of interest; off hides its button.
stopMaster plan, Modelsa number, from 1With guide=on: the stop the tour starts on.
poisModelson, offShows or hides the pins on the model's floor plans. Shown by default.
utm_*Every community pageyour campaign's valuesSaved on every lead the visitor creates (see Campaign attribution).

Some examples:

…/masterplan?embed&item=<inventory-item-id>
…/masterplan?embed&view=<plan-view-id>&collapsed
…/masterplan?embed&guide=on
…/modelos?embed&model=casa-roble&view=plans
…/modelos?embed&model=casa-roble&guide=on&stop=2
…/masterplan?embed&broker=ana-lopez&events=lead.*

Credit leads to a broker

?broker=<handle> is how a broker shares a community: the page shows their profile above the lead forms, and every lead sent from that visit is assigned to them. Brokers copy their link from their profile in Studio, and the broker's page in Studio has it too. On an embed, add it to the iframe's src to credit the leads from that page to one broker.

Open a lot, a plan or a model

Use item to land on one lot (for example from a "See on the master plan" button on your own lot page), view to land on a phase, a building or a floor, and model with view to open a model on its photos, floor plans or virtual tour.

Guided tour

The master plan and the models' floor plans can carry points of interest with a guided tour. guide=on starts it as the page opens and opens the model's floor plans; stop=<n> picks the first stop. While the tour runs, both stay in the URL with the current stop, so copying the address shares that stop. guide=off hides the "Recorrido guiado" button.

Scroll lock

A plan or a gallery inside an iframe captures the mouse wheel and touch scrolling, so a visitor scrolling down your page can get stuck in it. With lock=on (or lock=auto, which only locks inside an iframe), the page starts behind a transparent layer: scrolling over it scrolls your page, a "click to interact" circle follows the cursor, and one click releases it.

Campaign attribution (UTM)

Discovery saves the utm_source, utm_medium, utm_campaign, utm_term and utm_content of the address it loads with on every lead it creates (from the lead forms and from self-service reservations), so your team sees which campaign brought each lead.

An iframe can't read your page's address, so forward your own UTM parameters onto the iframe's src:

<iframe id="discovery" style="width: 100%; height: 100vh; border: 0"></iframe>
<script>
  const src = new URL("https://discovery.acantera.com/<organization>/<community>/masterplan?embed");
  for (const [key, value] of new URLSearchParams(location.search)) {
    if (key.startsWith("utm_")) src.searchParams.set(key, value);
  }
  document.getElementById("discovery").src = src.toString();
</script>