How to install GTM (Google Tag Manager)?

How to install GTM (Google Tag Manager) on your lightspeed pos?


  • JoeyJoey Administrator, Moderator, Lightspeed Staff Posts: 277 moderator
    Hi Rihards

    There are a few steps involved in installing GTM, there is no build-in setting at this time. To install GTM you will need to enable the Theme Editor, but before doing so make sure you are aware of the  Consequences of activating the theme editor

    1. The first step is to get the code from and navigate to "Install Google Tag manager"

    2. Here you will see two sections of code that will need to be copied and pasted into your Lightspeed eCom theme.

    3. Copy the first section
    4. Go to your eCom shop and navigate to Design -> Theme Editor -> head.rain (in the layout section)
    5. Paste the code somewhere high in the <head>

    6. Now head back to Google Tag manager and copy the bottom script
    7. Once copied scroll down to the <body> section of the custom.rain file
    8. Paste the second code right after the <body>

    9. Repeat these steps to copy the same code in the fixed.rain file, in approximately the same places.

    That's it, you should have Google Tag Manager working now!

    Hope this helps :)

    eCom Support Team
    Lightspeed HQ
  • Rihards KrasovskisRihards Krasovskis Member Posts: 2
    Yes That was very helpful. Thank you.

    Now I am struggling with additional problem - 
    How can I put GTM in /checkout/  and /service/ pages
  • JoeyJoey Administrator, Moderator, Lightspeed Staff Posts: 277 moderator
    Great, did you also add the code to the fixed.rain template file?
    eCom Support Team
    Lightspeed HQ
  • MargaMarga Member Posts: 11

    Hi Joey,

    I was wondering if Lightspeed is going to add in the near future as one of their e-commerce features Google Tag Manager. Currently, the process you propose has consequences. Ideally, as a user will be great to have a more straight forward process without the risk of loosing the updates to the templates. Additionally, will help with the organization and the administration of multiple pixels, code, etc that the industry is forcing us to all business owners to implement if we want to be competitive in the market. I am sure that this feature will benefit the LS community.

    Other e-commerce platforms, have the integration already .



  • JoeyJoey Administrator, Moderator, Lightspeed Staff Posts: 277 moderator

    Hi @Marga

    The above workflow of enabling the theme editor will be obsolete very soon. There won't be a specific Tag Manager field but we are adding the option to add custom code to the <head> of the shop.

    This will allow you to copy/paste the code provided by a third party (GTM) and just past it in the back office.

    Although we do not provide any timelines on exact implementation, this feature is very far in development and will be released soon. Keep an eye on the change log in your back office!

    Have a great weekend :)

    eCom Support Team
    Lightspeed HQ
  • MargaMarga Member Posts: 11

    Thank you @Joey ! I will keep an eye on the messages from the back office...


  • BenjaminHornoyBenjaminHornoy Member Posts: 5

    @Joey How does it work to install GTM now? The new feature allows one to add the first code in the head section, but what about the bit of code that has to go in the body section of the pages?

    Thanks for your help

  • JoeyJoey Administrator, Moderator, Lightspeed Staff Posts: 277 moderator

    @Marga we just launched a feature to add Javascript code to the head, this can be found under Settings -> Web Extras -> Head Code.

    @BenjaminHornoy the body code is added under Settings -> Web Extras -> Custom JS. This will go in the end of the <body> so you would need to verify that this is not causing issues.

    eCom Support Team
    Lightspeed HQ
  • VintageWineGuyVintageWineGuy Member Posts: 132 

    Thanks for adding this feature, it will be helpful with managing all our ads, etc.

  • MargaMarga Member Posts: 11

    @Joey Excellent News!!! I will give a try..... Thanks for the update... much appreciated!

  • trostletrostle Member Posts: 3

    I tested this but seems to be missing the ecom conversion data layer as no conversions were recorded in GA during testing. Has anyone built that out or am I missing something?

  • silverinthecitysilverinthecity Member Posts: 5

    Same - after installing Tag Manager into my custom head code my GA stopped receiving Transaction/Amount data from LS.

    Would love any advice for resolving this as support chat simply led to this message string.

  • olafcolafc Member Posts: 1

    Does anyone know how to add lightspeed data to the variables layer in GTM?

    Voor Google dynamic remarketing we need to add ecomm_prodid and ecomm_pageid to be filled with data from lightspeed. But I can't get the LS variables to be added to GTM.

  • raejadaraejada Member Posts: 2

    I have the same problem. It has been working fine for months, but now suddenly not receiving any transaction data into Google Analytics.

  • raejadaraejada Member Posts: 2

    I just got off the phone from support and this is a known problem with the new beta checkout. They advised the developers are working on fixing the ecommerce tracking but for now suggest rolling back to the old checkout for anyone else in the same position.

  • ummmimrobummmimrob Member Posts: 13 ✭

    This is still a problem. The new beta checkout is much better but not having analytics is a problem.

  • ummmimrobummmimrob Member Posts: 13 ✭

    Just wanted to follow up that this looks to be working again.

Sign In or Register to comment.