Info
Content

How to integrate the CMP into a JTL Shop website?

Integrate the CMP-Code into JTL Shop

In order to intergate the ConsentManager.net CMP into your JTL Shop system please follow these steps:

  1. You will need to edit the *.tpl files of your current theme. Therefore login into your server via FTP and locate the template directory and the template that you are using. Usually this can be found at {root}/templates/[template-name]/
  2. In the theme you should find a folder layout and within this folder a file called header.tpl. Edit this file.
  3. In header.tpl search for <body
  4. After the <body .... > you will find a {/block}, insert the CMP code after thisĀ  {/block} enclosed in {literal} and {/literal} :

  5. Save the file.

Block Third-Party-Codes in JTL Shop

Once the CMP-Code is integrated into your JTL Shop you should also prepare other codes (e.g. Google Analytics) in order for the CMP to block them if necessary. Please follow these steps:

  1. In the same directory where you located the header.tpl you should find a file called footer.tpl. Edit this file.
  2. In footer.tpl search for google-analytics.com
  3. Change the first <script ...> line as follows:

Old code:

<script type="text/javascript">	
  ...

New code:

<script data-cmp-vendor="s26" type="text/plain" class="cmplazyload">	
  ...

Using third party plugins

Some companies offer third party plugins which allow an easier integration of the CMP code into your JTL shop:

Back to top