Zum Inhalt

Drupal

Follow these instructions to integrate the code snippet from CCM19 into your Drupal system.

Navigate to /themes/YourTheme

Find the html.html.twig file

Navigate to your theme’s folder. If there is no folder, you can create one.

Look for thehtml.html.twigfile.

If you cannot find this file, navigate to the parent-theme of your child-theme and copy the file from there into your sub-theme to maintain the same folder structure.

Never edit core files or the core theme’s files!

Insert the code snippet into the html.html.twig file

Now insert the code snippet from CCM19 into the file. To do this, place the code right at the beginning of the opening <head> tag. It should look something like this:

<head>
  <script 
    src="https://XXXXX.de/app.js?apiKey=XXXXXXXXXXXXXXXXXXXXXX&domain=XXXXXXXXXXXXXXXXXXX" 
    referrerpolicy="origin">
  </script>
</head>

Save the change.

Clear the cache

After making your changes, it is recommended that you clear the cache.