I want to use Google Tag Manager (GTM) to identify if a virtual page view has been set within the Google Analytics (GA) script (which sits in the <head>). The GA code is NOT set via GTM.  The virtual page view looks like this: ga('send'...
So i have Ecommerce code setup in GTM data layer, but after that is sent to Analytics i want the page to be redirected so i know i should be using eventCallback but it is not working for some reason.  <body> <script>     dataLayer = [{...
In a custom javascript variable, how can you get the parent element of the clicked element?  <div>     <h2>Lorem Ipsum</h2>     <a href="#"></a> </div>   For instance, I want to go get the content of the &l...
I observed the dataLayer array and I don't see any changes to push. No custom methods at all, actually. How is GTM observing the changes to the array? As far as I know, changes to an Array don't throw any events, do they?    Edit:  I did some...
I want to use the Javascript below capturing the alt attribute of an image when user click on it, but the result I can get is always null. I want to extract the "Youtube" alt attribute.  <a href="http://www.youtube.com/" title="...
I have a page that fires an ajax call on load  $(window).load(function() {   updateDeliverySlots(); });   I also have Google Tag Manager javascript at the top of my body (I know the current suggestion is to place this in the head section, but we have...
Could you tell me, how can I listening google analytics (google tag manager) event with native javascript?  For example:   The client sent this event  ga('send', 'event', [eventCategory], [eventAction], [eventLabel], [eventValue]);...
I have been racking my brain on this one and not sure why our Google Tag Manager code isn't sending data to our Google Analytics account.  I have researched multiple questions on here that have similar issues, but haven't worked for me.  In a...
I have configure all my GTM account and create container, tags etc...  I have create a version and publish my container. And when I want to see the result on my website all my code was encapsulated in div tag with style display none and visibility hi...
So I have a dataLayer created that works just fine when using the console in Chrome:    In Google Tag Manager, this dataLayer doesn't exist. Why?  The code I've used is below:  <script>  <?php     global $woocommerce;     $items = $w...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.