Custom Code

Custom Code section allows administrator to inject any HTML code into predefined areas of the platform (excluding administrative pages).

Available custom code areas

  • After <head> tag
  • After <body> tag
  • Before </body> tag

Available variables in custom code

  • %user_uuid% – user identifier

Custom CSS

Custom CSS URL Enter a URL to a custom CSS file that will be loaded on every page.

Global Event Tracking

  • Use for services like Google Analytics
  • Injects code after user actions (e.g., course enrollments)
  • Variables like course name can be passed
  • Consent-based display: Code needing cookie consent runs only after user acceptance.

Conditional execution of code

To add scripts that require cookie consent in order to be executed, two attributes need to be added (both required) to the <script> tags:

  • type="text/plain"
  • data-category="your-category-name"

where your-category-name can be set to:

functionality for scripts that improve the general functionality of the site
analytics for scripts that track user behavior for analytics and statistic purposes
marketing for scripts that gather user data in order to display personalized ads and marketing materials

Example:

<script type="text/plain" data-category="marketing">
// Your marketing pixel goes here
</script>