google-analytics

How to set up Google Analytics Goal for ajax form submissions

不问归期 提交于 2019-12-02 20:18:52
I have a contact form that is submitted via ajax and upon a successful submission, a thank you/success message is displayed. Additionally, I've set up a goal (Goal Completion URL) in my Google Analytics account for visits to a thank you page. This page does not exist. Any thoughts/suggestions on how I can set up tracking successful form submissions via this method? You can use virtual pageviews. For each step of the process, add a call to _gaq.push(['_trackPageview', '/ajax-contactForm/PAGE-or-STEP-NAME.html']); This will register as a pageview and can be used as a step in the goal. See

Can’t select a different Google Analytics account when generating configuration file for Google Analytics

戏子无情 提交于 2019-12-02 20:15:51
I have two Google Analytics accounts A and B, each with their own properties which I am attempting to generate configuration files for (more specifically, google-services.json files) in order to use Google Analytics with my Android app. I'm using the Enable Google Services for your app wizard. When you reach the Choose and configure services step, it should allow you to choose both a Google Analytics account and an Analytics Property from their associated selection boxes every time you run this wizard. The problem is that the selection box for choosing a Google Analytics Account only appears

Google Analytics shows real time visitors but reflects 0 visitors historically

我与影子孤独终老i 提交于 2019-12-02 20:09:44
In my Google Analytics account, I can see data (like pageviews, visitors) in my real time stream, but all of the non-real time data (Standard Reporting) shows 0 pageviews, 0 visitors ever. Has anyone else had this problem or know of a possible issue/solution? Thanks in advance. Data in Standard Reporting can take up to 24 hours to display. According to Google, site statistics update every 24 hours, but the company doesn't specifically state how long it takes to update other information that may be associated with your Google Analytics account. For example, you may also be using Google's

Google Analytics SDK 3.0 _sqlite3 linker errors in iOS

一曲冷凌霜 提交于 2019-12-02 19:53:14
I'm integrating Google Analytics SDK 3.0 in my project. But I am getting linker errors when try to build my project. As mentioned in the documentation , I have linked following libraries in my project, libGoogleAnalyticsServices.a AdSupport.framework CoreData.framework SystemConfiguration.framework libz.dylib Even then, I get following errors on building the project, d: warning: directory not found for option '-L"/Users/....NameProject/Libraries/Google Analytics"' "_sqlite3_bind_blob", referenced from: -[TAGDataLayerPersistentStoreImpl writeEntriesToDatabase:expireTime:] in

Unnest and totals.timeOnSite (BigQuery and Google Analytics data)

我的梦境 提交于 2019-12-02 19:34:02
问题 I want to calculate the total timeOnSite for all visitors to a website (and divide it by 3600 because it's stored as seconds in the raw data), and then I want to break it down on content_group and a custom variable that is called content_level. Problem arises because content_group and content_level are both nested in arrays, and timeOnSite is a totals.-stored variable that gets inflated if when used in a query that include and unnesting. (content_group is a normal hits.-nested variable, while

Async Google Analytics [Javascript Golf]

我的梦境 提交于 2019-12-02 19:13:05
Unfortunately, this may not be a valid Code-Golf question as it is likely Javascript only; however, since this is likely to be the only useful-in-the-real-world code-golf contest I'm going to go ahead and post it. The Google Analytics Asyncronous Tracking snippet is used by many websites. The script goes a little something like this: <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXX-X']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document

Firing the Facebook Conversion Pixel

寵の児 提交于 2019-12-02 18:43:08
I'm still pretty new to Javascript, but I was wondering what would be the best way to fire the Facebook conversion pixel (below) without actually loading a "confirmation"/"Thank You" page? <script type="text/javascript"> var fb_param = {}; fb_param.pixel_id = 'XXXXXXXXXXX'; fb_param.value = '0.00'; fb_param.currency = 'USD'; (function(){ var fpw = document.createElement('script'); fpw.async = true; fpw.src = '//connect.facebook.net/en_US/fp.js'; var ref = document.getElementsByTagName('script')[0]; ref.parentNode.insertBefore(fpw, ref); })(); </script> <noscript><img height="1" width="1" alt="

React + Router + Google Tag Manager

旧巷老猫 提交于 2019-12-02 18:40:19
I've been spending a bit of time developing an MVP at quickcypher.com. I wanted to start putting in some analytics, and it worked great for just tracking total visits, but things went south when I tried to track different URLs on my site that uses React Router. My approach was this: Setup a GA tag that fires on some pages, using a trigger for a custom "pageview" event. When things did fire, I would set the field page to "/rap" for example. I was firing the event in the "componentDidMount" method of the top level component for each of my views. Using the debugger, I saw the event fire as

What is the best way to track facebook comment widget in google analytics?

房东的猫 提交于 2019-12-02 18:34:43
I would like to apply event tracking in google analytics to facebook comments made on our website via the facebook social plugin (iframe widget), but I can't seem to find a way to attach the event. I would prefer if the solution was jquery based, but honostly I'm open to most any suggestion. You can use the Facebook JS SDK Event Subscriptions , specifically comment.create event callback. FB.Event.subscribe('comment.create', function(response){ _gaq.push(["_trackEvent", "Facebook Comment", "Posted", response.commentID]); }); You can also track comment deletions with comment.remove FB.Event

Accurately reporting referrer from payments made with PayPal in Google Analytics

倖福魔咒の 提交于 2019-12-02 18:33:35
In our Google Analytics ecommerce PayPal is getting credit as the referrer. I've found many articles outlining use on the utmnooveride to ensure PayPal transactions pass the data so that the original referrer gets credit. We use PayPal to process our credit cards as well as allow people to pay with their PayPal account. When a visitor pays with credit card they never leave our site, so we are only seeing this inaccuracy when a user leaves our site to pay with their PayPal account. More accurately we are using PayPal express checkout and using NVP (name value pair) API. https://developer.paypal