How to Create a Code Inject Integration
The Code Inject feature allows Organization Admins to add custom JavaScript snippets to their Learnly portal. It is commonly used to install analytics tools, chat widgets, accessibility widgets, tracking scripts, and other third-party integrations without modifying the platform's code.
What You Can Use Code Inject For
Analytics tools (Google Analytics, Meta Pixel, etc.)
Chat widgets (Intercom, Tawk.to, Crisp, etc.)
Accessibility widgets
Custom tracking scripts
Marketing and conversion scripts
Step 1: Open Code Inject
Navigate to 'Global Settings' and select 'Code Inject'.
Step 2: Add a New Integration
Click '+ Add Integration'.
Step 3: Enter Integration Details
Enter the 'Title', choose an 'Icon', and add a 'Description'.
Step 4: Choose Code Placement
Select where the script should be injected from the 'Code Placement' dropdown.
Step 5: Paste Your JavaScript Code
In the 'Code' (JavaScript only) field, paste the script provided by your third-party service. Then, toggle 'Enable this integration' and click 'Create Integration'.
Step 6: Manage Existing Integrations
After creating an integration, it appears in the 'Code Inject' list. From here, you can 'Enable or Disable', 'Edit', or 'Delete' the integration as needed.
You have successfully configured Code Inject. This feature provides a flexible way to add analytics, chat widgets, accessibility tools, and other custom JavaScript integrations to your Learnly portal without modifying the platform's core code.