google-tag-manager

dataLayer.push not working after GTM script

三世轮回 提交于 2019-12-04 12:58:30
I want to implement the Enhanced Ecommerce with Google Tag Manager and I want to push some data for the tag Universal Analytics. I always created the dataLayer before the GTM script, but now I need to send other data with dataLayer.push And it doesn't work, datalaLayer.push only works if I do it just before the GTM script starts. Example. This works: <script> <head> dataLayer = [{ 'google_tag_params': { 'ecomm_pagetype': 'category', 'ecomm_category': '{{ $resource->seo->h1 }}', } }]; dataLayer.push({ 'ecommerce': { 'currencyCode': 'EUR', 'impressions': [ { 'id': '12312', 'price': 24, 'category

Issues in Google Tag Manager plugin in Cordova

和自甴很熟 提交于 2019-12-04 12:31:20
Am trying to use GTM plugin for Cordova - https://github.com/kraihn/cordova-plugin-tag-manager . Am facing issues on the iOS version of my cordova app. I get warnings that the binary resource file and plist file are not found. GoogleTagManager warning: Cannot find binary resource file 'GTM-XXXXXX'. GoogleTagManager warning: Cannot find resource file 'GTM-XXXXXX.plist' GoogleTagManager verbose: loading default container from GTM-XXXXXX.json I downloaded the json file from GTM account - Admin, export for the live version. I don't see an option for download from Actions tab(as listed in some of

Using Google Analytics with FireBase + Google Tag Manager Android SDK

感情迁移 提交于 2019-12-04 12:24:49
问题 How to fire Google Analytics tag using Firebase + Google Tag Manager SDK in Android? I added the Firebase container to my assets/container folder and created a Google Analytics tag using my GA Tracking id. I have followed exactly the steps as given in this tutorial: https://developers.google.com/tag-manager/ios/v5/#introduction I trigger the appLaunch event with the below code: mFirebaseAnalytics.logEvent("appLaunch", null); How can I see this in my Google Analytics report? Please correct me

trackingId and clientId with Google tag manager

时光毁灭记忆、已成空白 提交于 2019-12-04 12:15:02
Using analytics.js, i can access to trackingId or clientId with this functions: ga.getAll()[0].get('trackingId') ga.getAll()[0].get('clientId') With Google tag manager, there is no ga object. How i can get that parameters? The tracking ID is input into GTM either through a constant string macro (for reusability), or just as a string. The client ID can be fetched through custom Javascript (from the blog I am about to mention): function() { try { var tracker = ga.getAll()[0]; return tracker.get('clientId'); } catch(e) { console.log("Error fetching clientId"); return "n/a"; } } See this blog:

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

送分小仙女□ 提交于 2019-12-04 11:54:08
问题 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 standard dataLayer.push events (and also e-commerce events if this is relevant). This setup generally works fine. The problem: The problem is users coming from adwords, with a gclid tag. The first pageview for

Can anyone help implementing Nuxt.js Google Tag Manager?

半世苍凉 提交于 2019-12-04 09:25:34
问题 Hey i've built a Nuxt app and am having trouble with the package @nuxtjs/google-tag-manager package. Found below. The documentation is pretty light and I haven't found many example implementations out there. In my nuxt.config.js I have the following set. ['@nuxtjs/google-tag-manager', { id: process.env.GTM_ID, layer: 'dataLayer', pageTracking: true }], ..but unfortunately am not getting any Page Views in Google Tag Manager Does anyone have any ideas or experience in how to best implement GTM

How to disable Google Tag Manager console logging

旧时模样 提交于 2019-12-04 06:35:11
After I added Google Tag Manager to the project I see lots its log entries in the console. Is there a way to disable it? Console log is full of noise: GoogleTagManager info: Processing logged event: _vs with parameters: { "_o" = auto; "_pc" = UIViewController; "_pi" = "-3988739357756819671"; "_sc" = "Bubbie.MamboBamboViewController"; "_si" = "-3988739357756819670"; } 2017-07-27 12:01:09.744 BubbieHuff[77205:6894827] GoogleTagManager info: Processing logged event: show_view with parameters: { "_sc" = "Bubbie.MamboBamboViewController"; "_si" = "-3988739357756819670"; name = Mambo; } I just had

Differences between “Click Classes” and “Click Element” in Google Tag Manager

拟墨画扇 提交于 2019-12-04 04:26:51
I don't really understand the differences between "Click classes" and "Click Element" in Google Tag Manager. I don't understand the expected use of these event and I don't understand their respective behavior regarding "contains" and "CSS selector". Let's say I have class="buttons primary small" . What's working : Click Element -> Matches CSS selector -> .buttons.small Click Classes -> contains -> small What's not working Click Element -> contains -> .buttons.small Click Classes -> Matches CSS selector -> small if Click Classes is "an array of the classes on an object", What's really happen

PageSpeed review and optimization

痴心易碎 提交于 2019-12-04 01:26:13
I analysed my page speed using google pagespeed insight and got below suggestion. Can any one help me how I can implement it. Leverage browser caching Setting an expiry date or a maximum age in the HTTP headers for static resources instructs the browser to load previously downloaded resources from local disk rather than over the network. Leverage browser caching for the following cacheable resources: http://www.googletagmanager.com/gtm.js?id=GTM-TVSKP6 (16.2 minutes) You can't (you do not control the Google servers, so you cannot set http headers on their behalf). Moreover, you do not want to.

GTM randomly skips initial pageview in single page app

廉价感情. 提交于 2019-12-03 23:31:56
问题 I have Pageview tag in Google Tag Manager that tracks SPA pageviews, identical to the one described in this guide. Basically it is Universal Analytics with linked Google Analytics ID that is triggered on History Change (at some point All Pages trigger was also added with no success). In my current app GTM skips Pageview tag on initial pageviews on all routes that don't have async resolvers. Usually the routes fire the tag sometimes (1 of 5 times), this may vary a bit depending on conditions