Docs/GET STARTED/Find your tracking script

Find your tracking script

Your VersaTailor tracking script is unique to each website and contains your website ID and domain configuration. This guide will show you how to locate and copy your tracking script.

Step 1: Access Your Dashboard

  1. Go to your dashboard and select your website
  2. Click on the dropdown menu for your website in the top left of your dashboard

Site Settings screenshot

  1. Click on "Site Settings"

Step 2: Locate Your Tracking Script

  1. Under "General" tab, you'll find your unique tracking code in a dark code block
  2. Use the "Copy Code" button to copy the script to your clipboard

Step 3: Installing the Script

Add the tracking script to your website by:

  1. Opening your website's HTML file or template
  2. Locating the <head> section
  3. Pasting the copied script inside the <head> tags

Step 4: Verifying Installation

To ensure your tracking script is properly installed:

  1. Return to the Site Settings page
  2. Click the "Verify Installation" button
  3. Wait for the validation check to complete

Verify Installation screenshot

Validation Results

  • āœ… Success: "The script is correctly installed on your website!"
  • āŒ Error: "Could not find the tracking script"

Your Tracking Script

Your tracking script will look like this:

<script
  defer
  src="https://versatailor.com/script.js"
  data-website-id="YOUR_WEBSITE_ID"
  data-domain="YOUR_WEBSITE_DOMAIN"></script>

Important Notes

  • Replace placeholders: Make sure to replace YOUR_WEBSITE_ID and YOUR_WEBSITE_DOMAIN with your actual values
  • Placement: The script should be placed in the <head> section of your website
  • Defer attribute: The defer attribute ensures the script doesn't block page loading

Troubleshooting

Script Not Found

If the verification fails:

  1. Check that the script is in the <head> section
  2. Ensure there are no JavaScript errors on your page
  3. Verify the script URL is accessible
  4. Clear any caching plugins or CDN cache

Common Issues

  • Wrong placement: Script placed in <body> instead of <head>
  • Caching: Browser or server cache showing old version
  • JavaScript errors: Other scripts preventing VersaTailor from loading
  • Ad blockers: Some ad blockers may block the tracking script

Next Steps

Once your tracking script is installed and verified:

Need help? Contact us for assistance.

Suggest features? We'd love your feedback