Emergency situation

In case of emergencies or breakdowns, you can send an SMS to our emergency hotline

On-call phone (SMS only)

+45 29 70 15 95

Send an SMS with the following information:

  • Your name and webshop
  • Description of the problem
  • Your callback phone number

Notes: This service is only for critical situations where your webshop is down or has serious problems. For regular support, please use our normal support channels.

HTML fields: Insert Cookiebot, GTM and other scripts in your online store

How to use Shoporama HTML fields to insert Cookiebot, Google Tag Manager, Facebook Pixel, chat widgets and other custom HTML/JavaScript on your online store.

Reading time: approx. {eight} minutes
Shopejer Developer

Do you need to add Cookiebot, Google Tag Manager, Facebook Pixel, a chat widget, or a verification code from Google Search Console to your online store? You can do this using the HTML fields in Shoporama. Here, you can enter the code you received from a third party yourself and choose whether it should be automatically inserted into the page’s or .

How to Find HTML Fields

  1. In the left sidebar, you’ll find the Webshop section(marked with a gear icon)
  2. Click on HTML Fields

How to create an HTML field

HTML-felter-siden i Shoporama med et felt ved navn cookiebot, Cookiebot-scriptet indsat og placering sat til Indsæt sidst i head.
An HTML field named “cookiebot” with the Cookiebot script inserted and the placement set to “Insert at the end of the head.” At the bottom is the “Add New HTML Field” button, where you can create additional fields.
  1. Click “Add New HTML Field”
  2. Give the field a descriptive name without spaces, such as " cookiebot," " chat_widget," or " gsc_verify." The name is used as the tag name if you later want to manually call the field in a theme
  3. Paste your code into the text field
  4. Select Placement:
    • Insert at the end of ` ` for verification tags, Cookiebot, and scripts that need to load early
    • Insert at the end of for chat widgets and scripts that can wait
    • Do not add automatically if you want to control the placement yourself in a custom theme
  5. Click Save

Tip: You can delete a field by clearing its contents and clicking Save.

Where does the code end up in the page’s HTML?

The selection under " Placement " determines exactly where your code ends up. This is important to know when a third party provides specific instructions on where their script should be placed:

  • Insert at the end of – the code is placed at the very end of the page’s , i.e., after the theme’s own meta tags, page title, and stylesheets, but before Shoporama’s own tracking script and before code from apps. This ensures that a cookie banner from this source has time to load before tracking begins
  • Insert at the end of – the code is placed at the very bottom of the page, right after the theme’s own content and JavaScript. The page has finished rendering before your script starts running
  • Do not add automatically – the code is not inserted on its own. It only appears when you call the field’s tag name in a theme

An HTML field you create under Webshop → HTML Fields will appear on all pages in the shop, including the cart, checkout, and receipt page. If you have multiple fields with the same placement, they are inserted in alphabetical order by field name. If two scripts need to load in a specific order, you can therefore control this through naming, e.g., 1_cookiebot and 2_chat.

The content is inserted exactly as you’ve written it. Shoporama does not modify your code, and any Smarty code in the field is not processed—the field contains pure HTML.

Typical uses

  • Cookiebot – cookie consent banner. If you insert it into the tag, it can block other tracking scripts until the customer has given consent
  • Google Search Console / Bing Webmaster Tools – verification meta tags that confirm you own the domain
  • Hotjar, Microsoft Clarity, Mouseflow – heatmaps and session recordings
  • Chat widgets – Tidio, Zendesk Chat, Intercom, Drift, and similar
  • Custom HTML, CSS, or JavaScript – smart extra features in your own design

Example: verification codes for search engines and ad networks

Google Search Console, Bing Webmaster Tools, Pinterest, and Meta’s Business Manager all require proof that you own the domain before granting you access to data about your store. They provide a small meta tag that must be placed on your homepage. A meta tag only works if it’s placed within the page’s `` section, so the placement should always be “Insert at the end of ``.”

Create a single field—for example, “Verification”—and collect all your verification codes in it. A field can contain multiple lines:




Replace the values in content="..." with the ones you received from each provider, and include only the lines you actually need. If the provider offers multiple methods, choose the one labeled HTML tag or meta tag. That way, you won’t have to upload a file to your domain.

