Developer forum

Forum » Rapido » Problemer med opsætning af Google Tag Manager i Rapido

Problemer med opsætning af Google Tag Manager i Rapido

Cecilia Sørensen Vejle
Cecilia Sørensen Vejle
Reply

Efter vi har indsat et GoogleTagManagerID i website settings, så har vi fået disse problemer.

1. Nedenstående script står i body tagget, men skal være i head tagget for, at scriptet er valid.

        <script>
                (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
                new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
                j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
                'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
                })(window,document,'script','dataLayer','@GoogleTagManagerIDHead');
        </script>

 

2. Vi kan ikke komme til en produkt detalje side fra en produktliste. URL ender på  /null

 

Vi oplever ovenstående på Hotel Chocolat, som bruger Rapido 3.1.

Kan i hjælpe?


Replies

 
Karsten Thuen Dynamicweb Employee
Karsten Thuen
Reply

Hi Cecillia

Thank you for the question. Can you please write in english? This will secure that you will get a quicker response from the developers, and it will be possible for non-danish users to know what all this is about :)

I have send your question to one of my colleagues that may know the answer:

1. This script is in the body, but should be in head to be vaild:

<script>
                (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
                new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
                j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
                'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
                })(window,document,'script','dataLayer','@GoogleTagManagerIDHead');
        </script>

2. We can not go to the product detail page as the url ends on /null

We experience the errors on Hotel Chocolat that is using Rapido 3.1 



Best regards
Karsten Thuen

 
Vivi Hedegaard Vroue
Reply
This post has been marked as an answer

@Cecilia, the error is described here: https://doc.dynamicweb.com/forum/rapido-and-wrap/rapido-and-wrap/adding-google-tag-manager-breaks-navigation-to-product-details-page 
This problem is known, it is fixed on bug #62195 and will be ready for the Rapido 3.1.1 hotfix

Votes for this answer: 1
 
Cecilia Sørensen Vejle
Cecilia Sørensen Vejle
Reply

Thank you!
Have a nice day. :)

 

You must be logged in to post in the forum