How external tracking works
- A visitor lands on your Blox landing page
- Blox sets cookies with the visitor’s ID, session, and variant
- The visitor clicks through to your website
- Your website triggers the external conversion
- The conversion is attributed to the original landing page variant
Setting up external goals
Step 1: Create the goal
- Open your brand settings
- Navigate to the Goals section
- Click Create goal
- Select External as the goal type
- Enter a name (e.g., “Purchase completed”)
- Enter an event name (e.g., “purchase”)
- Save the goal
Step 2: Get the tracking code
After saving, Blox provides a tracking code snippet. It looks like this:Step 3: Add to your website
Add the tracking script to the page where conversions happen (e.g., your order confirmation page):- Copy the script snippet
- Add it to your confirmation page’s HTML
- Deploy your website changes
Tracking with values
You can include additional data with your conversion:Cookie requirements
External tracking relies on cookies set when the visitor was on your landing page:blox_vid: Visitor ID (persists for 1 year)blox_sid: Session IDblox_var: The variant they sawblox_exp: The experiment they’re part of (if any)
- Both domains should share a common parent domain (e.g.,
landing.example.comandshop.example.com) - Use a custom domain on Blox that shares this parent domain
- Cookies are scoped to the registrable domain for cross-subdomain sharing
landing.example.com and conversions happen on www.example.com, cookies will be readable because both share .example.com.
Deduplication
External conversions are deduplicated per visitor per goal:- First conversion is recorded
- Subsequent conversions from the same visitor are ignored
- A 24-hour client-side cookie prevents duplicate beacon sends
Verifying your setup
To test external tracking:- Visit your landing page (creates the cookies)
- Navigate to your conversion page
- Check that the tracking script fires (browser dev tools, Network tab)
- Verify the conversion appears in Blox
Using in experiments
External goals work in experiments just like behavioral goals:- Create your experiment
- Add the external goal as primary or secondary
- Start the experiment
Troubleshooting
Conversions not tracking
- Verify the tracking script is on your conversion page
- Check that Blox cookies exist (visitor must have visited the landing page first)
- Ensure the event name matches your goal configuration
- Look for JavaScript errors in the browser console
Cookie issues
- Confirm your custom domain shares a parent domain with your conversion page
- Check that cookies aren’t being blocked by browser settings or extensions
- Verify your site isn’t explicitly clearing or blocking third-party cookies
Attribution mismatch
- Conversions are attributed to the variant seen at cookie-creation time
- If a visitor sees multiple variants (cleared cookies, different devices), only the most recent visit’s variant is tracked
- Cross-device tracking is not supported
Privacy considerations
External tracking uses first-party cookies scoped to your domain. However:- Inform visitors about tracking in your privacy policy
- Consider cookie consent requirements for your region
- The tracking script doesn’t collect personal information beyond what you explicitly pass
Data sanitization
Blox sanitizes data passed in external conversions:- Payloads over 10KB are rejected
- Strings longer than 500 characters are truncated
- Common PII field names (password, ssn, credit_card) are filtered out