google-analytics

Measurement protocol transactions from Google Analytics to Google AdWords

前提是你 提交于 2019-12-23 17:16:29
问题 I am correctly sending enhanced e-commerce transactions to Google Analytics via the measurement protocol. In Google Analytics, these transactions get attributed to the correct source / medium of the session in which these transactions actually happened. When I link Google Analytics to Google AdWords, and import these transactions from Google Analytics into Google AdWords, something goes wrong with the attribution. Google AdWords only records those transactions of which the source / medium in

Set API key with embed API google analytics

可紊 提交于 2019-12-23 17:12:42
问题 I was rending map with my google analytics data using embed api as: (function(w,d,s,g,js,fs){ g=w.gapi||(w.gapi={});g.analytics={q:[],ready:function(f){this.q.push(f);}}; js=d.createElement(s);fs=d.getElementsByTagName(s)[0]; js.src='https://apis.google.com/js/platform.js'; fs.parentNode.insertBefore(js,fs);js.onload=function(){g.load('analytics');}; }(window,document,'script')); gapi.analytics.auth.authorize({ serverAuth: { access_token: 'my access token' } )}; var commonConfig2 = { query: {

New Google Analytics event tracking wont work on mailto

徘徊边缘 提交于 2019-12-23 16:19:00
问题 I'm using the latest google analytics code: (function(i,s,o,g,r,a,m){ i['GoogleAnalyticsObject']=r; i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date(); a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1; a.src=g;m.parentNode.insertBefore(a,m) }) (window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'XXXXXXXXX', 'XXXXXXXX'); ga('send', 'pageview'); I've got event tracking to work on a download link using the following:

Real time visitors from Google Analytics. How to get it?

▼魔方 西西 提交于 2019-12-23 14:21:25
问题 Is there any way using gapi (preferable) to retrieve the real time visitors from Google Analytics? I tried to pass a date range like: begin: 2012-12-12 09:49:04 end: 2012-12-12 09:49:05 but it didn't work. I did a research and couldn't find a solution yet. Someone can help me? 回答1: Access to the real-time data is not yet available through the api. See the following: Access to Real Time data Scraping Real Time Visitors from Google Analytics The only way to get it currently is to look at it in

Real time visitors from Google Analytics. How to get it?

只愿长相守 提交于 2019-12-23 14:21:09
问题 Is there any way using gapi (preferable) to retrieve the real time visitors from Google Analytics? I tried to pass a date range like: begin: 2012-12-12 09:49:04 end: 2012-12-12 09:49:05 but it didn't work. I did a research and couldn't find a solution yet. Someone can help me? 回答1: Access to the real-time data is not yet available through the api. See the following: Access to Real Time data Scraping Real Time Visitors from Google Analytics The only way to get it currently is to look at it in

Correlating certain metrics with Sessions and Products in Google Analytics API v4

╄→尐↘猪︶ㄣ 提交于 2019-12-23 13:09:20
问题 I have a requirement in the GA api to get a few very specific types of metrics: Site Level Site Visits with a Cart Add: This is a count of how many sessions occurred for a time frame where a cart add occurred in the session. Site Visits with a Product View: This is a count of how many sessions occurred for a time frame where a product detail view occurred in the session. Product Level Product Visits: This is how many sessions occurred from the scope of a product. For example, sku 12345 had

Upgrading to Google Universal Analytics

邮差的信 提交于 2019-12-23 12:57:40
问题 I have been searching around to find out anything that needs to be taken into consideration when upgrading to Universal Analytics. I found this post: Google Analytics - Upgrading to Async Code He explains that if you are not doing anything advanced you should be ok. We have lots of event tracking in place that we would like to keep the same. We also have some Custom Variables I could do without and/or deal with in Custom Dimensions. Other than that we have a fairly basic setup. We do have a

Google Analytics double listing with and without forward slash

回眸只為那壹抹淺笑 提交于 2019-12-23 12:27:44
问题 We are getting double listings on most of our urls in Google Analytics, such as the following: /Home/Specials /Home/Specials/ The website is MS MVC3-based. The first usually shows a short loading period with an almost zero exit rate. Most of the real user data is on the second (the ones with the slash suffix). What is the resolution for hiding the first? 回答1: The issue is caused by the duplicate tracking done by Analytics itself and the jQuery address script (the latter adds the trailing

Setting user Gender & Age in Google Analytics iOS SDK v3

谁说胖子不能爱 提交于 2019-12-23 09:58:38
问题 Using the latest Google Analytics SDK (v3.0.6), and I can't find anywhere in documentation, searching through the header files or web search how to set the Age and Gender of the current user for GA tracking. I'm using Custom Dimensions successfully for other things, and could use two of those for Age and Gender, but it doesn't seem like what they're intended for when there's built-in "Dimensions" for Age and Gender already. I imagine that it would be something like this: [tracker set:

target=_blank doesn't work with GA outbound link tracking

允我心安 提交于 2019-12-23 09:56:58
问题 I want to track clicks on outbound links and implemented the following code: GA code var trackOutboundLink = function(url) { ga('send', 'event', 'outbound', 'click', url, {'hitCallback': function () { document.location = url; } }); } Links <a class="postLinks" href="<?php if (get_field('source_link')) echo get_field('source_link'); ?>" onclick="trackOutboundLink('<?php if (get_field("source_link")) echo get_field("source_link"); ?>'); return false;"><?php the_title(); ?></a> target=_blank I