We initially push an object containing variables to the dataLayer: We now want to increase the value of environment.clicks with every click a user makes. How to do that? When we push it via The dataLayer Array may get 10.000s of entries. How to properly update the variable? Answer The way to update a datalayer variable is to push a
Tag: google-analytics
GA send event, returns undefined
Innit GA Track event But this allways return undefined, And I added the ‘Registration’ event (with that category, label and value) in conversions, at google analytics site, Any idea why this could happen? Of course it isn’t tracked.. Answer You are mixing old-style classic syntax (using the _gaq array) and Universal Analytics, so your ga object is not set up
Google Analytics: How to track pages in a single page application?
Currently in my website, I used HTML5’s pushState() and popState in links to increase the speed. However, this doesn’t really change the real URL and it looks like it will affect and mess up the Google Analytics’s code. (doesn’t show a url change) Is there a possible solution for this? Thanks, Answer If you are using the newer analytics.js API,