google-analytics

Server-side Google Analytics Experiments

允我心安 提交于 2019-12-24 10:39:32
问题 I'm wondering why I have to include the JavaScript cxApi when I'm running the experiments server-side. Furthermore, can I send the chosen experiment and variations by PHP? Or maybe by injecting a JavaScript snippet without external resources (like the cxApi). I'm using Universal Analytics on the front-end and on the back-end. 回答1: Take a look at this library: php-gacx (Server-Side Google Analytics Content Experiments PHP Client) https://github.com/thomasbachem/php-gacx They parse cxApi

Define Analytics Goals in BigQuery

扶醉桌前 提交于 2019-12-24 10:34:50
问题 I am trying to get Analytics goal conversions and goal names with BigQuery, but it seems this must by defined by myself. How can I define this in BigQuery? Could someone provide me with a query example or guide? Thanks a lot!! 回答1: The goals configured inside of Google Analytics are not stored in BigQuery and will need to be computed from scratch. You will need to make a query based on the fact that the goal is generate it is, for example, by event or thank you page, so you need to recreate

Combine date, hits.hour & hits.minute field

心已入冬 提交于 2019-12-24 10:32:28
问题 I would like to combine the date, hits.hour & hits.minute field into one date-field that can easily be read by Tableau for visualization. At the moment the date is a string and the hits.hour & hits.minute are integers. In the end the date should be something like YYYY-MM-DD & hh:mm. Atm I converted the date to a string but I dont know how to combine the fields now, or in general if this first step was correct. Best, Pascal SELECT fullVisitorId, visitId, date, CAST (hits.hour as string) AS

jquery Populate _link() for Google Analytics Asynchronous syntax (cross domain)

旧城冷巷雨未停 提交于 2019-12-24 09:59:20
问题 To piggy back off what was discussed here, I'm looking to have an existing plug-in updated to help switch me to Google Analytic's "Asynchronous syntax" so onclick events could be applied to our outbound links for cross-domain tracking as shown here: <a href="http://example.com/test.html" onclick="_gaq.push(['_link', 'http://example.com/test.html']); return false;">click me</a> This is my current implementation to track outbound links with jquery, which I was hoping could be modified to

Is it possible to run JavaScript code before Meta refresh

不想你离开。 提交于 2019-12-24 09:40:19
问题 All the while, we are using this realiable website redirection HTML/JavaScript code <!DOCTYPE HTML> <html lang="en-US"> <head> <meta charset="UTF-8"> <meta http-equiv="refresh" content="1;url=https://www.nosuchwebsite.com"> <script type="text/javascript"> window.location.href = "https://www.nosuchwebsite.com" </script> <title>Page Redirection</title> </head> <body> <!-- Note: don't tell people to `click` the link, just tell them that it is a link. --> If you are not redirected automatically,

How to block Digital Ocean Inc. Google Analytics Direct Traffic using .htaccess

我的梦境 提交于 2019-12-24 09:13:10
问题 Explanation: I have gone through my Google Analytics and noticed I am receiving direct traffic from Digital Ocean Inc. multiple times a day (around 24) as new visits 100% bounce rate and 0 second page duration. Further research shows that its just a cloud service but I also found a list of blacklisted IP's here and multiple other people reporting the same traffic. Question: Since I have this range of IP's that may or may not be my problem would I be able to block these IP's from accessing my

jQuery - Can I trigger an event within it's own handler?

我们两清 提交于 2019-12-24 08:49:26
问题 So I basically have a .click event, that does e.preventDefault(). However, once the code finishes executing, I want it to re-execute the event after unbinding it. The context for all of this is, I'm trying to set up outbound link event tracking with google analytics (analytics.js). <a href="http://www.example.com/" id="link1"><img /></a> <script> $("#link1").click(function(e) { e.preventDefault(); ga('send', 'event', 'category', 'action', 'label', { 'hitCallback': function() { $(this).unbind

Not getting Goal name using Google Analytics gapi

烂漫一生 提交于 2019-12-24 08:48:20
问题 I have to get goal name using gapi. Also, I have seen all dimensions and metrics, but i don't get goal name. https://developers.google.com/analytics/devguides/reporting/core/dimsmets Can anyone help me how can i get goal name. Do we have any dimension like ga:goalName? Thanks in advance 回答1: The only way to get the Goal name associated with a goal is to go though the management api Goal list There isn't any way to get the goal name or number as a dimension on the GA website or via the API.

how to track traffic that comes from RSS through google analytics?

三世轮回 提交于 2019-12-24 07:47:06
问题 Is there a way to track the traffic that comes from RSS using google analytics? In other words to measure page views on RSS feeds through RSS readers and Click-thrus to the site from RSS feeds and readers? Can I add Google Analytics tracking variables, like utm_source , for RSS feeds?? If so, how? 回答1: Pageviews in RSS readers aren't really reliable - the standard doesn't include javascript, and I'd expect RSS readers to simply ignore scripts. Also, the concept of a 'page' doesn't really

How can I have more than zero Events, but zero Unique Events?

断了今生、忘了曾经 提交于 2019-12-24 07:37:49
问题 I have a page which in generating Event Actions. They all belong to the same Category, and they have no labels. When I look at my Events Overview, drill down to a specific Event Action, and then add a secondary dimension of Page, I get some events that have a positive number for Total Events, yet zero for Unique Events. How can this be? Sample table: | Event Action | Page | Total Events | Unique Events | Event Value | |==============|============|==============|===============|=============|