event-tracking

Google Analytics Event Tracking not firing for multiple accounts on Chrome ONLY

送分小仙女□ 提交于 2019-12-10 10:19:31
问题 I have an issue with Google Analytics Event Tracking that is only apparent on Chrome and no other browser. I have the following Google Analytics Tracking Code firing on my site for a click on an anchor link: _gaq.push(['_trackEvent', 'Basket Remove', product_name, product_code, product_price, false]); _gaq.push(['rollup._trackEvent', 'Basket Remove', product_name, product_code, product_price, false]); Using a Web Proxy tool I can see that the first one is firing, but the second one is not.

Google Analytics - Track Event on Page Exit (Except form submission)

∥☆過路亽.° 提交于 2019-12-08 09:27:08
问题 I'm using the following code to track when a user exits a page on my site: //track on page exit function storeData(){ _gaq.push(['_trackEvent', 'Application Form', 'exit-form_application_', '', 4, false]); } $(window).on('unload',storeData); However, I don't want to trigger the event when the form is submitted, therefore how could I prevent this? 回答1: This worked for me: $(window).bind('beforeunload', function() { _gaq.push(['_trackEvent', 'Application Form', 'exit-form_application_', '', 4,

Google Analytics - iOS Install Tracking

删除回忆录丶 提交于 2019-12-07 10:22:17
问题 I'm currently working a project that is using Google Analytics to track various things throughout the application. One of the last things I want to do is track application installs based on some kind of promotion for the application. After some searching I came across an articles about iOS install tracking for Google Analytics, which seemed to be exactly what I wanted. Afterwards, I followed their guide to get things setup: https://support.google.com/analytics/answer/3389142 However, after

Google Analytics Event Tracking code

家住魔仙堡 提交于 2019-12-06 02:58:43
I'm using Google Analytics, at the top level I can see who has come onto my site, however I cannot see track my event tracking for my social network buttons, I think I may have developed these wrong. These events are not been tracked on my analytics account that I can see anyway if someone knows where they are kept that would be great. But the code I've used is below as I'm not sure if I have implemented this correctly: <a href="https://twitter.com/share?text=2009:%20Michael%20Jackson%20Dies&hashtags=DIGITL,MichaelJackson" target="_blank" onClick="_gaq.push(['_trackEvent', 'Social Media',

Why do websites like Hotjar and Google Analytics use complex tracking code instead of just a <script> tag?

别等时光非礼了梦想. 提交于 2019-12-05 23:26:04
Website that use JS tracking usually use this kind of code : <script> (function(h,o,t,j,a,r){ h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; h._hjSettings={hjid:9999,hjsv:5}; a=o.getElementsByTagName('head')[0]; r=o.createElement('script');r.async=1; r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; a.appendChild(r); })(window,document,'//static.hotjar.com/c/hotjar-','.js?sv='); </script> In the end, those scripts just add a <script> tag to the <head> of the page, so surely there must be a reason why they're doing it this way. Is it for ad-blocking bypass reasons ? Wouldn't the

Google Analytics Event Tracking not firing for multiple accounts on Chrome ONLY

丶灬走出姿态 提交于 2019-12-05 21:52:39
I have an issue with Google Analytics Event Tracking that is only apparent on Chrome and no other browser. I have the following Google Analytics Tracking Code firing on my site for a click on an anchor link: _gaq.push(['_trackEvent', 'Basket Remove', product_name, product_code, product_price, false]); _gaq.push(['rollup._trackEvent', 'Basket Remove', product_name, product_code, product_price, false]); Using a Web Proxy tool I can see that the first one is firing, but the second one is not. This appears to be the case for a number of _trackEvent clicks where the click is a link to another page,

Google Analytics - iOS Install Tracking

拥有回忆 提交于 2019-12-05 13:57:02
I'm currently working a project that is using Google Analytics to track various things throughout the application. One of the last things I want to do is track application installs based on some kind of promotion for the application. After some searching I came across an articles about iOS install tracking for Google Analytics, which seemed to be exactly what I wanted. Afterwards, I followed their guide to get things setup: https://support.google.com/analytics/answer/3389142 However, after doing the 3 steps they described I'm confused as to how those tie into the custom campaign URLs that we

Google Analytics event flow

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 14:58:33
I am trying to use Google Analytics to examine how users progress through my site. The problem is that my site operates entirely upon AJAX. I have set up "events" using: _gaq.push(['_trackEvent', category, action]) These are being recorded by Analytics, but I am unable to view how users progress through each event. In other words, currently I can see that 10 users added a post and that 7 users added a comment to a post. What I want to see is how many of the users who added a post then also added a comment. Does Analytics allow you to view/track this kind of user flow? Instead of or in addition

GA Event Tracking from localhost

梦想的初衷 提交于 2019-12-01 13:33:41
I've been trying to track file downloads from localhost, but can't manage to get it working. Visits are being recorded, but the custom tracking pushes do not. I am able to see __utm.gif request: http://www.google-analytics.com/__utm.gif ?utmwv=5.4.3d &utms=10 &utmn=1689575639 &utmhn=localhost &utmcs=UTF-8 &utmsr=1920x1080 &utmvp=1358x565 &utmsc=24-bit &utmul=en-us &utmje=1 &utmfl=11.7%20r700 &utmdt=Something-something-something &utmhid=1913734755 &utmr=0 &utmp=%2Fsomething &utmht=1371735965300 &utmac=UA-XXXXXXX-X &utmcc=__utma%3D1.515487588.1371735687.1371735687.1371735687.1%3B%2B__utmz%3D1

Google Analytics - Single Page Site - Click Tracking

冷暖自知 提交于 2019-12-01 10:40:40
The site in question is http://getstefan.com Its a single page portfolio site and I have tried using jQuery to add Google Analytics click tracking to every anchor tag on the site hoping to track where people are clicking. There is a script that adds a unique ID to each anchor on the page, so I set a timeout to make sure and place the Google Analytics click tracking after the id has been assigned. Like so: jQuery(window).load(function(){ setTimeout(loadOnClick,8000) }); function loadOnClick() { jQuery('a').each(function(){ jQuery(this).attr("onclick", "_gaq.push(['_trackEvent', 'anchor', 'click