Ezoic Integration Guide
Step-by-step instructions for adding Ezoic privacy and header scripts to TriposRai.com.
Overview
Ezoic’s JavaScript integration offers a client-side approach that keeps full control over how ads are executed while remaining compatible with any site build. The process for TriposRai.com focuses on two key components that must load at the very top of the document:
- Privacy scripts - handle user consent management and must execute before any other Ezoic code.
- Header script - boots the ad service and queues commands for standalone ad placements.
Required Header Content
Add the following markup at the top of the <head> element on every page. The privacy scripts must appear before the header script to guarantee compliance and proper initialization.
<script src="https://cmp.gatekeeperconsent.com/min.js" data-cfasync="false"></script>
<script src="https://the.gatekeeperconsent.com/cmp.min.js" data-cfasync="false"></script>
<script async src="//www.ezojs.com/ezoic/sa.min.js"></script>
<script>
window.ezstandalone = window.ezstandalone || {};
ezstandalone.cmd = ezstandalone.cmd || [];
</script>
data-cfasync="false"prevents Cloudflare from delaying the privacy scripts.- The
window.ezstandalonesnippet ensures any ad placement code added later can push commands immediately.
Placement Guidelines
- Insert the scripts within the
<head>element whenever possible. If that cannot be done for a specific template, place them at the very top of the<body>tag. - Do not lazy-load, defer, or conditionally inject these snippets. They must run before the page finishes loading.
- Make sure Content Security Policy rules allow the domains
cmp.gatekeeperconsent.com,the.gatekeeperconsent.com, andwww.ezojs.com.
Verification Checklist
- Pages load without JavaScript errors in the console.
- Consent modal appears for first-time visitors as expected.
- No conflicts with existing analytics, Google Ads, or other monetization tags.
Once the above steps are completed, proceed with configuring ads.txt or additional ad placements in the Ezoic dashboard according to Step 2 of their documentation.