Set up Google Tag Manager tracking on the Alaska theme
How to set up Google Tag Manager (GTM) tracking on the Alaska theme in Shoporama with HTML fields and Shoporama's ready-made GTM container file.
This guide shows how to set up Google Tag Manager (GTM) tracking specifically for the Alaska theme in Shoporama. The Alaska theme has built-in support for GTM, so the setup is quick and simple.
Recommendation: use Shoporama's built-in tracking
The easiest and most robust solution is Shoporama's built-in tracking, which sends data to Google Analytics, Google Ads, Meta, and several other platforms without code changes or a GTM setup. The guide below is an alternative for stores that want to run their own Google Tag Manager setup.
1. Create a Google Tag Manager account
If you do not already have a GTM account, create one:
- Go to tagmanager.google.com
- Sign in with your Google account (usually the same one you use for Google Analytics)
- Create a new account with your company name
- Create a container for your store (choose "Web" as the platform)
2. Find your GTM ID
Once your container has been created, you are shown a code snippet. You only need the GTM ID, which looks like GTM-XXXXXXX. Copy this ID.
3. Add your GTM ID in Shoporama
- Log in to your Shoporama admin
- Go to Webshop → HTML fields in the left sidebar
- Click Add new HTML field
- Give the field a name, for example gtm_head
- Paste the GTM snippet that Google Tag Manager gave you (both the <script> part for <head> and the <noscript> part for <body>)
- Choose a location: Insert at the end of <head> for the script part, and if needed create a separate field with Insert at the end of <body> for the noscript part
- Click Save
Read more about HTML fields in the article HTML fields: add Cookiebot, GTM, and other scripts to your store. Note: If your store has previously had a GTM ID set up directly in the theme's tracking settings, the Alaska theme already loads GTM automatically. Make sure GTM is loaded in only one place, or visits and sales will be recorded twice.
4. Import Shoporama's settings into GTM
Shoporama has prepared a container file that automatically sets up the most important tags and triggers for the Alaska theme. Email support@shoporama.dk, and we will send you the file. Once you have received it, import it like this:
- Go to Admin in Google Tag Manager (top left)
- Click Import Container
- Select the container file from Shoporama
- Choose "Existing" and then "Default Workspace"
- Click Confirm
- Click Submit in the top right corner
- Click Publish, and optionally name the version "Shoporama"
Troubleshooting
- Tracking not working? Check that the GTM ID has been added correctly and that the container has been published
- Events not being recorded? Use GTM's "Preview" mode to debug your tags
- No ecommerce data in GTM? The Alaska theme only sends data to the dataLayer when tracking is turned on for the theme and the customer has accepted cookies. If you are unsure, email support@shoporama.dk
- Double tracking? Make sure you have only one tracking setup active (either your own GTM setup or Shoporama's built-in tracking), and that GTM is loaded in only one place
Need help with tracking? Contact us at support@shoporama.dk.
Related articles
Set up Daisycon tracking in your online store
How to implement Daisycon conversion tracking in your Shoporama store with the correct Smarty code, so each order is only counted once.
Customize the content of your automatic emails
How to customize the automatic emails your Shoporama store sends: without code under Design > Emails, with subject lines and texts in the store...
Checkout flow and shipping calculation in your theme
A guide for developers on implementing shipping in the checkout flow of a Shoporama theme, including the recommended page order and parcel shop...