Repositories and contributors

Repository

candypixel.js

Contains the browser JavaScript embedded on customer sites to capture leads.

Browser capture moved from jQuery to native DOM events in 2019. The 2022 rewrite separated capture, tracking, and submission helpers.
Illustrative diagram

Browse the repository archive

Archive location. SugarRush/candypixel.js. Purpose based on readme.md at 273df6e.

Additional archived checkouts. SugarRush/CandyPixel/app/template.

Development history

  1. 2019–20

    Replace jQuery in the browser capture script

    1. Start with a jQuery-based embed

      Ele Elyiana’s initial standalone browser script used jQuery’s no-conflict mode to capture form activity on customer sites.

      9adbd1b
    2. Faiz Halim removes jQuery

      Faiz replaced jQuery selection and event handling with native browser APIs and added a Webpack build. The script could capture forms without requiring jQuery. It still used js-cookie for cookie handling.

      9f1eac9 f16dfb7
    3. Adapt the script for Internet Explorer

      Ele revised browser handling for Internet Explorer as the standalone embed continued to run on customer pages.

      d114add
  2. 2021

    Bring campaign tracking into browser capture

    1. Collect the configured CandyCrumbs fields

      Ele added a path to request the configured tracking fields, collect matching values from the URL, and pass them with the form data. The CandyPixel service added the corresponding tracking-field endpoint earlier that month.

      665b6d9
  3. 2022

    Rewrite the embed and fix submission timing

    1. Reza Rosli rewrites the browser script

      The rewrite split browser storage, campaign tracking, script loading, and request handling into separate helpers. It landed on the main branch and was built as 3.6.11. The service-side snippet flagged compatibility changes for older snippets and custom code.

      98f1385 6d09a50 7560680
    2. Wait for campaign tracking before sending a queued form

      Reza moved pending-submission processing after browser setup completed. A submission restored from session storage could then use the campaign tracker state prepared during initialization.

      c433a46

Contributors

  • Ele Elyiana

    Primary contributor · 62 authored commits

    Established the browser capture script, adapted it for older browsers, and connected website form submissions to configurable campaign tracking.

  • Reza Rosli

    35 authored commits

    Reorganised the browser embed around dedicated helpers in the 3.6.11 rewrite and fixed when queued submissions resume.

  • Faiz Halim

    5 authored commits

    Replaced jQuery with native browser events for form capture and introduced a Webpack build.

When contributors were active

Authored commits per quarter through Q1 2023, oldest first. Rows are ordered by the first quarter with activity. Brighter cells show more commits. Scroll across to see later quarters.

Contributor2019 Q32019 Q42020 Q12020 Q22020 Q32020 Q42021 Q12021 Q22021 Q32021 Q42022 Q12022 Q22022 Q32022 Q4
Ele Elyiana 62 commits · 2019 Q3–2021 Q3 22 6 5 6 9 0 10 0 4 0 0 0 0 0
Faiz Halim 5 commits · 2019 Q3 5 0 0 0 0 0 0 0 0 0 0 0 0 0
Reza Rosli 35 commits · 2022 Q1–2022 Q4 0 0 0 0 0 0 0 0 0 0 17 14 3 1