google-analytics

Getting value of ID from class

筅森魡賤 提交于 2019-12-11 16:27:47
问题 How is it possible to get the value of ID from class using google tag manager? <html> <body> <textarea id='5' class='cp _check'>sometexthere</textarea> </body> <html> Using JQuery it is possible with this: $(".cp._check").attr("id") 回答1: Go to variables, select new, type DOM. Select CSS selector. You can then use selectors similarly to jQuery: Even though there might be multiple matches for your selector GTM retrieves the value for the first occurence only. 回答2: I guess you should use

Does this RegExp from Google Analytics actually do anything?

随声附和 提交于 2019-12-11 15:42:34
问题 Here's the section of code: var [...snip...] ye=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i, This regular expression is used twice, both times with ye.test(a) . And yet, I've found no strings that it doesn't match. I find that hard to believe, but does this RegExp really match every string imaginable? Demonstration: var ye = /^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i; console.log(ye.test("askjvhlkauehavkn")) console.log(ye.test("/")) console.log(ye.test("https:")) console.log

Google Tag Manager Not Sending Ecommerce Data to Analytics (Standard Ecommerce)

牧云@^-^@ 提交于 2019-12-11 15:39:33
问题 I have been racking my brain on this one and not sure why our Google Tag Manager code isn't sending data to our Google Analytics account. I have researched multiple questions on here that have similar issues, but haven't worked for me. In addition this is a great guide I've followed https://www.analyticsmania.com/post/ecommerce-tracking-with-google-tag-manager/ - but still no luck in sending the ecommerce data to GA. Below is the data layer that we're using on our /ticketing/confirm/ page

How to extract firebase user parameter and send to google analytics via google tag manager?

可紊 提交于 2019-12-11 15:35:11
问题 I'm trying to figure out how to extract the very common and auto generated user property, "first_open_time" from firebase and send to GA. This is in the context of a mobile app (iOS/Android) - I have already implemented tag manager sdk, firebase sdk quite some time ago and can successfully send any events that we generate from the ios and android clients to firebase, and use the tagmanager to send them to ga. However, anytime I try to do the same with any of the free firebase events, such as

How to implement Firebase Analytics implementation for AppleTV (tvOS)?

佐手、 提交于 2019-12-11 15:08:27
问题 Currently, we have implemented Google Analytics for AppleTV (tvOS) via Measurement Protocol i.e. using batch end point Google Analytics - Measurement Protocol. Now, Google Analytics is sunsetting. Alternative as suggested by Google is Google Analytics for Firebase. But, that implementation is for Mobile Platform. Does anybody know any workaround that I can use on Firebase Platform in order to report analytics from tvOS using some sort of Firebase API? 来源: https://stackoverflow.com/questions

React-GA + Redux v7 incompatibility issue with jest

≡放荡痞女 提交于 2019-12-11 15:08:14
问题 I am using react-ga v2.5.7, for which I updated react-redux v7.0.2, and I am using jest v24.7.1 I set react-ga in testMode , and it is mocked in my jest.setup.js . But everytime I run my tests I am always encountering the same issue, most of the tests are failing for some weird reason: Test suite failed to run Cannot find module '@icons/material/CheckIcon' from 'SwatchesColor.js' However, Jest was able to find: './SwatchesColor.js' You might want to include a file extension in your import, or

Hello Analytics API: Java quickstart errors

岁酱吖の 提交于 2019-12-11 14:59:51
问题 I'm trying to access data from the Google analytics reporting API using Java. I was following the "Hello Analytics API: Java quickstart for installed applications" tutorial, and i did everything it tells you, and i get following issues: com.google.api.client.util.store.FileDataStoreFactory setPermissionsToOwnerOnly WARNING: unable to change permissions for everybody: C:\Users\<user>\.store\hello_analytics com.google.api.client.util.store.FileDataStoreFactory setPermissionsToOwnerOnly WARNING:

Passing UTM Tags to Google Analytics with Google Tag Manager in Javascript not working

丶灬走出姿态 提交于 2019-12-11 14:40:06
问题 I'm trying to send utms (medium, source) to Google Analytics directly in Javascript code (not via the URL), for every visit to my page. This is how I'm trying to do it: <script async src="https://www.googletagmanager.com/gtag/js?id=UA-52626777-6"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('set', { 'campaignName':'MyCampaignName', 'campaignMedium':'MyMedium', 'campaignSource':'MySource' }); gtag('config

How to add a property to the users coming to my website

喜你入骨 提交于 2019-12-11 14:32:13
问题 I want to add a field value to all the users present in the google analytics. So as soon as the user do some action on the website I want to make an api request so that I can update the user value. I want to add a new value to the current user value in GA. I already have stored the client ID given by GA in my backend. I tried looking for it but didn't get much. Somewhere I got that we can use firebase.google.com for adding the property to the user. But didn't get the api for that and how does

Listening google events

风流意气都作罢 提交于 2019-12-11 13:49:13
问题 Could you tell me, how can I listening google analytics (google tag manager) event with native javascript? For example: The client sent this event ga('send', 'event', [eventCategory], [eventAction], [eventLabel], [eventValue]); I need to subscribe to this event. 回答1: You can use tasks, which allow you to hook into the Google Analytics tracker's execution routine, for instance, hook into the sendHitTask to retrieve the payload of every hit sent: ga('create', 'UA-XXXXX-Y', 'auto'); ga(function