Invoker Analytics/Documentation
Integrations

Platform Integrations

Step-by-step guides for adding Invoker Analytics to popular CMS platforms and website builders.

WordPress

Add Invoker Analytics to your WordPress site using a plugin or by editing your theme.

Method 1: Using a Header Plugin (Recommended)

  1. Install and activate the "Insert Headers and Footers" plugin (or similar)
  2. Go to Settings → Insert Headers and Footers
  3. Paste the tracking script in the "Scripts in Header" section:
<script
  defer
  data-domain="your-domain.com"
  src="https://api.invoker.app/script.js"
></script>

Method 2: Edit Theme's header.php

  1. Go to Appearance → Theme File Editor
  2. Select header.php from the right sidebar
  3. Find the </head> tag
  4. Paste the tracking script just before </head>
  5. Click "Update File"

Shopify

Add Invoker Analytics to your Shopify store:

  1. Go to your Shopify admin panel
  2. Navigate to Online Store → Themes
  3. Click Actions → Edit code
  4. Open the theme.liquid file under Layout
  5. Find the </head> tag and paste the script just before it:
<script
  defer
  data-domain="your-store.myshopify.com"
  src="https://api.invoker.app/script.js"
></script>

Tip: Use your custom domain if you have one configured (e.g., store.yourbrand.com).

Webflow

Add Invoker to your Webflow site using custom code:

  1. Open your Webflow project
  2. Go to Project Settings → Custom Code
  3. In the "Head Code" section, paste the tracking script:
<script
  defer
  data-domain="your-domain.com"
  src="https://api.invoker.app/script.js"
></script>
  1. Save and publish your site

Squarespace

Add Invoker Analytics to Squarespace:

  1. Go to your Squarespace dashboard
  2. Navigate to Website → Website Tools → Code Injection
  3. In the "Header" section, paste the tracking script
  4. Save your changes

Wix

Add Invoker to your Wix site:

  1. Go to your Wix dashboard
  2. Click Settings in the left sidebar
  3. Select Custom Code under "Advanced"
  4. Click + Add Custom Code
  5. Paste the tracking script
  6. Set placement to Head and apply to All pages
  7. Save and publish

Ghost

Add Invoker to your Ghost blog:

  1. Go to your Ghost admin panel
  2. Navigate to Settings → Code injection
  3. In the "Site Header" section, paste the tracking script
  4. Save changes

Framer

Add Invoker to your Framer site:

  1. Open your Framer project
  2. Go to Site Settings → General → Custom Code
  3. In the "Head" section, add the tracking script
  4. Publish your site

Carrd

Add Invoker to your Carrd site (Pro plan required):

  1. Edit your Carrd site
  2. Add an Embed element
  3. Set type to "Code" and placement to "Head"
  4. Paste the tracking script
  5. Publish your site

Hugo (Static Site Generator)

Add Invoker to your Hugo site:

  1. Open your site's layout file (usually layouts/partials/head.html or layouts/_default/baseof.html)
  2. Add the tracking script before the </head> tag:
{{ if not .Site.IsServer }}
<script
  defer
  data-domain="{{ .Site.BaseURL | replaceRE "https?://" "" | replaceRE "/" "" }}"
  src="https://api.invoker.app/script.js"
></script>
{{ end }}

This conditional ensures the script only loads in production, not during local development.

Jekyll

Add Invoker to your Jekyll site:

  1. Open _includes/head.html (or your theme's equivalent)
  2. Add the tracking script:
{% if jekyll.environment == "production" %}
<script
  defer
  data-domain="{{ site.url | remove: 'https://' | remove: 'http://' }}"
  src="https://api.invoker.app/script.js"
></script>
{% endif %}

Astro

Add Invoker to your Astro site:

  1. Create or edit src/components/Analytics.astro:
---
// Analytics.astro
const domain = import.meta.env.PUBLIC_SITE_DOMAIN || 'your-domain.com'
---

{import.meta.env.PROD && (
  <script
    defer
    data-domain={domain}
    src="https://api.invoker.app/script.js"
  />
)}
  1. Import and use in your layout:
---
import Analytics from '../components/Analytics.astro'
---

<html>
  <head>
    <Analytics />
  </head>
  <body>
    <slot />
  </body>
</html>

Google Tag Manager

If you prefer using Google Tag Manager to manage your tracking scripts:

  1. Go to your GTM container
  2. Create a new Custom HTML tag
  3. Paste the tracking script
  4. Set the trigger to All Pages
  5. Save and publish your container

Need Help?

Can't find your platform? The basic installation is the same for any website:

  1. Find where your platform allows custom HTML in the <head> section
  2. Paste the tracking script with your domain
  3. Publish/deploy your changes