google-tag-manager

How do I create a rule that will fire only on my site's home page?

杀马特。学长 韩版系。学妹 提交于 2019-12-05 08:08:05
I using Google Tag Manager and I am trying to setup a rule that will fire ONLY on my sites homepage. The issue is that I am not certain how to handle all of the URL permutations of the homepage. How can I create a rule that will handle: "http://" "https://" "http://www." "https://www." Also, we use Sitecore and support multiple languages, so the homepage url can also display as: "http://www.mysite.com/en" I am not sure how to handle the culture identifier that is inserted into the URL path after a visitor has used the navigation on the site. Is it possible to use the OOTB Google Tag Manager

GTM - pushing events/data to gtm dataLayer not sending anything to https://www.google-analytics.com/r/collect?v

邮差的信 提交于 2019-12-05 07:50:24
I have added this gtm code in my chrome extension page(injected by the content script in and iframe) // <!-- Google Tag Manager --> (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','owDataLayer','GTM-XXXXXXX'); // <!-- End Google Tag Manager --> I confimred the gtm.js file loaded successfully. Request URL:https://www.googletagmanager

jQuery being loaded into gtm.js from Google Tag Manager

半世苍凉 提交于 2019-12-05 02:11:30
问题 I've been having an issue where jQuery v1.9.1 is being included into the top of the gtm.js file. It causes a few issues and can blow away jQuery plugins that are already loaded on jQuery.fn. Regression testing is also a concern. I checked and I don't appear to have any custom tags in the Google Tag Manager that loads jQuery. Ultimately I want to have control over the host domain and version of jQuery loaded. Is there a configuration setting in the GTM interface or some other way that I can

Configure Firebase Analaytics + Google Tag Manager (GTM) per build variant

被刻印的时光 ゝ 提交于 2019-12-05 02:01:10
Before Firebase Analytics became available we use a multi flavour, multi build type Android Gradle project setup, and supply a different GTM container ID for each build variant, as follows: TagManager.getInstance(context) .loadContainerPreferNonDefault(BuildConfig.GTM_CONTAINER_ID, -1); TagManager.getInstance(context).getDataLayer().pushEvent(eventName, eventData); where Gradle would inject different GTM_CONTAINER_ID per build variant. How do we achieve the same with Firebase Analytics + GTM? According to docs , we need to download: a GTM container file from GTM dashboard [1] a google-services

Firebase Analytics & GTM Tracking

ぃ、小莉子 提交于 2019-12-05 01:54:47
问题 This question is about why one would need GTM for Google Analytics Firebase. There is a similar post on this question, but it has to do with the HOW. I am looking for the reason WHY one would want to implement GTM alongside the already powerful Google Analytics for Firebase. In May 2017, "Firebase Analytics" was renamed to "Google Analytics for Firebase". This should not be confused with "Google Analytics" for mobile apps (legacy). Historically, GTM was used for websites and web-apps, where

Google Tag Manager & Optimize Server-Side experiment sending variation

两盒软妹~` 提交于 2019-12-05 01:39:33
问题 I'm using the Google Tag Manager container for managing scripts. I'm trying to perform a server-side Optimize/Analytics experiment. I require server-side for performance reasons. I've performed client-side experiments just fine with the GTM/Optimize containers. Here's my GTM code: window.dataLayer = window.dataLayer || []; .... <!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0]

Google analytics: dataLayer.push not working?

核能气质少年 提交于 2019-12-04 23:45:55
问题 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 --> <script> (function(w, d, s,

Checkout ajax steps tracked with GTM ecommerce enhanced and dataLayer push

自闭症网瘾萝莉.ら 提交于 2019-12-04 21:50:31
I'm wondering on how to tracks checkout and checkout steps events on google analytics. I've a checkout in a single page and each steps is called via ajax requests, so I've already add the "dataLayer.push" functionality for each steps, bringing of course the step number in it. Now I cannot catch anything on the funnel shown up on google analytics. The funnel I'm talking about is the "Checkout Behavior Analysis" inside the Conversion -> Ecommerce -> Shopping Analysis. The ecommerce code I'm using is the GTM one by pushing on dataLayer the checkout event when I'm loading the checkout page, and

Two different google tag manager accounts in same domain

风流意气都作罢 提交于 2019-12-04 17:36:36
问题 I have two google tag manager accounts one mine and another of third party website and I need to put these 2 in this third party website. I tried put two gtm scripts after body tag opening but I saw duplicated content of both accounts. How can I do this? It's possible? 回答1: This is because both GTM tags are using the default "dataLayer". See below: <!-- Google Tag Manager --> <noscript><iframe... (window,document,'script','dataLayer','GTM-XXXX');</script> <!-- End Google Tag Manager --> Give

custom event trigger in google tag manager

谁说胖子不能爱 提交于 2019-12-04 14:54:54
Every time i create a custom trigger event it doesn't get fire. Can anybody please what may be the reason. I have created 'gacustomevent'custom triggerand have name it 'gaevent' but the event is not getting fired. Iwant to use the event in the dataLayer to capture the value. Any advice on how to get issue resolve It's a bit unclear from your question how you set this up. It should look like this: dataLayer.push({ 'event':'myEvent' }) (this assumes that the dataLayer is already initialized). In GTM you go to the "variables" section. In the boxes with the predefined variables you hit the