Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Google Tag Manager sends data on Preview GTM Tool but it doesn't in production.

Hi community. Does anybody know why this is happening? My GTM works perfectly in the debug mode, the data is sent to analytics and then to bigquery. Each visit to the page produces an event named "view_product", which includes some data in the dataLayer such as productId and accountId. This data is present in the record in BigQuery if the visit was made with the Debug Tool ("Preview"), but if I try to do so without the debug mode, even using the same page, this additional data added to the dataLayer just don't exist, however, the tag is triggered since the other data related to the tag is sent. 

Record saved using the GTM Preview Tool (using the same url as before):

Screenshot from 2024-12-30 19-29-34.png

Record saved without the Preview mode (just accessing to a product from the website):

Screenshot from 2024-12-30 19-26-18.png

0 1 146
1 REPLY 1

Update:I've enabled the debug mode of the GTM library that I'm using (@zadigetvoltaire/nuxt-gtm) and this log shows up. It seems that the data is being sent succesfully, however, by any reason it doesn't arrives to bigQuery, but the crazy thing is that it only works with the Preview mode...
Screenshot from 2024-12-30 19-55-44.png