google-analytics

How to track clicks on outbound links

谁说我不能喝 提交于 2019-12-02 18:29:55
问题 [cross-posted on Google Products Forum http://productforums.google.com/d/topic/analytics/ZrB14a-6gqI/discussion ] I am using the following code at http://www.cs.bris.ac.uk/Research/Algorithms/ <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXXXXX-X']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' :

Why does Google Analytics use __utm.gif?

好久不见. 提交于 2019-12-02 18:21:49
Just trying to understand why they didn't use a REST API. doug In REST, clients initiate requests to servers for resources; servers process those requests and return appropriate responses. The utm.gif is not involved in server-to-client data transfer, but instead it's involved in moving data in the other direction. Of course REST has HTTP methods for the client to communicate with servers (GET and POST) and indeed, Google Analytics directs the client's browser to send all analytics data to the GA servers via a GET Request. More precisely, a GET Request is comprised of a Request URL and Request

Placing Google Analytics code in Wordpress specific page

我与影子孤独终老i 提交于 2019-12-02 18:09:31
问题 I'm trying to get Google Analytics Code to work on the thank-you page after customer has filled in the contact form and I've tried putting it in the thank-you page which is in the pages under admin in Wordpress backend using HTML tab but it seems to generate unnecessary p and br tags in between codes especially before closing tag. I'm not sure whether that is causing the issue or not. Is there a way we can do this for just one page? 回答1: I'm not 100 % sure whether it's possible at all to

Tracking Individual Users with Google Analytics Custom Variables

时间秒杀一切 提交于 2019-12-02 18:08:50
I've been working on a support center for my company and we need to track individual users when they login. If possible we would like to track details as well such as pages visited and time spent on the site as well. I'm able to track how many people login to the site using a custom variable, but I am unable to track individual users. Here is the code I've been using to try to grab the individual user id: $(document).ready( function() { var welcomeEmail = document.getElementById('welcome_email').innerHTML; var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-30086012-1']); var welcomeEmail; if

Google analytics track exits within a one-page checkout

断了今生、忘了曾经 提交于 2019-12-02 18:05:11
问题 I'm using an ecommerce system called NopCommerce that implements a one page checkout system. This page asks users to fill out details like billing address / shipping address etc before taking payment. The page uses ajax to save these details so the URL doesn't change, there's no internal anchors etc to mark progress. Does anyone know if it's possible using Google analytics to find out where on this page people are exiting? I know there are exit reports but they just refer to pages, not areas

Why does Google Analytics use a one-pixel picture to transfer data?

☆樱花仙子☆ 提交于 2019-12-02 17:42:49
Google Analytics embeds a one pixel GIF with a URL like this: http://www.google-analytics.com/__utm.gif?utmwv=5.1.5&utms=5&utmn=1532897343&utmhn=www.douban.com&utmcs=UTF-8&utmsr=1440x900&utmsc=24-bit&utmul=en-us&utmje=1&utmfl=10.3%20r181&utmdt=%E8%B1%86%E7%93%A3&utmhid=571356425&utmr=-&utmp=%2F&utmac=UA-7019765-1&utmcc=__utma%3D30149280.1785629903.1314674330.1315290610.1315452707.10%3B%2B__utmz%3D30149280.1315452707.10.7.utmcsr%3Dbiaodianfu.com%7Cutmccn%3D(referral)%7Cutmcmd%3Dreferral%7Cutmcct%3D%2Fgoogle-analytics-architecture.html%3B%2B__utmv%3D30149280.162%3B&utmu=qBM~ Why not use an AJAX

Track all outbound links in Google Analytics

北城余情 提交于 2019-12-02 17:38:31
I've been using a script to track outbound links for a couple of months now. The script WORKS , but in the report generated by Google Analytics many URLs are having a trailing ":80" (default port number) at their end. Read on for more details. It's maybe important to mention that the website tracking these outbound links has a tremendous amount of outbound traffic (multiply your fantasy by ∞). The script's purpose It tracks ALL outbound links and tag them as "Outbound Links" in Google Analytics. The script is heavily commented and has a few instances of console.log() to help debugging (these

Google Tag Manager with AngularJS?

懵懂的女人 提交于 2019-12-02 17:38:14
How do I use GTM with Angular? I'm trying to fire a (virtual) pageview event when I load a new partial using this code: dataLayer.push({ 'event' : 'pageview', 'pageview' : $location.path(), 'virtualUrl' : $location.path() }); But I don't see the event firing (I'm using the Google Analytics Chrome debug extension to view fired events). Mike Causer I find the Chrome extension unreliable. Simply run the global variable dataLayer in the console to print the array of events. One of the objects should be your pageview event. Here is an example of how we are using it: Note: we're not simply using

Google Analytics Event Tracking on Worpdress

北慕城南 提交于 2019-12-02 17:32:21
问题 I am trying to send an Event when clicked on a specific menu item. My header scripts are as follows: <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-124755880-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-124755880-1'); </script> <!-- Custom Google Analytics click event --> <script> jQuery(document).ready(function($){

Google Analytics is not reflecting in fragment

99封情书 提交于 2019-12-02 17:21:37
问题 I am using Google Analytics in my app. I have fragments in my app. I created on base fragment as an abstract class. and using it for remaining fragment. Can any one help me to solve this? This is how I created my abstract class and extend it to fragment public abstract class BaseFragment extends Fragment{..} In this base fragment, I added google analytics code, and I am able to track it in analytics. Now I have another class created in this way. public class FirstFragmemt extends BaseFragment