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...
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...
Working on a website, I use Google Tag Manager and push some info with the dataLayer in Javascript. So far so good. However there are some information that should not be seen on the client side. Therefore I'm wondering if it's possible to do...
I read Google Tag Manager v4 - Getting Started and Integrating Google Tag Manager and Google Analytics in a SPA  I am not sure how it handle at the Javascript side even I could. So I want to handle at the native side. But Google's documentation l...
How to get script inside dangerouslySetInnerHTML get executed?  class Page extends Component {    render() {     return (       <script         dangerouslySetInnerHTML={{ __html: `           console.log('hello world');           window.dat...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.