PageSourceSearch

https://www.metabase.com/js/pass-referral-params-to-fillout-forms.js

js metabase.com collected 2026-09-24 08:40:11 UTC 499 bytes, 19 lines download raw bytes

1function initPassReferralParamsToForms() {
2  const forms = document.querySelectorAll("[data-fillout-id]");
3
4  forms.forEach((form) => {
5    form.setAttribute("signup_path", window.location.pathname);
6
7    const prevPageTitle = new URLSearchParams(window.location.search).get(
8      "prev_page_title",
9    );
10
11    if (prevPageTitle) {
12      form.setAttribute("prev_page_title", prevPageTitle);
13    }
14  });
15}
16
17window.addEventListener("DOMContentLoaded", () => {
18  initPassReferralParamsToForms();
19});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.