All Questions
Tagged with data-layer or data-layers
191 questions
0 votes
0 answers
28 views
Google Analytics : Why some columns under purchase event is empty?
I'm curious why the completion rate, abandonments, and abandonment rate appear blank in the Purchase section, despite purchase events successfully triggering from the website. Here is the screenshot ...
0 votes
2 answers
93 views
AddScoped cause System.AggregateException: 'Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType:
I study how to write API in .NET 8. I created data layer as a service, but when I try to add service with AddScoped I'm getting runtime exception. How to solve it? System.AggregateException: 'Some ...
0 votes
1 answer
66 views
dataLayer.push Not Firing on Purchase Event - Backend to Frontend Issue
I’m experiencing an issue with implementing dataLayer.push on my website, AdGPT.com, specifically related to tracking successful purchases for Google Ads, Facebook Ads, and GA4. Problem: I’ve added ...
1 vote
1 answer
95 views
Where should we do the filtering - at the data layer or the service layer to optimize testability and efficiency?
We use LINQ in EF to filter the data (to optimize queries). However, on testing our services, we cannot test the queries - so should we have filtering also done at the service layer?
0 votes
1 answer
413 views
Overwriting specific dataLayer values, then re-pushing the dataLayer
I've got a GTM container on a third party donation processing system that passes along a GA4 purchase event with ecommerce data when a donation is successfully processed. The problem is that the ...
0 votes
1 answer
129 views
undefined Variables in Tag Manager
I am new to Datalayers and GTM but i want to learn it on myself and right now im struggeling to get everything done correctly. enter image description here i have tried to add this item_id from ...
0 votes
0 answers
1k views
How can I execute my JavaScript Code in Tricentis Tosca
I am currently working on some tests regarding the dataLayer of a webshop. My goal is to use Tosca to check the dataLayer at specific points in the webshop to verify that the correct data for tracking ...
1 vote
0 answers
217 views
Google tag manager datalayer
In GTM documentation there are ways to enable data layer by pasting a given code in the body section of website's source code for getting datalayer information of the purchase event. Now I have been ...
1 vote
1 answer
421 views
how to return all events with the same name from dataLayer using JavaScript?
My website has several checkout events corresponding to different stages of the purchase stage (i.e., review order, add personal details, add payment info). Each is called 'checkout' in the data layer....
0 votes
0 answers
26 views
JavaScript - event owerriten by outer class element [duplicate]
I am sending two events here one when clicking on the specific div to mark the start of using form elements and the second for a specific input field inside the div. When the inner div is clicked, it ...
1 vote
0 answers
106 views
phone number does not get passed to datalayer Squeezely event
We have squeezely implementation added to track few events on our website. Some of them are Standard once while some are custom, but issue is from any of the event we cannot track user's phoneNumber. ...
1 vote
1 answer
721 views
How Can I Pass a dataLayer Variable From One Domain to Another Domain Using GTM
How can I pass a dataLayer variable from one domain to another domain using Google Tag Manager? Both domains use the same GTM container. Thank you.
0 votes
2 answers
339 views
Check if a property of an object is present in an array
I want to create a script (for Google Tag Manager) that checks if an object's property is present in an array: var array1 = [X, Y, Z] var array2 = [ {item1=value1,item2=value2,item3=value3}, {item1=...
0 votes
1 answer
2k views
GA4 purchase event revenue not matching order value
The purchase event on shopify purchases is showing revenue values that are close but do not match the purchase value. The event value appears correct, but ecommerce revenue seems to be changing the ...
0 votes
1 answer
29 views
How to store function getPageTypeFromDataLayer as a variable and reference the variable?
My function (getPageTypeFromDataLayer) is being called multiple times and I think it would be best to store it as a variable and then reference the variable but not sure how to set it up. Can anyone ...