Contents

Developers

URL parameters

Prepare your links: force a language, pass an identifier in a hidden field, track campaigns with UTM parameters and personalize page text.

Parameters are added to the public address of a form (https://form.aikobuilder.com/projet-solaire) or of a page (https://page.aikobuilder.com/solaire-ete), including on your custom domains, after a ? and separated by &. Remember to encode values that contain spaces or special characters (Saint%20Malo).

Summary

Parameter Form Landing page Effect
lang yes yes Display language
Hidden fields (e.g. partner_id) yes yes, passed on to the form Value recorded with the response
utm_source, utm_medium, utm_campaign, utm_term, utm_content yes yes Campaign recorded with the response and in the statistics
Any parameter used in the text (e.g. city) no yes Dynamic text of the page

Language: lang

?lang=en shows the form or the page in this language, if it is one of the languages offered. Without the parameter, the browser's language is used when the “Detect the browser language” option is enabled, otherwise the default language. The respondent can always switch languages.

https://form.aikobuilder.com/projet-solaire?lang=es

The language used is recorded with the response (submission.locale in webhooks and in the API).

Hidden fields

A hidden field passes on information that the respondent doesn't see: partner, salesperson or product ID, customer number…

  1. In the form builder, Settings tab › “Hidden fields”, add the key, for example partner_id.
  2. Publish the form.
  3. Share the link with the parameter of the same name:
https://form.aikobuilder.com/projet-solaire?partner_id=42&agent=marie

Only parameters declared as hidden fields are recorded (500 characters at most each). You'll find them:

  • in the response page and in the CSV / Excel export;
  • in submission.hidden in webhooks and the API ({ "partner_id": "42" });
  • in the sources of mapped webhooks;
  • in the form's texts, with a {{partner_id}} recall;
  • in the form's logic (conditions).

Hidden field keys follow the same rules as field keys: a letter, then letters, digits, _, -, [ and ]. Case matters.

Campaigns: UTM parameters

The five standard UTM parameters are recorded with each response, without declaring anything:

https://form.aikobuilder.com/projet-solaire?utm_source=facebook&utm_medium=cpc&utm_campaign=ete

They appear in the form or page statistics (visits, leads and conversion by campaign), in the export, and in submission.metadata.utm in webhooks and the API. For a UTM parameter to also be in submission.hidden, declare it as a hidden field as well.

Short links (Settings tab › “Short links” in the builder, for example form.aikobuilder.com/s/k7m2xq) add their own UTM parameters: handy for text messages.

Landing pages

On a landing page, the link's parameters serve two purposes:

  • they are passed on to the page's form (embedded or in a popup): hidden fields and UTM parameters are recorded with the response, which is also linked to the page (submission.metadata.page);
  • they feed the page's dynamic text.

Dynamic text

In a page text, {{name|default text}} shows the value of the link's name parameter, otherwise the text after the bar:

Installers in {{city|your area}}
Link Text shown
…/solaire-ete?city=Bordeaux Installers in Bordeaux
…/solaire-ete Installers in your area

The parameter name starts with a letter and contains letters, digits or _ (40 characters at most). Dynamic text also works in the tab title. Ideal for adapting the same page to each city, product or keyword of a campaign.

Form embedded on another website

The code of the “Embed on a website” section (Settings tab of the builder) loads the embed.js script of the form's domain. The parameters of the address of the page that shows it are passed to the form, without replacing those already in the address of the code: a link https://www.your-site.com/quote?utm_source=google&partner_id=42 fills in the campaign and hidden fields of the response like a direct link. The page address, without its parameters, is saved as the originating page (referrer).

Attribute On Effect
data-aiko-form="<address>" a div Form in the page, height adjusted to each screen
data-aiko-height="600" the same div Height before loading (520 px by default)
data-aiko-title="…" the same div Frame title for screen readers
data-aiko-popup="<address>" a button or link Opens the form in a pop-up (Escape or × to close it)
data-aiko-floating="<address>" the script tag Floating button, with data-aiko-label (text) and data-aiko-color (for example #2563eb)
data-aiko-chat="<address>" the script tag Chat bubble at the bottom right that opens the form in a window (loaded on first opening; Escape or × to close it), with data-aiko-label (optional teaser text, can be hidden) and data-aiko-color
data-aiko-bar="<address>" the script tag Banner that slides up from the bottom of the screen at the form height (85% of the screen at most), after data-aiko-delay seconds (4 by default); minimised, a data-aiko-label tab in data-aiko-color, kept minimised for the rest of the visit

On each response sent, the page receives the aiko:submit event (event.detail.form: form address), and { event: "aiko_form_submit", aiko_form: "<address>" } is pushed to dataLayer if Google Tag Manager is installed: trigger your conversion tags from it (Google Ads, GA4, Meta). No response is passed to the page.

<script>
  document.addEventListener("aiko:submit", (event) => {
    console.log("Response sent", event.detail.form);
  });
</script>

AikoBuilder.open("<address>") opens a form in a pop-up from your own code, once the script is loaded. The end redirection of the form applies to the whole page.

Full example

https://page.aikobuilder.com/solaire-ete?lang=en&city=Nantes&partner_id=42&utm_source=google&utm_campaign=solaire-nantes

The page is shown in English with “Installers in Nantes”; the response sent from its form contains partner_id = 42 in the hidden fields, the google / solaire-nantes campaign and the originating page.