How to install GTM (Google Tag Manager)?

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

3 comments

  • JoeyJoey Posts: 152Administrator, Moderator, Lightspeed Staff 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 https://tagmanager.google.com 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 Posts: 2Member
    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 Posts: 152Administrator, Moderator, Lightspeed Staff moderator
    Great, did you also add the code to the fixed.rain template file?
    eCom Support Team
    Lightspeed HQ
Sign In or Register to comment.