Questions tagged [analytics-api]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
1k 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 ...
Evgeniy's user avatar
  • 10.1k
0 votes
1 answer
67 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 ...
Cornflex's user avatar
  • 101
1 vote
1 answer
294 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 ...
Chris Rutherfurd's user avatar
1 vote
1 answer
66 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 ...
david's user avatar
  • 111
1 vote
0 answers
32 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 ...
Peter Brinck's user avatar
1 vote
0 answers
40 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 ...
astletron's user avatar
  • 111
1 vote
0 answers
583 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 ...
jxn's user avatar
  • 121
0 votes
1 answer
163 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 ...
Alex's user avatar
  • 103
1 vote
1 answer
2k 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?
Adam's user avatar
  • 737
1 vote
1 answer
866 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 ...
Jon H's user avatar
  • 113
2 votes
1 answer
372 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 ...
Juan's user avatar
  • 21
1 vote
0 answers
192 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 = ...
Steve Eastwood's user avatar
2 votes
1 answer
110 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 ...
flossfan's user avatar
1 vote
1 answer
145 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 ...
Ryan's user avatar
  • 544
3 votes
1 answer
1k 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.
Donatas Veikutis's user avatar
9 votes
1 answer
2k 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. "...
Baumr's user avatar
  • 1,442
0 votes
1 answer
555 views

Tracking email via analytics

I need to do email analytics, aim is to create an endpoint where when user sends an email to [email protected], the email is processed and data in email is used for google analytics conversion. ...
Tarun's user avatar
  • 103
4 votes
1 answer
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 ...
Jens Törnell's user avatar
1 vote
2 answers
160 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?
David Parks's user avatar
1 vote
1 answer
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 ...
Talon's user avatar
  • 221
8 votes
4 answers
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 ...
mrtsherman's user avatar
4 votes
1 answer
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 ...
Peter Kruithof's user avatar
2 votes
1 answer
157 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 ...
Jasdeep Singh's user avatar
1 vote
2 answers
177 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 ...
Ken Liu's user avatar
  • 135
3 votes
2 answers
190 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 ...
Dan Gayle's user avatar
  • 858