GEOfastgeofast_

Selfhosted: Integrating GEOfast

Quick guide to install GEOfast on self-hosted sites

Below are quick examples to add the GEOfast snippet to common self-hosted setups. Always copy your personal snippet from the dashboard and replace YOUR-UNIQUE-ID.

Static Sites / HTML

Paste the snippet into the <head> of your site's base HTML template:

<!-- GEOfast Snippet -->
<script async src="https://geofast.me/widget.js" data-domain="USER-DOMAIN" data-user="USER-ID"></script>
<!-- End GEOfast Snippet -->

Note: Replace USER-DOMAIN and USER-ID with the values from your GEOfast dashboard. For static site generators add the snippet to your base template.

Next.js (app or pages)

Add the snippet to your global layout (e.g., app/layout.tsx) inside the <head> or use next/script for optimized loading.

// inside your app root layout
<script async src="https://geofast.me/widget.js" data-domain="USER-DOMAIN" data-user="USER-ID"></script>

Tip: With Next.js use next/script for better performance if needed.

Django

Place the snippet in your base template (e.g., base.html) within the head block so it appears on every page.

<!-- GEOfast Snippet -->
<script async src="https://geofast.me/widget.js" data-domain="USER-DOMAIN" data-user="USER-ID"></script>
<!-- End GEOfast Snippet -->

If you need a recipe for another stack (Rails, Flask, Hugo, etc.), tell me which and I'll add it.

If your stack needs a tailored example, tell me which platform and I'll add a concrete snippet for it.

GEOfast Guide: Selfhosted