This guide will help you connect Firebase login, dashboard, bookmarks, and exclusive content system to your Blogger theme.
Follow each step carefully. Setup takes only 10–15 minutes.
🟢 Step 1: Create Firebase Account
- Go to: https://console.firebase.google.com
- Login using your Google account
- Click Create a project
- Enter project name (example: MyBlogUsers)
- Click Continue → Disable analytics (optional)
- Click Create project
🟢 Step 2: Enable Authentication
- Open your Firebase project
- Click Authentication
- Click Get started
- Open Sign-in method
- Enable Email/Password
- Enable Google login
- Click Save
Important: Without enabling these, users cannot login or signup.
➤ Add Authorized Domains
- Go to Authentication → Settings → Authorized domains
- Add your website domain
- Add blogspot.com (important for Blogger users)
🟢 Step 3: Create Firestore Database
- Click Firestore Database
- Click Create database
- Select Start in test mode
- Choose location → Enable
After creating database, open Rules tab and paste:
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if request.auth != null;
}
}
}
Click Publish
🟢 Step 4: Get Firebase Config
- Go to Firebase dashboard
- Click ⚙️ Project settings
- Scroll to Your apps
- Click </> Web
- Register app
You will get config like this:
const firebaseConfig = {
apiKey: "XXXX",
authDomain: "XXXX.firebaseapp.com",
projectId: "XXXX",
storageBucket: "XXXX.appspot.com",
messagingSenderId: "XXXX",
appId: "XXXX"
};
🟢 Step 5: Add Config in Blogger Theme
Go to Blogger → Theme → Edit HTML
Find firebase config section and replace with your details:
var firebaseConfig = {
apiKey: "YOUR_API_KEY",
authDomain: "YOUR_PROJECT.firebaseapp.com",
projectId: "YOUR_PROJECT_ID",
appId: "XXXX",
dashboard:"/p/dashboard.html",
login:"/p/login.html",
signup:"/p/signup.html",
bookmark:"/p/bookmarks.html",
history:"/p/history.html",
historyText:"Login to unlock this premium part"
};
Do not change page URLs unless you also change them in Blogger pages.
🟢 Step 6: Create Required Pages
Create these pages in Blogger:
- /p/login.html
- /p/signup.html
- /p/dashboard.html
- /p/bookmarks.html
- /p/history.html
Make sure URLs match config exactly.
🟢 Step 7: Test System
- Open signup page
- Create account
- Verify email
- Login
- Open dashboard
- Test bookmark button
If everything works correctly, your Firebase system is fully ready.
⭐ How to Add Exclusive Content
Wrap any content inside:
<div class='exclusiveContent'> This content only visible for logged users </div>
Guests will see locked message. Logged users can see content.
You can use this for premium downloads, secret links, or member tutorials.
🎉 Setup Completed
Your Blogger theme now supports:
- User login system
- Google login
- User dashboard
- Bookmark system
- Exclusive content lock