Shoptet Integration
Install Consentio on your Shoptet e-shop
Installation via HTML Codes
The easiest way to install Consentio on Shoptet. Follow these steps:
- Log in to the Shoptet administration
- Go to Appearance and Content → Editor → HTML Code
- Select the Header (before the closing HEAD tag) section
- Insert the following code
- Save your changes
<script src="https://consentio.cz/widget/YOUR_KEY/consentio.min.js" async></script>
Deactivating the Built-in Shoptet Cookie Banner
After installing Consentio, we recommend deactivating the built-in Shoptet cookie banner so that two banners are not displayed simultaneously.
- Go to Appearance and Content → Cookies
- Deactivate the built-in cookie banner
- Save your changes
Blocking Scripts on Shoptet
On Shoptet you can block third-party scripts using the type="text/plain" attribute
with the data-category data attribute. Here are examples for common Czech services:
<!-- Blocking Heureka tracking code -->
<script type="text/plain" data-category="marketing">
// Your Heureka tracking code
</script>
<!-- Blocking Facebook Pixel -->
<script type="text/plain" data-category="marketing">
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', 'YOUR_PIXEL_ID');
fbq('track', 'PageView');
</script>
<!-- Blocking Google Ads remarketing -->
<script type="text/plain" data-category="marketing">
// Your Google Ads remarketing code
</script>
Multilingual Support
Consentio automatically detects the language from the lang attribute on the <html> element.
Shoptet sets this attribute according to the e-shop's language settings.
Compatible Services
| Service | Category | Blocking Method |
|---|---|---|
| Google Analytics 4 | analytics | Google Consent Mode (automatic) |
| Facebook Pixel | marketing | type="text/plain" |
| Heureka | marketing | type="text/plain" |
| Zboží.cz | marketing | type="text/plain" |
| Seznam Sklik | marketing | type="text/plain" |
| Hotjar | analytics | type="text/plain" |
HTML Code Limit
Shoptet has an 8,192-character limit for HTML codes in the header. The Consentio script is well under this limit (approximately 100 characters), so you have plenty of space for other scripts as well.
/user/documents/ and reference them.