Repository
candypixel.js
Contains the browser JavaScript embedded on customer sites to capture leads.
Archive location. SugarRush/candypixel.js. Purpose based on readme.md at 273df6e.
Additional archived checkouts. SugarRush/CandyPixel/app/template.
Development history
-
2019–20
Replace jQuery in the browser capture script
-
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 -
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.
9f1eac9f16dfb7 -
Adapt the script for Internet Explorer
Ele revised browser handling for Internet Explorer as the standalone embed continued to run on customer pages.
d114add
-
-
2021
Bring campaign tracking into browser capture
-
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
-
-
2022
Rewrite the embed and fix submission timing
-
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.
98f13856d09a507560680 -
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.
| Contributor | 2019 Q3 | 2019 Q4 | 2020 Q1 | 2020 Q2 | 2020 Q3 | 2020 Q4 | 2021 Q1 | 2021 Q2 | 2021 Q3 | 2021 Q4 | 2022 Q1 | 2022 Q2 | 2022 Q3 | 2022 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 |