google-tag-manager

GTM & contact form 7 - gtm.formSubmit not firing

余生颓废 提交于 2019-12-08 08:57:01
问题 On a single-page website with 3 forms (contact form 7 from wordpress), when one of these forms is submitted, I send a data layer event to Google Tag Manager: on_sent_ok: "dataLayer.push({'event':'formSubmit'});" In GTM i created a custom event trigger which fires when it gets the event "formSubmit". To sepearte the 3 forms from each other and use a sepearte tag for every form i filter the trigger with the id of the form: Now the event trigger cant trigger because gtm.formSubmit is not fireing

Quantities of items are not tracked in google analytics transactions

浪子不回头ぞ 提交于 2019-12-08 07:20:49
问题 I'm trying to send e-commerce transactions from my iOS app using google tag manager like described here Now I can see transactions in the conversions > e-commerce > overview panel in google analytics but all the items have a quantity of 0. I'm making a NSMutableDictionary for the items like so: for (CartItem *item in cart.items) { [transaction[@"transactionProducts"] addObject:@{@"name": item.productName, @"sku": item.reference, @"category": @"mobile", @"price": item.shopPrice, @"currency": @

Google Tag Manager Preview does not display when navigating to pages with TurboLinks

醉酒当歌 提交于 2019-12-08 05:17:19
问题 I don't think GTM is recording data correctly for my Rails app. When i use the preview feature, the GTM preview data in developer tools only shows on initial page loads, subsequent page loads (using turbolinks) do not show the preview data. How should I set up GTM with TurboLinks? I have set up my GTM in the header like this: <script> var dataLayer = []; (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

How to make Google Tag Manager Analytics tags use the DEFAULT tracker?

五迷三道 提交于 2019-12-07 23:51:33
问题 The analytics tags defined in GTM (not using a custom HTML tag for analytics) seem to have their own tracker. I have _gaq.push() based configuration (some custom variables) in my web page in the rendered html. And this configuration is applied to the default tracker . GTM on the other hand defines its own tracker with random name (its actually a number) and all configuration done in the GTM web GUI is applied on that custom named tracker. How do I make GTM use the default nameless tracker, so

Google Tag Manager & Youtube Conflict

房东的猫 提交于 2019-12-07 23:33:28
EDIT: the problem is no longer relevant. GTM do not affect Youtube API anymore. (In the jsFiddle demo, video informations (state, currentTime, duration) are always correct). Calling the Google Tag Manager seems to wreck the Youtube API. Here is a fiddle demo : Google Tag Manager & Youtube (jsfiddle) // where thoses methods do not work anymore player.getPlayerState(); player.getCurrentTime(); player.getDuration(); by commenting the line 16 Youtube API works again (correct state, correct currentTime / duration displayed). Since the video is still playing, it seems like the js api is disabled.

Google Tag Manager server side tracking .NET

我怕爱的太早我们不能终老 提交于 2019-12-07 05:23:47
问题 We need to push datalayer, trigger events and so on from .Net (C#) application from server side . Google Tag Manager has JavaScript, Android and iOS SDKs. Also it has REST API, but this API allows only to manage containers, tags and events, but doesn't allow to track them. So is it possible implement server side tracking for GTM? Seems it should be as there is SDKs for mobiles exist and it should be no big difference. If it is possible then please let us know how and maybe there is API exists

Google Tag Manager Preview does not display when navigating to pages with TurboLinks

雨燕双飞 提交于 2019-12-07 03:12:27
I don't think GTM is recording data correctly for my Rails app. When i use the preview feature, the GTM preview data in developer tools only shows on initial page loads, subsequent page loads (using turbolinks) do not show the preview data. How should I set up GTM with TurboLinks? I have set up my GTM in the header like this: <script> var dataLayer = []; (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

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

北城余情 提交于 2019-12-07 03:06:00
问题 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

Checkout ajax steps tracked with GTM ecommerce enhanced and dataLayer push

故事扮演 提交于 2019-12-06 16:09:07
问题 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

Setting a Dynamic Macro in Google Tag Manager

北城以北 提交于 2019-12-06 14:43:54
问题 I have two types Universal Analytics (UA) accounts: a rollup property ID that goes on all subdomains, and a subdomain-specific ID that only appears on that subdomain. There are a total of 7 subdomain properties. I was wondering, instead of setting up 2 tags (ecomm transaction tag and the regular UA tag) for each subdomain/property - a total of 16 - if I could set up just those two tags and have the UA-ID dynamically changed for the corresponding property. Example: set up the tag with the id