Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [analytics-api]

The tag has no usage guidance.

1
vote
1answer
19 views

Google Analytics Enhanced Ecommerce: querying with API

I'm desperately struggling again with the Google documentation, grrr. Please point me somebody to the rigth direction: i want to query Google Analytics Enhanced Ecommerce through Analytics API. The ...
0
votes
1answer
37 views

Number of users today - two sources of truth?

I built a custom webapp which shows today's total number of users for an analytics property. Wanting to verify that the shown value is correct, I get three different values from google analytics: on ...
0
votes
0answers
66 views

Query Google GA API return different results without sample data

I run one query in ga query explorer and the return no contains sampled data. But when i run same query change the date filter i get a different result, more data is returned. Why? PS. In both ...
1
vote
1answer
195 views

What Are 20 Common Reasons for Incorrect Pageviews

Having gone through a large number of unanswered questions on here as well as going through some new questions asked I have come across the fact that there are a surprisingly large number of questions ...
1
vote
1answer
44 views

How to migrate old statistics to google analytics?

In our project we stored all users event data in our database for over one year , but it's not indexed. now we are going to use google analytics to store our analytics and analyze the report using ...
1
vote
0answers
26 views

Create a CMS plugin that can use the Google Analytics API on any domain name?

I'm making a plugin to a CMS, the plugin is a easy simple view of Google Analytics, with graphs etc. I'm using the Embed API, https://ga-dev-tools.appspot.com/embed-api/ But the problem is, that now ...
1
vote
0answers
30 views

With the Google Analytics Meausrement API, is there a way to avoid duplicate hits?

I am logging GA hit events and then sending them one at a time directly to the Measurement API endpoints. It would be convenient to re-start a failed upload process without having to 'remember' which ...
1
vote
0answers
445 views

How to use segments in google analytics API

In google analytics, We are able to create segments like below: From the Google analytics API explorer, we can pull the segment information be it by segment id or by its code: I would assume we can ...
0
votes
1answer
128 views

Is analytics.js a wrapper for the Google Analytics API

Does analytics.js derive its functionality from the Google Analytics API? In other words, can I use the Analytics API to record the same sort of data that analytics.js records? If not, what data can ...
1
vote
1answer
1k views

Get geolocation and city name via Google Analytics API

I'd like to extract a the name of the city of a visitor and preferably also the geolocation (latitude + longitude) of those visitors. Is this possible via the Google Analytics API and if so, how?
1
vote
1answer
514 views

Limit pageviews from Google Analytics API to the last 30 minutes

I am trying to find a way to query Google Analytics through the API to get pageviews for the last 30 minutes. Like they have available through the Google Analytics console, but I want to put it in an ...
2
votes
1answer
196 views

Export the drop off rate for all the pages in Google Analytics

I want to export the drop off rate information from user flow in GA. The only way to see this information appears to be to actually click in each "group" within the user flow dashboard to see this ...
1
vote
0answers
126 views

Sum of completed and not completed doesn't add up correctly in the Google Analytics API

I have a simple funnel situation. The users start at /start/ . Some of them reach the result at /result/ and obviously some don't. So it seems logical to me that: users who went to the start page = ...
2
votes
1answer
92 views

Using Google Analytics to determine how much time a visitor spends in each section of my site

I have a site with various pages, like: /about/history /about/team /contact/email-us /contact I want to figure out how much time people are spending on the entire /about section, and how much on the ...
1
vote
1answer
143 views

How can I track (funnel) if someone from a particular banner campaign watched our demo video?

I'm setting up a banner on a website with the caption View our Demo Video. The Banner has the UTM campaign tracking code setup and working. On our website I've got an embedded iFrame YouTube video ...
3
votes
1answer
527 views

Can I get user history with Analytics API?

Can I do so? that I will send user id from cookies to Google Analytics API and I will get all my site pages which was visited by user? I do not found any example of this.
9
votes
1answer
776 views

Why are there capitalized duplicates appearing in Google Analytics Real-Time reporting?

The following is visible under Real-Time reports in Google Analytics for a single page: What is the difference between the lower-case and upper-case search engine names? "Google" vs. "google" ...
0
votes
1answer
513 views

Tracking email via analytics

I need to do email analytics, aim is to create an endpoint where when user sends an email to contact@mycompany.com, the email is processed and data in email is used for google analytics conversion. ...
4
votes
1answer
5k views

Google Analytics API - Super simple? [closed]

Google Analytics API - Too complicated? I've read about Google Analytics API but heard of others that it is a bit complicated to make it work. I use PHP. Copy / paste example My question is if ...
1
vote
2answers
157 views

Can I programatically update a Google Analytics filter?

We have a constantly changing list of IPs that needs to be filtered out of google analytics, is there some API, or way to fetch the list of IPs to be included in a Google Analytics filter?
1
vote
1answer
1k views

Can't get Event Tracking To Work

I'm trying to get an event to be tracked (user registration) as a goal. I DON'T want it to be tracked by an onclick, I want it to be tracked once a PHP event is finished. Here is my code: if(USER ...
8
votes
4answers
3k views

Recording custom variables to identify individual users with Google Analytics

I have been asked by our marketing department to add Google Analytics custom variable tracking to my company's website. As the website uses server side includes, modifications to the tracking tag roll ...
4
votes
1answer
1k views

Should I measure visits or unique events?

I have set up custom variables a couple of months ago. Basically it tracks categories of pages, much like the example in the docs. Now I want to get a list of the most popular categories. I've ...
2
votes
1answer
145 views

using google analytics to create custom reports for a web app

I'm curently writing a web app that's supposed to take care of analytics and traffic on the application for our users. The users should be able to log in to the application and see a special area ...
1
vote
2answers
157 views

Is there a simple way to query the top URLs in Google Analytics?

I'm looking for an easy way to query GA programmatically in order to display the most popular pages on my site. GA has a Data Export API, but it seems kind of complex to work with for what I want to ...
3
votes
2answers
185 views

Can you use Google's Mobile Analytics API for non-mobile sites?

While doing research for one of my company's mobile sites, I discovered that Google has provided an entire serverside API for mobile analytics. Meaning that it doesn't require javascript and that the ...