Stackposts - Start your business effortlessly with us!

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...

Estimated reading: 1 minutes

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:

<!-- Google Analytics --> <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.