universal-analytics

gabba gem not tracking different domains

为君一笑 提交于 2019-12-13 01:54:06
问题 I have a UA account which is connected to the following domain: http://www.mytestdomain.com with the following account id UA-123456-1 When i am using the Gem to track the domain it works well: Gabba::Gabba.new('UA-123456-1', 'http://www.mytestdomain.com', user_agent).page_view('index', 'index.html') But other domains can't be track: Gabba::Gabba.new('UA-123456-1', 'http://www.notmydomain.com', user_agent).page_view('index', 'index.html') What should i do to track others domains as well ?

Google Analytics error in ga(“send”, “pageview”) on certain pages

主宰稳场 提交于 2019-12-12 09:58:07
问题 After implementing Enhanced Ecommerce, I'm finding that a very small subset of pages are showing up in Google Analytics as not having the Analytics code. On inspection of the source, there is no difference between the code on those pages that are failing and those on the pages that are validating correctly. I installed the GA Debug Google Chrome extension and I can see that on a few pages there is an error coming back from the ga("send", "pageview") call. However, I can find no information in

Tracking in Universal Analytics - Contact form 7

为君一笑 提交于 2019-12-12 02:59:35
问题 I have contact form 7 on a site. With classic analytics I had this in additional settings.. on_sent_ok: "_gaq.push(['_trackPageview', '/goals/enquiry-sent']);" And it tracked fine as a destination goal. As soon as I updated to Universal analytics (including the demographics tracking), I then updated the code to: on_sent_ok: "ga('send', 'event', 'category', 'action', 'label');" and also tried on_sent_ok: "ga('send', 'pageview', '/your/url');" and I just can't get either of them to track. Any

Name Spaced Accounts Not working Under Universal Analytics

点点圈 提交于 2019-12-11 20:13:53
问题 I would like to migrate to universal analytics.js, however when I try to implement multiple accounts in the analytics.js snippet, the default account works great and shows up in Real Time, however the subsequent account never shows up on Real Time and traffic drops off to 0. Currently I'm using ga.js to track multiple accounts in the single snippet. Here is the format I am using for that: <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push( ['_setAccount', 'UA-XXXXXXXX-2X'], ['

Google Analytics Enhanced Ecommerce

吃可爱长大的小学妹 提交于 2019-12-11 05:42:01
问题 I am using Google Analytics Enhanced Ecommerce on my site and I encounter this specific problem. My Checkout 3rd Step is on the same page where I am measuring my transaction. Should I implement it like this? ga("ec:addProduct", {values_here}); ga("ec:setAction", "checkout", {step: 3}); ga("ec:setAction", "purchase", {values_here}); ga("send", "pageview") Based on the Google Analytics Debugger. I can only set 1 action per send pageview. How am I going to send my checkout step 3? is this

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

jQuery Mobile Google Universal Analytics

a 夏天 提交于 2019-12-10 10:36:14
问题 I've been happily using this best practice http://roughlybrilliant.com/jquery_mobile_best_practices#7 for integrating ga.js with jQuery Mobile. I'm planning to upgrade to analytics.js using the new Universal Analytics tracking code. I wonder whether something like this below will work following the best practice using the ga.js tracking code. <script> $(document).ready(function (e) { (function (i, s, o, g, r, a, m) { i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { (i[r].q = i[r]

Universal Analytics - 3rd Party Payment Gateway

青春壹個敷衍的年華 提交于 2019-12-10 09:50:58
问题 Our website is currently tracking with Universal Analytics via Tag Manager. Our check-out process includes getting redirected to a 3rd party payment gateway before going to the Thank You Page. So, it would look like this: site.com/checkout --> site.com/payment --> security.com --> site.com/thankyou Security.com is a 3rd party site and I am unable to add the tracking code there. I'd like to be able to see who are able to get past the security.com stage and make it to the site.com/thankyou page

Google Analytics - Match UserID with my site's account ID

六月ゝ 毕业季﹏ 提交于 2019-12-09 01:42:56
问题 Each of my registered clients have an unique account ID (eg: agent n°: 00173393). I want to retrieve this information through google analytics ... It's not a personal information and for statistics use only. I implemented userID, but how to match userID and the accounts IDs ? Is it possible to create a variable for the account ID number ? 回答1: Why don't you use the account ID as User ID as well? That way you would have a 1-to-1 match: ga('create', 'UA-XXXXX-Y', 'auto', { userId: accountId });

Google Analytics error in ga(“send”, “pageview”) on certain pages

浪子不回头ぞ 提交于 2019-12-06 13:18:39
After implementing Enhanced Ecommerce, I'm finding that a very small subset of pages are showing up in Google Analytics as not having the Analytics code. On inspection of the source, there is no difference between the code on those pages that are failing and those on the pages that are validating correctly. I installed the GA Debug Google Chrome extension and I can see that on a few pages there is an error coming back from the ga("send", "pageview") call. However, I can find no information in any documentation or anywhere online that describes possible errors from the ga("send", "pageview")