google-tag-manager

Google Tag Manager Parse Error. Primary Expression

蹲街弑〆低调 提交于 2019-12-11 10:51:20
问题 I am trying to save this Custom Javascript Variable within Google Tag Manager and return this error each time: Error at line 2, character 4: Parse error. primary expression expected var prodID = function pID() { return document.querySelector(".no-display > input[name=product]").value; }(); Can someone help me? I believe I have a primary expression. 回答1: To fix the issue in Google tag manger, I simple re wrote the code to be : function() { return document.querySelector(".no-display > input

Google Tag Manager

倖福魔咒の 提交于 2019-12-11 08:04:46
问题 I inserted a Google Tag Manager code snippet below the body tag but my website will only display a blank white page. When I remove it, the page displays correctly. <!-- Google Tag Manager --> <noscript> <iframe src="//www.googletagmanager.com/ns.html?id=GTM-XXXXXX" height="0" width="0" style="display:none;visibility:hidden"> </iframe> </ noscript> <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], j=d

How to retrieve element id of parent node to use within a trigger definition

筅森魡賤 提交于 2019-12-11 06:39:18
问题 In Google Tag Manager it is possible to trigger triggers based on css selector matching. If a html element matches the css selector, a trigger gets triggered (more details available here: http://www.simoahava.com/analytics/matches-css-selector-operator-in-gtm-triggers/) Currently I use the following css selector matching to identify if a trigger should be triggered or not: div#admin-button-id, div#admin-button-id * So the first part before the comma indicates one possibility, it matches all

Google Tag Manager - firing events from rest api

痞子三分冷 提交于 2019-12-11 05:57:03
问题 Some of my events are getting fired from frontend for both google analytics and facebook pixel and they are getting captured properly through GTM. but now i have a functionality which is getting done from cron and is served from backend. I need to capture a event in both google analytics and facebook pixel when this is getting captured. We need to fire the https (rest based) calls for capturing this. Kindly help on this how this can be achieved. 回答1: GTM has no serverside API to trigger

Do we need to update container's json file in Android side everytime we change in Google Tag Manager tag

谁说我不能喝 提交于 2019-12-11 05:54:01
问题 I was learning Google Tag Manager. I have started with very basic tutorials, it is working nice. But one thing I dont get is the use of container json in android side. Suppose we have created the firebase analytics in android and added GTM and published the app. In GTM we have added some tags. Now later we want to send analytics to some other site or wish to add new tags, do we need to update container json file in android again and republish it. 回答1: The JSON container file you're talking

It seems I have problems with Google Tag & Google Analytics - what am I doing wrong?

一个人想着一个人 提交于 2019-12-11 05:18:32
问题 I have a landing page "non-open" to the public with google tag manager and analytics implemented ( https://themowe.com/ ). And I obiously want to track visitors and his actions etc with Google Analytics and Google Tag. I am pretty sure I have introduced the codes as Google advices, but when it comes to check the instalation with the Tag Assitant it gives me 4 errors. May be it is nothing because I see the same errors here in Stackoverflow, but I want to make sure the tracking is correct. Any

Google Tag Manager - Universal Analytics

浪尽此生 提交于 2019-12-11 04:27:56
问题 Currently, the implementation of Universal Analytics in GTM does not allow for ability to edit the HTML scripts - for ability to change code to capture Demographic and Interest level data. Has anyone figured out how to adjust the scripts (necessary to change the script) to be able to capture the Demographic and Interest level data from the Google Display Network? 回答1: Universal Analytics doesn't support Demographic and Interest level data yet. There is more information on this on the

Google Analytics Missing analytics.js script

亡梦爱人 提交于 2019-12-11 03:16:36
问题 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 with the other sites I worked with. However, this one is weird. I can't figure what's wrong. Anything I missed? 回答1: Not sure if this will fix the issue, but you are telling the browsers to parse

GoogleTagManager error: _avn has no backing implementation

那年仲夏 提交于 2019-12-11 02:33:23
问题 This simple push to the data layer of a screen view prints an error with verbose logging enabled. This and subsequent calls to the data layer all fail. They are neither logged nor executed. [[TAGManager instance].dataLayer push:@{@"event" : @"screen-loads", @"screen-name": [tracker get:kGAIScreenName], @"viewController" :NSStringFromClass([sender class]) }]; This is the error message being logged: GoogleTagManager error: _avn has no backing implementation. 回答1: The clue was in _avn . Our

Preview & Update version of GTM Container | iOS

不问归期 提交于 2019-12-11 01:32:45
问题 i've integrated google tag manager in my iOS app. I'm stuck at some points: How to preview the version before making it live.I followed this link & added the urls in plist file. How to do the following step mentioned on this link Stop your application and open the preview URL on an emulator or physical device to preview the draft container in your application. It's said that we don't have to submit a new binary & GTM version is updated in app automatically. How? I've not written any code to