Custom JS
Custom JS lets you add JavaScript (analytics, tag managers, chat widgets, pixels, your own scripts) to WordPress without editing theme files.
Solid choice
Custom JS is a solid plugin choice in 2026, with a few things worth checking first. It runs on 100+ sites and was last updated 4 weeks ago, and scores 68/100 on our health check.
- Actively developed — last update 4 weeks ago
- Tested with the latest WordPress (7.1)
- Small user base (100+ active installs)
- Very few reviews so far
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Custom JS stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| analytics | >100 |
| custom js | #52 |
| header footer code | >100 |
| javascript | >100 |
| snippets | >100 |
Version adoption
Share of active sites per release.
About Custom JS
From the official readme · v2.0.0Description
Custom JS lets you add JavaScript (analytics, tag managers, chat widgets, pixels, your own scripts) to WordPress without editing theme files.
Features
- Head, Body and Footer code – including the new “after ” location (Google Tag Manager noscript etc.).
- Unlimited snippets – named pieces of code you can switch on/off, duplicate and organise.
- Conditions per snippet – front page, blog, posts, pages, archives, search, 404, specific IDs/slugs, URL rules with wildcards, exclusions.
- Visitor targeting – everyone, logged-in, logged-out, non-admins, specific user roles, desktop or mobile.
- Scheduling – start and end date/time for campaigns and promos.
- External scripts – add a script by URL with async / defer / type=”module”.
- Auto-wrap – paste plain JavaScript, the plugin adds the
- Load jQuery on demand for snippets that need it.
- Admin area and login page code.
- Per-page code – a “Custom JS” box on the post/page edit screen, with an option to switch off the global code on that page.
- Code editor with syntax highlighting, line numbers, linting and an optional dark theme. Ctrl+S / Cmd+S to save.
- Revisions – every save is kept; view and restore older versions.
- Import / Export to JSON – backups and moving between sites.
- Safe mode –
?cjs_safe_mode=1ordefine( 'CJS_SAFE_MODE', true );disables all custom code if something breaks. - Kill switch, “do not load for admins” (keeps your visits out of analytics), HTML comment markers for debugging.
- Secure – nonces on every action; on multisite only super admins can add code.
- Developer filters:
cjs_capability,cjs_front_allowed,cjs_snippet_should_run,cjs_snippet_code,cjs_output_{option},cjs_metabox_post_types.
Free WordPress Themes by SEOS Themes
Custom JS is made by SEOS Themes – the team behind high quality, HTML5, responsive and mobile friendly WordPress themes, downloaded more than 2,000,000 times.
Blog, news & magazine, online shop, business, real estate, restaurant, photography, music, portfolio and many more – most of them completely free.
Installation
Install via Plugins > Install New
- Search for “Custom JS”
- Click the “Install Now” link
- Click “Activate Plugin”
Via ZIP / FTP
- Unzip the ZIP file and drop the folder straight into your wp-content/plugins directory.
- Activate the plugin through the ‘Plugins’ menu in WordPress.
Changelog
Big update: snippets, conditions, code editor, revisions, import/export and safe mode. Your existing code is kept and works exactly as before.
2.0.0
- New: “After ” location.
- New: unlimited snippets with location, priority, on/off switch, duplicate and notes.
- New: page, URL, user, role, device and schedule conditions for snippets.
- New: external script snippets with async / defer / module.
- New: admin area and login page code.
- New: per-post / per-page code box, with option to disable global code on a page.
- New: code editor with syntax highlighting, linting, dark theme and Ctrl+S save.
- New: revisions with restore.
- New: import / export JSON.
- New: safe mode, kill switch, hide for admins / logged-in users, HTML comment markers.
- New: optional auto-wrap of plain JavaScript in
- New: option to delete data on uninstall (off by default).
- Fix: translations now load with the correct text domain.
- Security: nonce checks everywhere; on multisite only users with unfiltered_html can save code.
- Fully backward compatible with 1.0 – existing code, admin URL and hook names are unchanged.
1.0
- Initial release of plugin
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best Custom JS alternatives
All analytics plugins →FAQ
Custom JS: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is Custom JS free?
Yes. Custom JS is free to download and use from the official WordPress.org plugin directory.
Is Custom JS safe to use in 2026?
Custom JS is a solid plugin choice in 2026, with a few things worth checking first. It runs on 100+ sites and was last updated 4 weeks ago, and scores 68/100 on our health check.
How many websites use Custom JS?
Custom JS is active on 100+ WordPress websites and has been downloaded 4,849 times since it launched in September 2016. It was downloaded 429 times in the last 30 days.
Does Custom JS work with WordPress 7.1?
Yes. The developer has tested Custom JS up to WordPress 7.1.5, the latest release. It requires WordPress 4.6 or newer.
What PHP version does Custom JS need?
Custom JS requires PHP 5.6 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Custom JS last updated?
The latest version, 2.0.0, was released on November 3, 2026 (4 weeks ago).
Who makes Custom JS?
Custom JS is developed and maintained by seosbg.
What are the best alternatives to Custom JS?
The most popular alternatives to Custom JS are Site Kit by Google (5M+ installs), MonsterInsights (2M+ installs) and WP Statistics (500K+ installs).
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card

