Website Script and Forms
Install the Marcenta website script directly or through Google Tag Manager, verify it, discover forms, and maintain field mappings.
The Marcenta website script connects approved website forms to Lead Routing and Calendar Booking. It observes supported form submissions, sends the configured mapped values to Marcenta, and opens the booking experience when the selected routing outcome allows it.
The script does not route every form it sees. A website must have its own Marcenta configuration, the script must load from an allowed origin, and each form must be reviewed and enabled before its submissions participate in routing.
Before installation
Identify:
- the exact production website origin;
- every page containing a form that should route;
- whether deployment is managed in application code, a CMS, or Google Tag Manager;
- any consent or cookie policy controlling when the script may load;
- the fields required by routing and Salesforce matching; and
- where the calendar booking experience should appear.
An origin includes the protocol, hostname, and port. https://www.example.com and https://example.com are different origins. Use separate website configurations for production, staging, or other origins that must be managed independently.
Create the website configuration
- Open Settings → Web Script.
- Enter the customer-facing website URL when prompted, or select the intended website when more than one exists.
- Confirm that the displayed website is the environment where the script will be installed.
- Choose Standard HTML or Google Tag Manager.
- Copy the generated installation snippet.
Each generated snippet contains the identifier for one Marcenta website configuration. Do not copy a snippet from another website, replace its identifier, remove its integrity settings, or combine fragments from different snippets.
Install directly with Standard HTML
Use Standard HTML when you can edit the website application, shared layout, theme, or CMS custom-code area.
- Copy the Standard HTML snippet from Settings → Web Script.
- Add it to the shared layout or custom-code area used by every page containing a routing form.
- Ensure the snippet is rendered once on a page. Avoid placing separate copies inside individual form components.
- Publish the website change.
- Open a real public page containing the form and verify the installation in Marcenta.
Use the snippet shown in Marcenta rather than copying an example from documentation. This keeps the website identifier, script address, and integrity value current for that website.
Install with Google Tag Manager
- Copy the Google Tag Manager snippet from Settings → Web Script.
- In the website's Google Tag Manager container, create a Custom HTML tag.
- Paste the complete generated snippet into the tag.
- Select the Initialization – All Pages trigger so the script can observe supported forms as they become available.
- Preview the container and open a page containing the intended form.
- Confirm the tag runs once and is not blocked by a trigger exception or consent configuration.
- Publish the container.
- Verify the installation under Settings → Web Script.
If your organization loads optional scripts only after consent, use its approved consent trigger instead of bypassing that policy. Test both the consented and non-consented experience.
Check whether the script is installed correctly
Open a public page containing the form, then return to Settings → Web Script and refresh Script status.
| Status | Meaning |
|---|---|
| Detected recently | The script reported from the configured website within the last 24 hours |
| Previously detected | The script was seen before, but not within the recent detection window |
| Not detected | Marcenta has not received a valid status signal for this website |
Confirm Last seen and Detected URL match the environment and page you tested. Detection proves that the script loaded from the allowed website; it does not prove that a form is configured, that fields are mapped correctly, or that booking succeeds.
If the script is not detected:
- Confirm the website or tag-manager change is published rather than only previewed.
- Confirm the generated snippet belongs to the selected Marcenta website.
- Match the page's protocol, hostname, and port to the configured origin.
- Check whether a consent manager, content-security policy, browser extension, or tag trigger prevents loading.
- Confirm the snippet appears only once and has not been altered.
- Reload the public page, then refresh Script status again.
Supported forms
The script currently supports:
- standard HTML forms represented by a
<form>element; - HubSpot legacy embedded forms; and
- current HubSpot embedded forms.
The script can observe forms rendered shortly after the page loads, including supported HubSpot embeds. A custom form that never uses a real form element or a supported provider event may require manual configuration and may still need implementation changes on the website before its submission can be captured reliably.
Test multi-step forms, forms inside custom overlays, and heavily customized form frameworks end to end. Visual similarity to a supported form does not guarantee compatible submission behavior.
Discover and enable a form
After the script is detected:
- Open a public page containing the intended form.
- Return to Marcenta and open Settings → Forms.
- Select the correct website when more than one exists.
- Find the observed form and open Manage form.
- Review the suggested form selector and every suggested field mapping.
- Correct incomplete or ambiguous mappings.
- Select Enable form or Update form.
- Submit safe test data and confirm the submission appears under Routing.
The script currently reports up to 10 supported forms from a page and up to 50 fields per discovered form. If a page exceeds those limits, configure the required form manually or simplify the page so the intended form is unambiguous.
Understand form statuses
| Status | Meaning | Action |
|---|---|---|
| Discovered | The script observed the form, but it is not enabled | Review its selector and mappings, then enable it |
| Configured | The saved configuration is eligible for routing | Test the live submission and routing result |
| Ignored | The form is intentionally excluded | Restore it if it should be reviewed again |
| Changes detected | The current observed structure differs from the saved configuration | Review all selectors and mappings, then update the form |
Merely discovering a form does not route its submissions. Only a configured form can participate in routing.
Name mapped fields
A mapped field name describes the value's meaning inside Marcenta. The selector identifies the corresponding input on the website. Keep the Marcenta name stable even when the website's label or selector changes.
Use these standard names where applicable:
| Form value | Recommended Marcenta field name |
|---|---|
| Email address | email |
| Full name | name |
| First name | first_name |
| Last name | last_name |
| Company or organization | company |
| Phone number | phone |
| Country | country |
| State, province, or region | region |
| UTM source | utm_source |
| UTM medium | utm_medium |
| UTM campaign | utm_campaign |
| UTM term | utm_term |
| UTM content | utm_content |
| Google click ID | gclid |
| Meta click ID | fbclid |
| Microsoft click ID | msclkid |
Use lowercase snake_case names for custom fields, such as employee_count, requested_product, or annual_revenue. Names can contain letters, numbers, underscores, hyphens, and up to four dot-separated segments. Prefer simple flat names unless an established routing field already uses a nested structure.
The email and company mappings have special importance. Email supports visitor identity, invitations, and Salesforce Lead or Contact matching. Company or a business-email domain can support Salesforce Account matching. Do not map a label, placeholder, or unrelated hidden value merely because its name looks similar.
Hidden form fields
Hidden fields are inputs that visitors do not see but that are submitted with the form. They are commonly used for attribution and operational context, including UTM parameters, advertising click IDs, lead source, campaign identifiers, or a product selected elsewhere on the page.
Marcenta can capture a hidden field when:
- the field belongs to the configured form;
- the field has an explicit mapping in Marcenta; and
- its value has been populated by the time the form is submitted.
Map the field using the same process as a visible input. Give it a clear Marcenta field name, such as utm_campaign or lead_source, and select the hidden input using a stable ID, name, or data attribute. If JavaScript, Google Tag Manager, a consent manager, or the form provider populates the field, confirm that this happens before submission.
To verify the mapping, populate the hidden field with a distinctive but safe test value, submit the public form, and confirm that the value appears under Routing → Submitted fields. Repeat this test after changes to the form, page scripts, tag-manager configuration, or consent behavior. If the hidden field is renamed, removed, moved outside the form, or populated too late, review and update the saved mapping.
Do not map passwords, authentication or CSRF tokens, session identifiers, CAPTCHA values, API keys, or other secrets. Map only information required for approved routing, attribution, and booking purposes.
Choose reliable selectors
Prefer selectors based on stable IDs, field names, or explicit data attributes controlled by your website team. Avoid generated styling classes, layout position, visible copy, or deeply nested selectors that can change during a redesign.
Each mapped selector should identify exactly one intended field inside the configured form. Verify radio buttons, checkboxes, dropdowns, hidden attribution fields, and multi-value controls using the values a real submission produces.
Add a form manually
Use Add form when automatic discovery is unsuitable. Provide:
- a stable, unique form ID;
- the form selector;
- one Marcenta field name and website selector for every required mapping; and
- an optional calendar container ID.
The calendar container determines where the booking experience is mounted. If the configured container does not exist, the script can create a container directly after the form. Provide a dedicated stable container when the page layout must be controlled precisely.
When the page or form changes
A website deployment can change a form's selector, field selectors, provider identity, or available fields. The script may mark an existing configuration as Changes detected when the newly observed structure differs from what was saved.
When that happens:
- Open the affected form under Settings → Forms.
- Compare the current form selector and suggested fields with the saved mappings.
- Confirm that every business-critical Marcenta field still points to the correct website input.
- Remove obsolete mappings and add required new ones.
- Select Update form.
- Re-test important routing branches through the public page.
Do not approve changes solely to clear the warning. A selector can remain syntactically valid while pointing to the wrong field. If a page moves to another origin, also update or create the appropriate website configuration and install its generated snippet.
Test the complete capture flow
- Open the public page in a clean browser session.
- Confirm Script status is recent for the correct website.
- Submit distinctive but safe values through the configured form.
- Open Routing and locate the new submission.
- Compare Submitted fields with the values entered in the browser.
- Confirm the intended routing rule and fallback behavior.
- If a calendar should appear, complete a test booking and verify the representative event and visitor invitation.
- Repeat after material form, page, consent, or tag-manager changes.
Troubleshooting
| Symptom | What to check |
|---|---|
| Script is not detected | Published snippet, selected website, exact origin, consent policy, content-security policy, and tag trigger |
| Form is not discovered | Supported form type, page timing, real form element, provider embed, and whether the intended form is among the forms scanned |
| Form stays Discovered | It has not yet been reviewed and enabled |
| Changes detected appears | Form selector, field selectors, provider identity, fields added or removed, and recent website deployments |
| Submitted value is missing | Mapping name, selector uniqueness, hidden or disabled state, and the value present at submission time |
| Wrong value is captured | Selector points to another field or a repeated selector matches ambiguously |
| Submission does not route | Configured form status, website selection, active routing pipeline, conditions, and fallback |
| Calendar appears in the wrong place | Calendar container ID, selector stability, duplicate elements, and page layout |
The website script can process personal information submitted through enabled forms. Map only fields required for approved routing and booking purposes, and align script loading with your organization's privacy and consent requirements.
SDR Call Intelligence
Configure how calls are evaluated, distinguish live conversations from automated calls, review evidence-based scores, and coach SDR performance.
Routing Groups and Rules
Configure routing groups, assignment modes, rules, outcomes, meeting settings, testing, and ongoing operations.