Do not delete the field afterward. Search engines and ad networks check the code again at regular intervals. If it disappears, you’ll lose access to the data and will have to start the verification process over.

A Google Ads conversion ID, a GA4 Measurement ID, or a Facebook Pixel ID, on the other hand, should not be entered into an HTML field. You enter these under Webshop → Tracking, where Shoporama automatically links them to e-commerce events. See the section on HTML fields or Tracking further down.

Example: Chat widget and live chat

Tidio, Zendesk, Intercom, Crisp, Smartsupp, and most other chat tools provide you with a ready-made code snippet that you simply need to copy and paste. A chat bubble shouldn’t be the first thing the customer sees, and it’s fine if it loads after the rest of the page. That’s why it belongs at the bottom:

  1. Click “Add New HTML Field” and name the field, for example, “chat_widget”
  2. Paste the entire code snippet from the chat provider, including
  3. Set “Placement” to “Insert at the end of
  4. Click Save

The code snippet typically looks like this, where the ID is your account with the provider:

Heatmaps and session recordings from providers such as Hotjar, Microsoft Clarity, or Mouseflow are set up in the same way, but they need to load early to capture the entire visit. Always follow the provider’s own instructions: if their guide says “head,” you should select “Insert at the end of .”

If you use a cookie banner, keep in mind that chat, heatmaps, and similar tools often set cookies. They must therefore be configured according to the cookie banner’s instructions so that they only start running once the customer has given consent. Read more in our guide to cookie consent and Consent Mode.

Example: Custom CSS, JavaScript, and widgets

A small design tweak

If you just need to adjust a single detail without opening the theme, you can place your CSS in an HTML field with the location “Insert at the end of .” Because the field is inserted after the theme’s stylesheets, your rules will generally take precedence over the theme’s own:

Conversely, if you have a small piece of JavaScript that needs to run once the page has loaded, place it in a field with the location “Insert at the end of .” Keep this for minor adjustments: major design changes belong in the theme, where they’re easier to manage.

A widget that should appear in a specific location

Some widgets, such as review displays and price calculators, consist of two parts: a script that loads the tool, and a piece of HTML that determines where on the page the widget is rendered. Split them into two fields:

  • Place the script itself in a field with the location set to “Insert at the end of ” or “Insert at the end of ,” depending on the provider’s recommendation
  • Place the widget code in a field with the location “Do not add automatically” and specify the tag name as the location in the theme where the widget should appear

Further down in the section “Use HTML fields manually in a theme,” you can see how to specify the tag name.

HTML Fields or Tracking—Which Should I Use?

Shoporama also has a page under Webstore → Tracking with pre-built fields for the most commonly used tools:

  • Microsoft Ads (Bing)
  • Google Analytics 4 (Measurement ID)
  • Google Ads Conversion ID
  • Pinterest, Snapchat, TikTok, and LinkedIn
  • Facebook Pixel ID and Conversion API

If you only have an ID for one of these tools, enter it under Tracking. Shoporama automatically handles the correct setup and e-commerce events. Only use HTML fields if you have a code snippet that doesn’t fit into one of the predefined fields, such as the full Cookiebot script or a verification tag.

Built-in server-side tracking: Shoporama has its own server-side tracking solution (sGTM via Stape). You don’t need to set up a Tag Manager yourself—simply enable server-side tracking under Tracking, enter your IDs for GA4, Facebook, and Google Ads, and Shoporama will send e-commerce events server-side. You’ll also receive cookie-less signals when consent is missing. Optional feature starting at 89 DKK/month, excluding tax.

Your Own GTM: If you prefer to manage everything yourself in your own Google Tag Manager container, you can insert the GTM snippet as an HTML field (placed at the end of ) and manage Cookiebot, Pixel, Hotjar, etc., within GTM. The two solutions should not run simultaneously.

Use HTML fields manually in a theme

If you have a custom theme and want to place an HTML field in a specific location in your template, set the field to “Do not add automatically” and call the tag name in your Smarty template:

<{$webshop->getHtmlField('cookiebot')}>

The content is rendered raw, so