Skip to main content
Use this setup when you want Google Tag Manager to load the Octanist pixel on your website. The pixel tracks sessions, page views, attribution parameters, and can optionally detect forms. If your website already pushes lead data into the dataLayer and you want GTM to send lead events directly, use GTM DataLayer instead.

Get your pixel script

  1. Open Octanist.
  2. Go to Settings > Tracking.
  3. Copy the pixel script.
Copy the Octanist pixel script
The script looks like this:
<script
  src="https://c.octani.st/p"
  data-id="OCT-XXXXXXXX"
  data-consent-mode="auto"
  data-forms="true"
></script>

Create a GTM tag

  1. Open Google Tag Manager.
  2. Open your website container.
  3. Go to Tags.
  4. Click New.
Create a new GTM tag
  1. Name the tag Octanist Pixel.
  2. Choose Tag Configuration > Custom HTML.
Choose the Custom HTML GTM tag type
  1. Paste the pixel script from Octanist.
  2. Set the trigger to All Pages.
Set the GTM trigger to All Pages
  1. Save the tag.
Save the Octanist Pixel GTM tag

Publish and test

  1. Click Preview in GTM.
  2. Enter your website URL and connect Tag Assistant.
  3. Confirm the Octanist Pixel tag fires on the page.
  4. Submit a test form if data-forms="true" is enabled.
  5. Publish the GTM container.
  6. Open Octanist and verify the setup status or test lead.
Submit the GTM container after creating the Octanist Pixel tag

Avoid duplicate form captures

If another Octanist integration already sends the same form submissions, remove data-forms="true" from the pixel script before adding it to GTM. Use only one form capture method per form:
  • Browser-side pixel form detection through data-forms="true"
  • Server-side form capture through your backend
  • WordPress server-side capture through the Octanist plugin
  • GTM DataLayer lead sending
The pixel can still inject the hidden session field without data-forms="true", so server-side form capture can link form submissions to the same session.

Custom JavaScript forms

If your website needs to send a form submission from custom JavaScript, use the Client-side API. Do not also enable data-forms="true" for that same form unless support confirms the setup.