FAQ Database Discussion Community


Google Tag Manager Integration for Magento Checkout Success

magento,google-tag-manager
I'm a bit confused with getting around on what GTM mentions as to the following. The rule is considered matched only when every condition below is satisfied. Screenshot My magento checkout success page might end up in different URLs depending on the order. Listing a few below. http://domain.com/checkout/onepage/success/ https://domain.com/checkout/onepage/success/ http://domain.com/checkout/multishipping/success/...

How to configure Android Google Tag Manager v4 with Google Analytics (Universal Analytics)

android,google-analytics,google-tag-manager
I'm trying to use Google Tag Manager to report screenviews and events to Google Analytics. I followed the google's tutorial but I'm not able to even report the screenviews. Also spent hours searching in google but there was no match. Almost all the information available is for Android's v3 or...

Google Tag Manager Dynamic Function

javascript,jquery,google-tag-manager
Is there anyone who knows how to use dynamic function in Gtm. For ex I create a new variable(custom javascript in GTM) called GetName and which is just take 1 parameter. function(name) { console.log(name); return; } Now, I want to create a new custom javascript. And that will call the...

Does Google Analytics support real time reporting for custom dimensions?

google-analytics,google-tag-manager,universal-analytics
I've already verified that my GTM and GA are linked correctly, and I've got a couple of virtual pageviews working (i.e. I can see them in the GA realtime report). But, I'd like to attach some metadata to these virtual pageviews, and I thought I'd accomplish this using custom dimensions....

Why isn't my Google Tag Manager event listener being installed?

javascript-events,google-analytics,google-tag-manager
I have a very simple Google Tag Manager trigger that looks like this: I also have a corresponding tag that uses this trigger. I have published my container, and the tag shows up when previewing/debugging the container: I also see my link's id in the response from GTM. However, I...

Automatic checking of GTM Tags

google-analytics,code-snippets,google-tag-manager
Is there is a tool or a solution that automatically checks if the GTM (Google Tag Manager) tags are working properly on a page? I don't need it to do anything else except retrieve the bag of tags and let me know which any URLs where there is a problem...

Google tag manager v4 tracking screenView issue android

