Skip to main content

Tracking Custom Conversions

Alexander Lagger avatar
Written by Alexander Lagger
Updated over a week ago

Custom conversions in CamBuildr let you track interactions that are not based on standard form submissions, such as sign-ups or donations. Instead, they allow you to define a specific action – most commonly a click – as the conversion event.

This is ideal when you’re not collecting data through a form, but still want to measure meaningful engagement. The conversion is tracked once per session and does not rely on cookies or store any personal data.

When to Use Custom Conversions

Custom conversions are especially useful when:

  • you want to track clicks on specific content (e.g. a campaign topic, agenda item, or external link),

  • your page doesn’t use a form but includes interactive elements,

  • you’re running A/B tests and want to measure user interest per section,

  • you need to measure how often users trigger a key visual or button.

How to Set Up a Custom Conversion

Setting up custom conversions takes only a few steps and can be done directly inside the CamBuildr editor.

1. Enable Custom Conversions

Go to your landing page navigate to the Settings tab. Activate the Enable custom conversions toggle. This will generate a script you’ll need for the next step.

2. Copy the Tracking Code

Once the toggle is enabled, a custom JavaScript tracking code will appear. Copy the full script to your clipboard. This code includes everything you need and only requires a small modification to identify the clickable element.

3. Assign a Unique ID to the Target Element

In the page editor, select the element you want to track – this can be a button, image, or content block. In the right-hand panel, assign a Block Identifier or ID like "more_infra".

4. Insert the Code and Replace the ID

Now add a Custom HTML block to your page and paste the script you copied. In the script, look for the line:

const CLICK_ELEMENT_ID = 'conversion-click-btn';

Replace 'conversion-click-btn' with the ID you assigned, for example:

const CLICK_ELEMENT_ID = 'more_infra';

You can repeat this for multiple elements if needed. Simply duplicate the script and use a different ID each time.

Note: Regardless of how many elements are tracked, they will only be counted as one conversion.

5. Save and Publish

Save your changes and publish your page. From now on, every click on the defined element will be counted as a conversion. You can monitor results under the Variants tab of your landing page.

Good to Know

  • No cookies are used and no personal data is stored.

  • The conversion will only trigger once per user session.

  • The default tracking method automatically detects the correct landing page variant, but you can optionally set LANDING_PAGE_VARIANT_ID manually if needed.

  • All tracked events will appear under “Custom Conversions” in the variant overview.

Did this answer your question?