Detailed installation guide for Palace Tracker.
Add the following script tag to the <head> section of your HTML:
<script defer src="https://cdn.palaceanalytics.com/palace-tracker.js" data-website-id="your-website-id" ></script>
Replace your-website-id with the unique identifier for your website from your Palace Analytics dashboard.
Once installed, Palace Tracker automatically sends two events per page visit with no additional configuration required:
The defer attribute ensures the script loads asynchronously without blocking page rendering. This is important for maintaining good page performance.
The data-website-id attribute is required and should contain your unique website identifier.
For detailed installation instructions for specific platforms (React, Next.js, Vue, WordPress, Shopify, Webflow, etc.), see the Platform Guides section.
After installation, open your browser's developer console and check for:
window.palace object is available (check with console.log(window.palace))