Skip to content
Stackposts
Product guide

Embed Code

The Embed Code section allows you to add custom code snippets that will be injected into your platform pages. This is useful for integrating third-party services like analytics, li...

2 mins read
StackPosts guide

Embed Code

Use this owner guide to configure the workspace and confirm the customer-facing result.

Use this guide

  1. Open the owner area and confirm that you have the required permission.
  2. Apply the settings described below and save the change.
  3. Check one customer-facing workflow before rolling the change out.

Detailed steps

The Embed Code section allows you to add custom code snippets that will be injected into your platform pages. This is useful for integrating third-party services like analytics, live chat widgets, tracking pixels, or custom scripts.


Settings

  • Status

    • Enable → Activates the embed code.

    • Disable → Turns off the embed code (the script will not load on your site).

  • Code Editor
    A text area where you can paste your embed code. This can include:

    • Google Analytics tracking scripts

    • Facebook Pixel

    • Live chat tools (e.g., Tawk.to, Crisp, Intercom)

    • Custom JavaScript or CSS snippets

Example:

 
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXX-X">script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-XXXXXXX-X'); script>

Save Changes

After pasting your embed code, click Save changes. The script will then automatically load across the site where the embed injection is configured.


⚠️ Important Notes:

  • Only add trusted scripts to avoid performance or security risks.

  • Adding multiple embed codes is possible, but keep performance in mind.

  • If the embed affects page loading, test thoroughly before applying on production.

Quick check

  • The save or publish action completes without an error.
  • The visible status, preview, or connected account matches the change.
  • If the result differs, capture the exact message and review the troubleshooting guidance before retrying.
Still need help?

Tell us where you are stuck.

Share the product, the step you reached, and any error shown. Our team can point you in the right direction.