Repository
CandyPixel
Manages the CandyPixel integration for capturing leads from customer websites.
Archive location. SugarRush/CandyPixel. Purpose based on README.md at d59c937.
Browser script. The candypixel.js history follows Faiz Halim’s removal of jQuery in 2019 and Reza Rosli’s browser rewrite in 2022.
Development history
-
2018
From a website form to a SalesCandy lead
-
Set up website capture
Ele Elyiana opened the repository with a README describing a JavaScript snippet for lead-generation pages. Two days later, CandyPixel had manager-side setup for creating an integration and assigning it to a project.
990cf0bb5526de -
Map form fields and submit leads
On an October feature branch, Ele added form-field mapping and lead submission. Campaign attribution from the page URL followed on 30 October. The mainline included all three the next day.
444cf22748762749acd3d -
Give the manager API a stable record ID
Ele changed the manager API to look up each integration by its record ID. The embed snippet still carried its own token.
acabfcc
-
-
2019–20
Acknowledge the enquiry before processing it
-
Store website submissions in S3
Ele added a catcher that stored the request in Amazon S3 and returned success after the write.
be36d65 -
Handle messages that failed repeatedly
Ele added a handler to read the dead-letter queue, where messages went after repeated processing failures.
56bfbe2 -
Separate receipt from lead processing
This snapshot shows the catcher and the SQS-triggered worker as separate functions. The website could receive an acknowledgement as soon as the submission was stored, while the worker processed it separately.
3b4b494
-
-
2020–21
Share processing code and extend campaign tracking
-
Load shared code from a Lambda layer
Ele moved the common SugarRush library out of a Git submodule and into a Lambda layer, changing how CandyPixel loaded the shared code.
46a6046 -
Trace bulk edits
Wahidiatul Firni added trace messages at several points in the bulk-action handler, making it possible to see how far a bulk edit had progressed.
c9cf171 -
Use the tenant’s configured tracking fields
Ele added an endpoint that looked up the tenant’s configured tracking fields and returned a deduplicated list. The snippet dropped its fixed list of campaign fields in the same revision.
711717b
-
-
2022
Adopt the rewritten browser embed
-
Make the script URL configurable
Reza Rosli moved the script URL into a variable near the top of the embed snippet. Someone testing a different script location could change it in one place.
6b0cadb -
Update the service snippet for the browser rewrite
Reza updated the service-side snippet for 3.6.11 and added a compatibility warning for older snippets and custom code. The rewrite itself lives in the separate candypixel.js repository.
d76e683 -
Update the template for 3.7.1
Reza continued updating the service-side template alongside the browser code through the April commit labelled 3.7.1, the last authored change in the archived refs.
d59c937
-
Contributors
-
Ele Elyiana
Primary contributor · 456 authored commits
Built the manager setup and form mapping, then moved website capture to an S3-backed intake path. A site could acknowledge a stored enquiry while a separate worker processed it for downstream lead ingestion.
-
Reza Rosli
12 authored commits
Updated the service’s embed template for the 3.6.11 browser rewrite and gave developers one place to swap the script URL during debugging.
-
Wahidiatul Firni
1 authored commit
Added bulk-edit trace messages and corrected the GraphQL handler’s tenant ID lookup.
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 | 2018 Q3 | 2018 Q4 | 2019 Q1 | 2019 Q2 | 2019 Q3 | 2019 Q4 | 2020 Q1 | 2020 Q2 | 2020 Q3 | 2020 Q4 | 2021 Q1 | 2021 Q2 | 2021 Q3 | 2021 Q4 | 2022 Q1 | 2022 Q2 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Ele Elyiana 456 commits · 2018 Q3–2021 Q3 | 3 | 43 | 35 | 77 | 71 | 67 | 31 | 37 | 30 | 23 | 19 | 11 | 9 | 0 | 0 | 0 |
| Reza Rosli 12 commits · 2019 Q4–2022 Q2 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 2 |
| Wahidiatul Firni 1 commit · 2021 Q2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |