Test and Validate Your Campaign Before Going Live
π― What Is Debug Mode?
The Debug Mode in XCLO.app allows you to simulate visits and validate whether your campaign is working as expected β before running real traffic. This is a safe way to check:
- β Are device, browser, country, or UTM filters working?
- β Is the offer or white page displaying correctly?
- β Are VPNs and bots correctly blocked?
- β Is multi-offer targeting routing the right traffic?
βοΈ How to Enable Debug Mode
Option 1: Enable from Campaign Builder
- Open the Campaign Builder in XCLO
- Scroll to the bottom
- Check: Enable Debug Mode (For Testing Purposes Only)
Option 2: Enable Manually in index.php
- Open your
index.php
file - Find the line:
$debug_mode = false;
- Change it to:
$debug_mode = true;
β οΈ Important: Do not edit or remove symbols like ;
or ,
. Syntax errors will cause the file to break.
π How to Use Debug Mode
- Upload your
index.php
to your server - Visit the cloaking URL in your browser:
- Optionally add UTM for testing:
https://yourdomain.com/cloaking/index.php
https://yourdomain.com/cloaking/index.php?utm_source=google
β Sample Output Explained
{
"match": true,
"reason": "matched",
"data": {
"device": "desktop",
"os": "Windows",
"browser": "Chrome",
"bot": false,
"ip": "103.18.34.159",
"country": "ID",
"asn": "AS58491",
"asn_org": "PT INDONESIA COMNETS PLUS",
"vpn": false
}
}
This means the visit passed all filters and was shown the offer page.
β If Something Doesnβt Match
You might see:
"match": false, "reason": "Blocked UTM"
This helps you identify what caused the block β whether itβs country, device, UTM, VPN, or bot detection.
π« Important: Turn Debug Mode OFF After Testing
- Open
index.php
- Change
$debug_mode = true;
back tofalse;
- Or regenerate the campaign without debug checked
Never run live traffic with debug enabled β it exposes sensitive logic and internal data.
π§ Best Practices
- Always test with Debug Mode for every new campaign
- Use VPN or device spoofing tools to simulate different filters
- Test both passing and blocked scenarios
- Document results per traffic source / targeting