====== CJ Settings ====== Most settings are straightforward, but some warrant additional detail. ===== Counted Clicks Max ===== The maximum number of clicks counted per user. Subsequent clicks are routed normally but not included in statistics. ===== Next Click is Click Number ===== Which click number should be counted in the "Next Click" column. See [[Second Click]]. ===== Header Check ===== A feature to inspect HTTP request headers. Browsers send header info about themselves—like whether they support compression. Most browsers do, but many proxies don’t. **To use:** * Go to **Settings → CJ Settings → Header field checks** and set the field (e.g., `Accept Gzip Encoding`) * In **Settings → Layouts**, add a "Header Check" column Advanced users can check any header field. **Trade Formula** — See [[Trade Formula]]. **Count hits with referrer other than main domain** — Whether to count hits where the referrer is not your domain. For example, someone might link directly to your `/out` endpoint from their site. **Default Firstclick** — The default first click setting (see [[First Click]]). Used if no other value is specified in the URL or trader settings. **Cookie lifetime** — How long the script’s tracking cookie lasts, in seconds. The script identifies unique users by cookie. Default: 86400 (one day). **Top position keywords** — Comma-separated keywords to determine placement at the top of the trader list. See [[Top Positions]]. **Admin Auto Refresh** — Auto-refresh the Trade screen every N seconds. **System email** — Email address for script notifications. Only visible in the admin panel, not on the signup page. **Check main pages changes** — A security feature against server hacks. The script monitors pages listed in **Settings → CJ Pages** and emails the system email address if any change. ===== URL to Add to Galleries ===== Use this to prepend a URL to all gallery redirects. Useful if you want to wrap galleries in a frame (so you can display your ad at the top). **Example:** Say you have this link: ```html Webmaster’s gallery ``` Normally, clicking it sends the user to `http://webmaster/gallery.html`. But you want to wrap it in a frame with your ad on top. 1. Create a file called `frame.php` in your domain root: ```php