# Custom JavaScript

This integration allows you to add additional JavaScript code. This can be used to enable various third-party integrations that are not specifically implemented in DG1 platform.

JavaScript code must not include <script></script> tags.

# JavaScript code example for Google AdSense

var script = document.createElement('script');
script.type = 'text/javascript';
script.crossorigin = 'anonymous';
script.src = 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-19841618616681';
document.getElementsByTagName('head')[0].appendChild(script);

# Add Custom JavaScript to DG1 platform

  1. Log into your DG1 Admin panel.
  2. Navigate to Plugins and create a new integration by clicking Add Add button under JavaScript.

add

  1. Enter the custom JavaScript code in the Content field and select the output location. This defines where the provided JavaScript will be outputted in the HTML code.

settings

  1. To save your new integration, click Submit Submit button green .

Important

Never include code from unknown/untrusted sources as malicious code can create serious problems with security.

Also be mindful that including some third-party providers creates additional data processing activities that must be reflected in your “Privacy policy” and/or “Terms of use”.

If a third party provider uses cookies, you must use the Cookie registry in your DG1 platform (Settings -> Cookies) to register those providers and describe their data usage.

Copyright © 2024 DG1 Group Holdings Inc - All Rights Reserved - Terms of use - Privacy Policy - v0.5.38