Embed Client and Agent Access on any website in minutes. Works with Wix, Squarespace, WordPress, Shopify, GoDaddy, Weebly, and more.
Copy and paste this snippet anywhere on your website. A "Sign In" button will appear when you call window.PetSitterProPortal.openModal().
<script>
window.PetSitterProEmbed = {
org_id: "YOUR_ORG_ID",
companyName: "Your Company",
primaryColor: "#0080F0"
};
</script>
<script src="https://us-east1-petsitterpro-c4644.cloudfunctions.net/serveEmbedJs"></script>
<button onclick="window.PetSitterProPortal.openModal()">
Sign In
</button>
YOUR_ORG_ID with your organization ID: YOUR_ORG_ID
Select your website platform and follow the quick setup steps below.
peeps-n-petz or my-pet-sitting-business. Have it ready before the next step.<div and ending with the very last </div>. You will copy everything in the dark grey box below. Do not leave out any part of it:
<div style="text-align: center; margin: 20px 0;">
<button onclick="window.open('https://petsitterpro-c4644.web.app/?org_id=YOUR_ORG_ID&from=wix', '_blank')"
style="padding: 12px 24px; background: #0080F0; color: white; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 16px;">
Sign In to Book
</button>
</div>
⚠️ IMPORTANT: After you copy the code, you MUST replace the words YOUR_ORG_ID with your actual Organization ID. For example, if your Organization ID is peeps-n-petz, change this line:
onclick="window.open('https://petsitterpro-c4644.web.app/?org_id=YOUR_ORG_ID&from=wix', '_blank')"
to this:
onclick="window.open('https://petsitterpro-c4644.web.app/?org_id=peeps-n-petz&from=wix', '_blank')"
peeps-n-petz or my-pet-sitting-business. Have it ready before the next step.<div and ending with the very last </div>. You will copy everything in the grey box below. Do not leave out any part of it:
<div style="text-align: center; margin: 20px 0;">
<button onclick="document.getElementById('psp-modal').style.display='block'"
style="padding: 12px 24px; background: #0080F0; color: white; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 14px;">
Sign In to Book
</button>
</div>
<div id="psp-modal" style="display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 9999; justify-content: center; align-items: center;">
<div style="background: white; padding: 20px; border-radius: 8px; position: relative; width: 90%; max-width: 600px; height: 80%; overflow: auto;">
<button onclick="document.getElementById('psp-modal').style.display='none'"
style="position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 24px; cursor: pointer;">×</button>
<iframe src="https://petsitterpro-c4644.web.app/?org_id=YOUR_ORG_ID&from=squarespace"
style="width: 100%; height: 100%; border: none; margin-top: 20px;">
</iframe>
</div>
</div>
⚠️ IMPORTANT: After you paste the code, you MUST replace the words YOUR_ORG_ID with your actual Organization ID. For example, if your Organization ID is peeps-n-petz, change this line:
src="https://petsitterpro-c4644.web.app/?org_id=YOUR_ORG_ID&from=squarespace"to this:
src="https://petsitterpro-c4644.web.app/?org_id=peeps-n-petz&from=squarespace"
This guide works for WordPress.com and self-hosted WordPress with Gutenberg editor. No plugins or coding required.
Copy this code and paste it into the Custom HTML block:
<button onclick="window.open('https://petsitterpro-c4644.web.app?org_id=YOUR_ORG_ID', '_blank')" style="padding: 12px 24px; background-color: #0080F0; color: white; border: none; border-radius: 4px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background-color 0.3s;">
Book a Pet Sitter
</button>
"Book a Pet Sitter" to any text you prefer.#0080F0 to your brand color (e.g., #0080F0).padding: 12px 24px to make the button larger or smaller.💡 Tip: You can drag the Custom HTML block to reorder it, or duplicate it on multiple pages. Visitors will see the button and click it to book appointments.
This guide uses Shopify's Custom Liquid section. No coding knowledge required—just copy and paste.
Copy this code and paste it into the Custom Liquid block:
<button onclick="window.open('https://petsitterpro-c4644.web.app?org_id=YOUR_ORG_ID', '_blank')" style="padding: 12px 24px; background-color: #0080F0; color: white; border: none; border-radius: 4px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background-color 0.3s;">
Book a Pet Sitter
</button>
"Book a Pet Sitter" to any text you prefer (e.g., "Schedule Sitter").#0080F0 to your brand color (e.g., #FF6B35).padding: 12px 24px to make it larger (e.g., padding: 16px 32px) or smaller.💡 Tip: Custom Liquid sections appear in your theme editor's left sidebar under the page name. You can reorder them by dragging, or delete them by clicking the ⋮ menu and selecting "Remove".
This guide uses GoDaddy's HTML section. No coding knowledge required—just copy and paste.
Copy this code and paste it into the HTML code box:
<button onclick="window.open('https://petsitterpro-c4644.web.app?org_id=YOUR_ORG_ID', '_blank')" style="padding: 12px 24px; background-color: #0080F0; color: white; border: none; border-radius: 4px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background-color 0.3s;">
Book a Pet Sitter
</button>
"Book a Pet Sitter" to any text you prefer (e.g., "Schedule Now").#0080F0 to your brand color (e.g., #FF6B35).padding: 12px 24px to make it larger (e.g., padding: 16px 32px) or smaller.💡 Tip: If the button doesn't appear or looks wrong, make sure you copied the entire code block exactly as shown. GoDaddy's HTML section is very straightforward—just paste and publish.
This guide uses Weebly's Embed Code element. No coding knowledge required—just copy and paste.
Click the Embed Code element and paste this code:
<button onclick="window.open('https://petsitterpro-c4644.web.app?org_id=YOUR_ORG_ID', '_blank')" style="padding: 12px 24px; background-color: #0080F0; color: white; border: none; border-radius: 4px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background-color 0.3s;">
Book a Pet Sitter
</button>
"Book a Pet Sitter" to any text you prefer (e.g., "Schedule a Sitter").#0080F0 to your brand color (e.g., #FF6B35).padding: 12px 24px to make it larger (e.g., padding: 16px 32px) or smaller.💡 Tip: After pasting the code, you may see a preview of the button. If it doesn't display correctly at first, click outside the element and refresh the page. Weebly's Embed Code element is very reliable for buttons like this.
For any website with direct HTML access, paste this into your page:
<!DOCTYPE html>
<html>
<head>
<script>
window.PetSitterProEmbed = {
org_id: "YOUR_ORG_ID",
companyName: "Your Company",
primaryColor: "#0080F0"
};
</script>
<script src="https://us-east1-petsitterpro-c4644.cloudfunctions.net/serveEmbedJs"></script>
</head>
<body>
<button onclick="window.PetSitterProPortal.openModal()" style="padding: 12px 24px; background: #0080F0; color: white; border: none; border-radius: 6px; cursor: pointer;">
Sign In
</button>
</body>
</html>
After embedding, you can control the portal programmatically using these methods:
Opens the sign-in modal.
Clears the user session.
Returns the current auth token.
Returns the logged-in user data.
Returns true if user is logged in.
// Check if user is logged in
if (window.PetSitterProPortal.isAuthenticated()) {
const user = window.PetSitterProPortal.getUser();
console.log('Welcome,', user.email);
} else {
window.PetSitterProPortal.openModal();
}
Need help? Check out our documentation and support options.