Questions tagged [data-layers]

134 questions
0
votes
1 answer

An elegant way to generate dataLayer formatted output?

I need to generate following type of input from a php array: dataLayer = [{ key: 'value', key2: { key3: ['value2','value3','value4'], key4: ['value5','value6'] } }]; I wrote the following function which does it, but it's not elegant…
Karolína Vyskočilová
  • 1,305
  • 1
  • 18
  • 29
0
votes
1 answer

google tag manager variable data layer custom javascript undefined

I need help for writing custom javascript in data layer. I am trying to get names. promotionImpression: { event: 'promoImp', ecommerce: { promoView: { promotions: { 142398:{ id: '142398', name:…
riyaz
  • 23
  • 1
  • 8
0
votes
1 answer

PHP Variables in dataLayer

I am new to PHP and dataLayer but I have the below code which includes a dataLayer with PHP code. I want to use the datalayer variables to map them to google tag manager and would like to use the PHP variables available in the below code. What I…
kishoremcp
  • 39
  • 1
  • 3
0
votes
2 answers

Google Tag Manager - Grab nested value from data layer

I want to grab the price key in the addToCart datalayer. It does not work by simply creating a price variable - I get the value Undefined. How do I grab a key that is nested this…
0
votes
1 answer

How to use markup in an OpenLayers layer name

I have a number of data layers defined in the following manner: var mylayer = new OpenLayers.Layer.TMS("MY LAYER NAME", "", { type: "png", getURL: my_layer_geturl, isBaseLayer: false, visibility: false, attribution: 'Some Attribution text'…
Steve Martin
  • 1,632
  • 10
  • 19
0
votes
1 answer

Unable to pass a value from a function to a data layer array using javascript

I am trying to collect the value (Showing 1 -10 of 74) in the below HTML
0
votes
1 answer

Multiple Currencies - Google Analytics

We have a website that make use of multi-currencies for payments. But of course we don't want to show Australian Dollar the same as American Dollar. What is the work around for this? We make use Google Tag Manager to push the values of ecommerce…
0
votes
3 answers

Adding an Object to an Array

I'm struggling on adding an Object to an Array (E-commerce context). My "tc_vars" datalayer is mapped with another datalayer which is called "wa_data". The latter sends the requested information to the first one. An Object in that case will be a…
Jordan
  • 25
  • 5
0
votes
1 answer

JS - Delay the execution of a script until all data is defined/available

I have a script, that uses data from a data layer. If I fire the script too early it doesn't work because the data (I refer to in the script) is not defined yet. Therefore I delayed the script (1500ms). The problem is that the script should run as…
noob
  • 17
  • 2
0
votes
0 answers

Will Asynch Ecommerce Code work with Universal GA?

Total revenue comes through properly for an order, but when you click into the Transaction ID, the breakdown of products and product revenue is incorrect. We are on Universal GA, however just realized that the ecommerce code is still using the…
0
votes
2 answers

GTM V2 DataLayer button click tracking

On my webpage I have 3 button ( Good ,Average, Bad). I want to track how many times particular button is click. I want to use custom dimension and custom metric to track this in below format Button Name No.of time button click Good …
Avez
  • 1
  • 4
0
votes
1 answer

Google tag manager virtual page view not working for links that have span tags or images inside the link

I have one more issue which is strange. I set up a virtual page view in Google Tag Manager to listen out for PDF extension with reg ex. This works brilliantly. If however there is a span tag inside said a-link or an image to represent the document…
user1712691
  • 159
  • 1
  • 2
  • 10
0
votes
1 answer

IQueryable and lazy loading

I'm having a hard time determining the best way to handle this... With Entity Framework (and L2S), LINQ queries return IQueryable. I have read various opinions on whether the DAL/BLL should return IQueryable, IEnumerable or IList. Assuming we go…
Nelson Rothermel
  • 9,436
  • 8
  • 62
  • 81
0
votes
1 answer

Java EE Data layer frameworks

I am trying to figure out what are the most widely used frameworks on the data layer on a Java EE application server. I would like help in knowing which are used out there and what are their Pros and Cons.
Tiago Veloso
  • 8,513
  • 17
  • 64
  • 85
0
votes
1 answer

google tag manager - data layer implementation for ecommerce

I want to use Google Tag Manager for ecommerce tracking. I am just not sure in setting up of data layer. Is it me who implements that on the site or a programmer and I send him the data I need to get? Thanks for your help and answers.
1 2 3
8
9