JavaScript Integration (Recommended)
Javascript integration involves placing custom Ezoic code throughout your site. This method has the most compatibility with various hosting providers, CMS types, and other various factors. It also provides you with the most granular control of ad execution on your site.
Best For: Most sites, including those on specialized hosts or those who want granular control over ad execution without changing DNS settings.
JavaScript integration involves adding a lightweight snippet of code to your website’s header. This is the most recommended connection method due to its high compatibility and ease of setup across various hosting providers and CMS types.
-
How it works: You place a "Header Script" and "Privacy Script" within the <head> tag of your website.
-
Ad Location Code: In addition to the header script, you must insert Ad Location code (placeholders) into the <body> of your site where you want ads to appear.
-
Key Advantage: It doesn't require DNS or Name Server changes, providing a faster and more straightforward path to monetization.
-
Setup: View the full JavaScript Integration Guide for implementation details.
WordPress Plugin (JavaScript via Plugin)
Best For: WordPress users who prefer an automated setup without manually editing theme files.
The Ezoic WordPress plugin acts as a delivery tool for our JavaScript integration. Instead of manually copying and pasting code into your theme, the plugin automatically handles the script insertion for you.
-
Process: Simply install the Ezoic plugin from the WordPress repository and enable the JavaScript Integration option.
-
Ad Placements: The plugin includes an Ad Placements tab where you can choose where to insert ad location codes (e.g., "Under First Paragraph") without needing to touch your site's code.
-
Advantage: It manages complex tasks like script insertion and ads.txt updates directly from your WordPress admin dashboard.
- Setup: View the full Wordpress JavaScript Integration Guide for implementation details.
Cloud Integration (Name Servers or Cloudflare)
Best For: Publishers seeking server-level optimization and Ezoic’s CDN.
Cloud integration allows Ezoic to act as an optimization layer between your host and your visitors.
Important Note: While Cloud Integration offers powerful performance benefits at the server level, JavaScript is still the recommended method for connecting your site's ad environment to Ezoic to ensure the most stable and compatible ad delivery.
- Name Server Integration
-
Process: You update your domain’s Name Servers at your registrar (e.g., GoDaddy, Namecheap) to point to Ezoic’s custom name servers.
-
Result: Ezoic manages your DNS, providing built-in SSL and edge caching.
- Setup: View the full Name Server Integration guide for implementation instructions.
- Cloudflare Integration
-
Process: If you already use Cloudflare, you can link your account to Ezoic via our Cloudflare App.
-
Result: You maintain your existing Cloudflare account while allowing Ezoic to apply optimizations at the edge.
- Setup: View the full Cloudflare Integration guide for implementation instructions.