google-tag-manager

Why am I getting a JavaScript compiler error when trying to publish changes to my intercom tag in Google Tag Manager?

岁酱吖の 提交于 2019-12-13 00:53:32
问题 This is my tag: <script> window.intercomSettings = { app_id: "fanwstw2" }; </script> <script> (function() { var w = window; var ic = w.Intercom; if (typeof ic === "function") { ic('reattach_activator'); ic('update', intercomSettings); } else { var d = document; var i = function() { i.c(arguments) }; i.q = []; i.c = function(args) { i.q.push(args) }; w.Intercom = i; function l() { var s = d.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = 'https://widget.intercom.io

Google tag manager won't push event's to datalayer on Android

感情迁移 提交于 2019-12-12 10:58:55
问题 I'm trying to implement Tag Manager in my Android Application following this guide, but for some reason I can't push event's to the datalayer. @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); TagManager tagManager = TagManager.getInstance(getApplicationContext()); TagManager.getInstance(getApplicationContext()).setVerboseLoggingEnabled(true); PendingResult<ContainerHolder> pending = tagManager

Getting GTM code working on web application

放肆的年华 提交于 2019-12-12 10:53:28
问题 Our company uses a third party service for our career/job site, allowing users to submit applications for job postings. Initially, users land on an external facing platform which integrates nicely with GTM. Within the CMS, you can easily add GTM code to the header and body area. However, once a user clicks 'apply' on a job description, they're redirected to a web application, which is essentially a separate system. Unfortunately, this second system does not allow you to add code to the header

How to test data layer variables in Google Tag Manager?

淺唱寂寞╮ 提交于 2019-12-12 08:04:09
问题 In Google Tag Manager, I have some data layer variables set up. How can I test that the data is coming in through these variables as I expect? So, I want to verify that the data is getting collected in the dataLayer object (which can be done with Firebug, etc), but more importantly, I want to know that GTM is receiving the data, that the macros and rules are executing as expected, etc. So, on the website, I have some code like this: dataLayer = []; dataLayer.push({ 'city': 'city name', 'state

Send info to google tag manager from backend

孤者浪人 提交于 2019-12-12 05:19:33
问题 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 the same thing on the backend? Basically a request to GTM API that does the equivalent of dataLayer.push({ 'event': 'transaction', 'something': { 'superSecret': 42 } }); but on backend. (I've never used GTM API and I'm not sure if it permits to do this

Use PHP in Script to send data too Google Tag Manager

限于喜欢 提交于 2019-12-12 03:44:57
问题 So right now I am doing something like what is below. What I want to be able to do is pass data dynamically to GTM.. I know I am doing it wrong but I need some help in figuring out how i need to go about this. Again. ALL I want to do is send some data in PHP variables to Google Tag Manager so I can view in GA. Thank you! <script> dataLayer.push({ 'transactionId': '<?php echo $order['id']; ?>', 'transactionTotal': '<?php echo number_format($order['subtotal'],2) ?>', 'transactionProducts': [{

Custom reports are empty in Google Analytics receiving data from Google Tag Manager

陌路散爱 提交于 2019-12-12 03:08:22
问题 I want to create a custom report with custom dimensions and custom metrics, so I've created them as admin in GA and both have index 1. I've added them in the dataLayer in my code: var dataLayer = {'dimension1':'Custom Dimension 1','metric1':123456} And after setting in GTM, I've checked data is being sent right in live mode: But custom reports are empty, but activity on site is being registered. This is the entire code of my site. I have tried adding both Google Tag Manager and Google Adwords

Creating custom metric with GTM

依然范特西╮ 提交于 2019-12-12 03:00:06
问题 I am new to GTM V2. I would like to track PDF downloads using custom metric. I can built custom dimension for the same, but am not able to create custom metric. I want report similar to below: PDFname no. of download xyx 1 abc 5 xyz pdf downloaded 1 time abc 5 PDF name and no. of download are column heading , rest are it values I want to create metric using GTM v2. I don't want to write JavaScript for the same. I have done above report using event tracking, but want to do the same with custom

Is it OK (in google analytics) o have some pages with the GTM and others with analytics.js?

六月ゝ 毕业季﹏ 提交于 2019-12-12 02:46:21
问题 Per my answer here I have some pages using Google Tag Manager to report Google Analytics and some that report them directly using Analytics.js. It seems to be working OK but I wanted to see if there were any issues I should be aware of. 回答1: You would need to make sure that whatever you are tracking with on-page code on those pages that don't have GTM are not already being tracked through GTM. Generally speaking, it's not advisable to mix both GA and GTM on the same site (unless you are in

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

家住魔仙堡 提交于 2019-12-11 20:36:08
问题 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 needed steps in both TM and GA? 回答1: You need two things. 1) Tie together dataLayer with Google Analytics in TagManager . So you have to create new Tag for