google-analytics

How to extract engagement flow data using google analytics reporting api

人走茶凉 提交于 2019-12-11 19:18:33
问题 I am building an Android app that uses Google Analytics to record various Events and Screens throughout the app. The Engagement Flow dashboard is quite striking but I'd like to export the data and play with it on my own. How can I write my app so that I can extract the data that is used in the Engagement Flow dashboard using the Google Core Reporting API? Currently, I am using sendEvent and sendView to track Events and Screens respectively in the Engagement Flow. I'm guessing my approach is

Use gtag.js to track virtual pageviews

我是研究僧i 提交于 2019-12-11 19:14:12
问题 I have a multipage registration form and I want to track user's path through the form using Google Tag Manager. My page uses a recommended code snippet in the header to track page view: window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-XXXXXXXX'); According to documentation I generate a virtual page view when a user clicks a certain button in the form: gtag('js', new Date()); gtag('config', 'UA-XXXXX', { 'page

Send event only once per session?

陌路散爱 提交于 2019-12-11 19:05:59
问题 Is it possible to send a google analytics event only once per session? I don't want to send my specific event with every pageview. What I want to achieve: I'm running a website without any ads at the moment. And I want to test how many visitors of my website are using adblockers. I would add an element like <div class="ad"></div> which would be filtered out by probably every adblocker (at least most of them). Then I just would test with jquery if the element exists $(function(){ function test

Javascript: How to block google analytics?

天涯浪子 提交于 2019-12-11 19:03:44
问题 I'm building an website with Open Web Analytics. My host is an free host and automatically insert Google Analytics. I want remove Google Analytics because it forces to track users. I inserted jQuery based node remove code before ga but it still gets loaded. Like this: <!-- Remove Google Anaylitics and include OWA. --> <script src="js/RemoveGA.js"></script> <script src="js/OWA.js"></script> //RemoveGA.js $(document).ready(function () { $("script").each(function () { if (this.innerHTML.length >

Phonegap and Google Analytics are not working

冷暖自知 提交于 2019-12-11 18:58:36
问题 I'm building an app with phonegap and wanted to use Google Analytics. I installed this plugin with the CLI and implemented the following lines of code into my deviceReady event: analytics.startTrackerWithId('UA-*******-5'); analytics.trackView('Frontsite'); (For sure I swapped the **** with my real tracking code). Problem is I don't get an error , so I think the plugin works (or not), but the App is not tracked at all. When I go to the Google Analytics page where I created the mobile tracking

Track a Google Analytics event that occurs when a user isn't on the site

不羁岁月 提交于 2019-12-11 18:53:36
问题 Our site enables users to send money to us via a bank transfer. They 'initiate' the transfer and get a reference code. Then they log in to their bank account and send the money using the reference code. We track when a user promises to send the money but I'm not sure how to track when that money arrives. They won't be logged into the site when it happens which makes it complicated. Is there a way to do this? Thanks in advance! 回答1: It is possible to track events on behalf of a recent user,

Contact form 7 - Google Analytics Tracking

我只是一个虾纸丫 提交于 2019-12-11 17:54:34
问题 I`m trying to track submitted contact forms in google analytics with contact form 7. I tried the following: I placed the code on_sent_ok: "ga('send', 'event', 'Contact Form', 'submit');" in the additional settings. Does not work. This method is supported until the end of 2017. The new method is "DOM events", so... ...I tried it with DOM events. I placed the code <script> document.addEventListener( 'wpcf7mailsent', function( event ) { ga('send', 'event', 'Contact Form', 'submit'); }, false );

Approaches to overriding Google Analytics _trackPageView using ASP.NET

寵の児 提交于 2019-12-11 16:39:17
问题 I'm working on a site that uses Google Analytics. On most of the pages the default call to _trackPageView() that records the page view in GA using the current URL works just fine. I can add that code to a master page so it is included on each page. However, under certain circumstances I want to override the name of the page that gets recorded in GA. For instance I may have a single page that has multiple steps and want to record them as separate pages in GA. The _trackPageView method works

c# measurement protocol transaction

女生的网名这么多〃 提交于 2019-12-11 16:35:46
问题 I need to send ECommerce transactions to Google Analytics. I've tried just about everything I can think of to get it to work, but I always get a GIF89a response. Can anyone help me troubleshoot this? using (var wb = new WebClient()) { var data = new NameValueCollection(); data["v"] = "1"; data["tid"] = "UA-XXXXXXXX-1"; data["cid"] = Guid.NewGuid().ToString(); data["t"] = "transaction"; data["ti"] = "12345"; data["tr"] = "125.00"; data["ts"] = "25.00"; data["tt"] = "10.00"; data["cu"] = "ZAR";

Firing Tags when a Virtual Page View occured

只愿长相守 提交于 2019-12-11 16:32:12
问题 We've created a multistep form and added virtual page views for the steps and confirmation page. Is there a way to use these virtual page views in Tag Manager to fire some tags? In Google Tag Assistant I do see the pageviews being tracked in Analytics, but the tags aren't fired when I used these pageviews to be the trigger. The virtual page views are hardcoded, not done through Tag Manager. 回答1: Virtual page views is a virtual concept :) Depending on how it is implemented: If URL doesn't