Docs • WordPress Setup • JeetPush Cloud
WordPress setup (recommended)
Add a small snippet in your site header, then place the service worker file on your website root.
Step 1
Create a Site in dashboard
Open the admin panel, create your website, and copy the Site Key and integration snippet.
Step 2
Add snippet in WordPress header
Paste the snippet in one of these places:
- GeneratePress Elements (Hook → wp_head)
- Insert Headers and Footers plugin
- Theme header.php (advanced)
Example snippet
Copy-paste template
<script>
window.JEETPUSH = {
apiBaseUrl: "https://push.jsanpush.cloud",
siteKey: "YOUR_SITE_KEY",
vapidPublicKey: "YOUR_VAPID_PUBLIC_KEY"
};
</script>
<script src="https://push.jsanpush.cloud/jeetpush.js"></script>
Next: place the service worker on your website root.
WordPress FAQ
Can I use a cache plugin?
Yes. Just ensure the service worker file is accessible at the root URL and not blocked by cache rules.
Do I need to edit theme files?
No. GeneratePress Elements hooks are enough for most setups.