gtag.js

Google Analytics not tracking views in Android Ionic 3 Application with gtag.js

荒凉一梦 提交于 2021-02-11 14:45:01
问题 I'm using gtag.js to track analytics on my Ionic application. This works with iOS, but not with Android. In index.html, I've add the script : <script> window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'UA-XXXXXXXX-XX', { 'send_page_view': false, 'app_name': 'MyApp' }); </script> I've made a provider for analytics : import { HttpClient } from "@angular/common/http"; import { Injectable } from "@angular/core"; import

How to set “secure” attribute of the cookies used by Google Analytics Global Site Tag (gtag.js)?

不想你离开。 提交于 2020-12-06 05:43:06
问题 I'm using Google Analytics Global Site Tag (gtag.js) tracking code on my Github Pages. The following tracking code is copy-and-pasted as the first item into the <HEAD> of every webpage I want to track (I replaced my own tracking ID with GA_MEASUREMENT_ID ): <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=GA_MEASUREMENT_ID"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments)

Google Analytics not tracking views in IOS Ionic 3 Application with GTAG.js

巧了我就是萌 提交于 2020-07-09 14:52:11
问题 I'm setting up Google Analytics in my application, I already track all events and pages. When I look the Google Analytics, the android is working perfectly, otherwise the iOS is not tracking any view or event. I tried change the iOS version, but nothing change. <script src="https://www.googletagmanager.com/gtag/js?id=UA-XXX-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-XXX-1', { 'page

Firebase Google Analytics Console weird behavior. Events are logged but don't show up on User Snapshot

落爺英雄遲暮 提交于 2020-03-05 04:04:31
问题 I'm using Firebase Analytics and I'm still exploring the Google Analytics Console. I think there's something wrong with my data, or the way I'm logging it. I have a Single Page App built with React + Firebase. Since my app is all client side routes, for every page that it renders, I'm firing the following effect to log the screen_view event: useEffect(() => { firebase.analytics().logEvent("screen_view", { screen_name: window.location.pathname, page_title: "My Page Title" }); },[firebase]); So

How to send a page_view event from an SPA (single page app) web app using Firebase Analytics?

戏子无情 提交于 2020-03-05 02:53:47
问题 I have an SPA web app that I've built using React + Firebase. I am now using Firebase Analytics and I would like to log page_view events for pages that are client-side routes (since I have my app is a Single Page App). I didn't find anything about Single Page Apps in Firebase Analytics docs. https://firebase.google.com/docs/analytics/events But I did find something in the gtag.js docs. From: https://developers.google.com/analytics/devguides/collection/gtagjs/single-page-applications From:

How to send a page_view event from an SPA (single page app) web app using Firebase Analytics?

人走茶凉 提交于 2020-03-05 02:53:07
问题 I have an SPA web app that I've built using React + Firebase. I am now using Firebase Analytics and I would like to log page_view events for pages that are client-side routes (since I have my app is a Single Page App). I didn't find anything about Single Page Apps in Firebase Analytics docs. https://firebase.google.com/docs/analytics/events But I did find something in the gtag.js docs. From: https://developers.google.com/analytics/devguides/collection/gtagjs/single-page-applications From:

Google Tag Assistant asks feed ID

非 Y 不嫁゛ 提交于 2019-12-11 06:29:30
问题 I was asked to upgrade an existing site from using the old remarketing tracking code that looked like this: <script type="text/javascript"> var google_conversion_id = 12345; var google_custom_params = window.google_tag_params; // this is empty var google_remarketing_only = true; </script> <script type="text/javascript" src="https://www.googleadservices.com/pagead/conversion.js"> </script> <noscript> <div style="display:inline;"> <img height="1" width="1" style="border-style:none;" alt="" src=

gtag not sending custom dimensions for events

耗尽温柔 提交于 2019-12-04 12:54:34
问题 I'm having trouble using gtag to send to custom dimensions. I'm currently following their gtag documentation. Screenshot of the custom dimensions created for my google analytics property Right now I currently initialize my gtag in the head with the following code: %script{:async => "", :src => "https://www.googletagmanager.com/gtag/js?id=#{APP_CONFIG[:ga_tracking_code]}"} :javascript window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date());