android,google-analytics,google-tag-manager
I am using this GTM utils function to push screen event, and I am sending Screen Name as a second paramater public static void pushOpenScreenEvent(Context context, String screenName) { //ContainerHolderSingleton.getContainerHolder().refresh(); DataLayer dataLayer = TagManager.getInstance(context).getDataLayer(); dataLayer.pushEvent("openScreen", DataLayer.mapOf("screenName", screenName)); } And calling this function in activity like this @Override protected void onStart()...

How to open a lightbox on page load if url equals using google tag manager

javascript,lightbox,google-tag-manager,featherlight.js
The title pretty much says it. I would like to show a lightbox on page load only if the url is www.example.com/#popup versus www.example.com If this could be accomplished with google tag manager that would be grand I've see bits and pieces of this but I'm having trouble piecing it...

Google Tag Manager and dataLayer interraction

e-commerce,google-tag-manager,google-datalayer
I use GoogleTagManager script and dataLayer object. I read in documentation that dataLayer object has to be filled above the GTM script. But I need to add a product detail when the user chooses the product and it happens after the GTM script is loaded. If I use dataLayer.push(chosenObject) will...

Detecting a server conversion in Google Tag Manager

google-tag-manager
Can I - and if so, how do I - detect in Google TM either one of these cases: A new HTML element (in this case, img) was suddenly appended to the webpage. A certain JavaScript AJAX command was suddenly launched and returned a success (with a non empty data)....

Should Tag Manager's snippet be officially entered into the head or body?

google-tag-manager
Google Analytics' https://support.google.com/analytics/answer/1008080 states: Paste your snippet (unaltered, in its entirety) into every web page you want to track. Paste it immediately before the closing tag. But what about Tag Manager? Is there an updated official documentation about whether it should be in the head or body (and where exactly...

Find header of Clicked Radio Button

jquery,google-analytics,google-tag-manager
I've just started with Google Tag Manager and I needs a bit of help. I wanna build it all with Jquery and it would work something like this: $('input[type=radio]').on("click", function() { dataLayer.push({ "event":"Google Event", "eventCategory":"Google Category", "eventAction": "Event Action", "eventLabel": "Desired Label of Radio Button" }) }); Now what I...

Google Tag manager code added with the help of DTM is not working

google-tag-manager,adobe-analytics
I had a request to add Google tag manager to our website and i added it using Dynamic Tag Manage (DTM). I created a page load rule and added this script. But my client is saying it is not working as DTM adds the code to the page with an...

Why Google Tag Manager puts both display:none AND visibility:hidden on iframe?

html,css,iframe,google-tag-manager
If you take a look at the <noscript> part of the Google Tag Manager embed code, you'll notice something like: <noscript><iframe style="display:none;visibility:hidden" src="//www.googletagmanager.com/..." height="0" width="0"></iframe></noscript> I can understand why style="display:none" would be important (it will hide the element such that it takes up zero space in the layout and yet...

GTM Macro to set GUA_ID based on domain/hostname/url

google-tag-manager
We have several websites. During set-up of GTM I was wondering if I needed to set-up 1 GTM-container for alle websites (and make it variable) or set-up 1 container per website. The latter seemed like a lot of manual config. However, to achieve a more dynamic approach I was wondering...

Implementing Event Tracking with GTM

google-analytics,google-tag-manager
I have dadded Universal Analytics to Google Tag Manager with it's default settings. Currently I have below code in the user registration page: _gaq.push(['_trackEvent', 'Account Events', 'Create Account', 'Create new account ']); How can I convert this to 'DataLayer.push' ? Is there any configuration changes needed in GTM side? Please...

UA through GTM macro: ga.getAll()[0].get('clientId') - ga is not defined

javascript,google-analytics,google-tag-manager
Here is the site - http://www.ssangyong-favorit.ru/ For some reason this code is giving me "GA is not defined" error: ga.getAll()[0].get('clientId') This site has Google Analytics installed on it through GTM and it works and getting stats. The code works for any other site just fine. The problem is that "ga"...

Replacing variable A that contains document.location.path if variable B is not undefined

javascript,function,google-analytics,google-tag-manager
Google Tag Manager in default configuration sends a pageview based on a variable {{Page URL}}. This variable contains document.location.pathname. The website I'm working on has a global js variable trackerParam that modifies the page URL sent to different analytics engines. In most of the cases, it's undefined. What I need...

Restore Deleted Account in Google Tag Manager

google-tag-manager
I am wondering whether data can be restored if our google tag manager account is deleted by mistake. We have the gmail address which is also the user name of google tag manager.

Adobe Dynamic Tag Manager (DTM) - Rolling back to previous versions

dynamic,tags,versioning,google-tag-manager,adobe-analytics
We need to have the ablity to roll back to a previous version of a published tag, much like the way Google Tag Manager has versioning. For instance, if we go through the publication authentication, then find that a bug exists and need to drop back to the most recent...

Google Tag fires but not logged in Analytics

google-analytics,google-tag-manager
I had set up my Google Tag to track clicks on spans with certain IDs, the events are firing according to WASP extension, but they are not showing up in my Google Analytics account. Here is my trigger: My Tag: WASP in action: GA displays pageview only: Code is installed...

How to show count of any jstree in google analytics

google-analytics,google-tag-manager
I am using google tag manager to fire tags for my website, I created custom javascript variable which returns count of my jstree selection (i.e how many users selected how many items) and i placed a trigger on this count, just wanna know if there is any way that i...

Google analytics (via tag manager) loses track of adwords visitors after first pageload

backbone.js,google-analytics,single-page-application,google-adwords,google-tag-manager
I am experiencing a very strange problem with Google tag manager (GTM), Google analytics (GA) and Google adwords. So far I am getting nowhere with solving it. The setup: We have a singe page application (backbone and marionette) and we are using GTM to push virtual pageviews to GA using...

Google Analytics duplicate transaction id multiple domains

google-analytics,transactions,google-tag-manager
I am implementing Google Analytics (via GTM) on multiple ecommerce sites. I need to record transactions to the client's google analytics account as well as to our single master analytics account, which accrues data for multiple sites. I am wondering if there will be any issues sending duplicate transaction ids...

How can I turn dataLayer.push into a Google Analytics Goal?

google-analytics,google-tag-manager
I like to turn window.dataLayer.push({ 'event': 'Offer', 'vpv': '/offer-lead'}); or window.dataLayer.push({ 'event': 'Offer', 'eventCategory': 'Success', 'eventAction': 'Lead', 'eventLabel': pageId}); into a GA Goal that shows people who I count as "leads". I managed to catch this event in TM but not in GA. Can you please take me to the...

Tracking AppView events in GA via Google Tag Manager from iOS

ios,google-analytics,google-tag-manager
I am trying to get GA Screens working via Google Tag Manager on iOS. I've configured GTM Tag with the tracking type App View and I am able to see that events are coming but screen name is always (not set) I was trying to set different variables/parameters in GTM...

PDF PAge veiw tracking

php,jquery,google-analytics,google-adwords,google-tag-manager
Can anybody know how we can track pdf page views, open or not. for eg suppose pdf has 10 pages then I want to track out of 10 pages which is most readable and least readable page from the marketing point of view. I don't want download tracking. Is it...

Existing Google Analytics events and Google Tag Manager

google-analytics,google-tag-manager,universal-analytics
I have implemented Google Analytics (GA) on my site and I send several custom events through ga("send", "event", ...); function and it works well. I am experimenting with Google Tag Manager (GTM). I have removed original GA snippet, and now I use GTM to inject GA tag on my site...

Universal Analytics events via Tag-manager not working

events,analytics,google-tag-manager,universal-analytics
I'd like to have any help regarding an events-firing issue with Universal Analytics deployed via Google Tag Manager.In particular, I'm attempting to send two kinds of events on the same page: a checkout-purchase event (Enhanced-ecommerce) and an onclick generic custom one. Below my page's related code, in the order of...

Google analytics: dataLayer.push not working?

javascript,google-analytics,google-tag-manager
Based on this thread: Tracking events using Google Tag Manager I created my own version, which is located at e.g. http://test.site.com <!DOCTYPE html> <html> <head> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script> window.dataLayer = window.dataLayer || []; dataLayer.push({ 'event':'GAevent', 'eventCategory': 'App4', 'eventAction': 'Click', 'eventLabel': 'iOS4' }); </script> </head> <body> <!-- Start google tag manager...

Google Analytics Missing analytics.js script

google-analytics,google-tag-manager
I'm stucked on copying google analytics tracking code issue. It looks like Google Tag Assistant doesn't consider the code I copied from the generated GA tracking JS for the site. The site is in http://www.orchid.co.nz/ I added the codes on the header. This should work correctly like what I'm doing...

How to find Tag Manager Container ID with JQuery

jquery,google-tag-manager
I need to find what the Google Tag Manager container ID is after the page loads. I cannot get it from the same source as i'm adding it to the page. i want to set a jQuery variable to GTM-XXXXXX i have been messing with var scripts = $("script"); but...

Can you use google tag manager to implement custom animations in a mobile app?

android,ios,google-tag-manager
I was wondering whether it's possible to use google tag manager to implement custom app UX or UI without having to push a new version of an app? I see that you can use GTM to add tracking code without re-deploying, but can you say push a survey pop-up action...

Position of event in data layer - does it matter?

javascript,google-tag-manager,google-datalayer
I have piece of GTM code in which event is sometimes placed at the top of the object and sometimes at the bottom. Now the question is, is there any difference (like one sending data from previous event) and which is the right way to handle it? dataLayer.push({ 'event': 'addToCart',...

How does Google analytics measures page load time for virtual pages sent?

google-tag-manager
I have bad performance results in Site Speed Page Timings in Google analytics, for virtualPage, but I can't find way, how does this time is measured (e. g. I do not see parameter in dataLayer object, responsible for timing, or parameter in collect request sent). Moreover I do not have...

Google Tag Manager for staging environment and production

wordpress,content-management-system,google-tag-manager,staging
Just a simple question here as I'm new to GTM. We have the staging environment at xxx.company.com and the production environment at xxx.com Both sites use the same source code of course, so the same GTM account and same script. How can you add scrips via GTM only to the...

Implementing Google Tag Manager into Android

android,android-studio,google-tag-manager
I am trying to implement Google Tag Manager by following this tutorial: https://developers.google.com/tag-manager/android/v4/ When I run the application, I get in the console these errors : 05-22 12:27:44.490 V/GoogleTagManager﹕ Attempting to load a container from the resource ID 2131099650 (testconverteo.ismail.converteotag:raw/gtm_default_container) 05-22 12:27:44.520 E/GoogleTagManager﹕ Invalid macro: _gtm.loadEventEnabled 05-22 12:27:44.520 V/GoogleTagManager﹕ loadAfterDelay:...

Google Tag Manager - what about scripts in the footer?

javascript,performance,asynchronous,loading,google-tag-manager
On our site we have script tags for third-party services like Lotame, Peer39 and Google Analytics in the footer just before the closing body tag, to avoid blocking the page render. We make scripts defer or async wherever possible, but some of the services don't work with asynchronous loading and...