Our Blog

Relative Dates and New Sample Size Features in Google Analytics APIs

You Are Here :
Our Blog

Relative Dates and New Sample Size Features in Google Analytics APIs

Google aims to make its Google Analytics API as simple to use as possible and so towards that effect it has released two more features that make it even easier to use.

Relative Dates

All MCF Reporting and Core API queries earlier required a start and an end date. In the earlier version users had to tell the App what today’s date was and then input the date for 14 days and only then could they see the data.

To make things easier for users Google has recently added support for relative dates. From now on users can specify ‘X’ days ago as a value for either the end date or start date. This effectively means that users can now express dates as:

Start – date=15daysAgo&end – date=yesterday

This will automatically determine the date range and data will be displayed for the last fortnight or whatever time period you enter.

Sample size control

You can also sample data in certain circumstances. Google has added a few new features that will allow you to easily modify setting and obtain reports of the sample.

First, Google has included a new query parameter that allows you to set the level of sampling. From now on developers are at liberty to obtain samples that are either quick or precise.

Second, two more features are added to the API response:

  1. sampleSize – The number of samples that are used for a sample query
  2. sampleSpace – The sampling space size. This indicates from what available sample space size the samples were selected.

With these additional features, users can compute the percentage of visits that were used for a query. For example if the sample Size = 95000 and sampleSpace = 100000, then the report is based on 95% of total visits. This gives developers a good idea of the amount of data that was used for calculating the sample.

Getting started on these two features is easy. A reference guide on these features is available which you can access and make the necessary changes to begin using these features.

Why Choose Anuva?

Anuva is a leading Digital Marketing Company providing results-driven Internet Marketing Services including Local SEO Services, Online Reputation Management Services, WordPress SEO, Ecommerce SEO, Professional SEO Services, SEO Consulting Services, SEO Audit Services, etc. to clients worldwide. Looking for Google Ads Services OR Facebook Ads Agency? We are a highly experienced PPC Management Company specialized in eCommerce PPC Management. Please check our Client Testimonials and SEO Rankings for you to see the outstanding results we have achieved. Contact us to generate a Huge ROI on your invested dollars from our strongest Online Marketing Services.

We Are Qualified
SEO Ranking
marketing automation webcasts alberta 2
marketing automation webcasting 2
digital marketing automation platform alberta 3
online agency marketing automation platform 6
marketing automation softwares alberta 6
google.com Ranking As Of 8-Jan-2022
ares p2p network 2
p2p file sharing platform ares 1
revolutionary p2p file sharing system 1
ares p2p file sharing program 2
official ares download 1
google.com Ranking As Of 8-Jan-2022
ace digital language lab 1
ace digital language laboratories 4
ace digital language laboratory 1
ace digital language labs 1
ace digital languages lab 1
google.co.in Ranking As Of 8-Jan-2022
csr data 1
search sustainability ratings 1
search sustainability ratings 1
social responsibility and sustainability ratings 1
csr ratings comparision 1
google.com Ranking As Of 8-Jan-2022
emenu international 1
international e-menu 1
international interactive emenu 1
emenu solutions 2
interactive emenu 2
google.com Ranking As Of 8-Jan-2022
download topor pcb 1
topor competitive advantages 1
pcb design time reduction 2
topological router for printed circuit boards 2
topological router for pcb 3
google.com Ranking As Of 8-Jan-2022
firewall mail server 1
reporting mta 1
secure email hosting services in ann arbor 10
secure hosted email services ann arbor 8
zimbra greenview data 1
google.com Ranking As Of 8-Jan-2022
real-time breach detection in somerset 1
real-time breach detection in somerset nj 1
real-time breach detection somerset 1
real-time breach detection somerset nj 1
somerset real-time breach detection 1
google.com Ranking As Of 8-Jan-2022
buy install monitor software 1
buy install monitor softwares 1
buy program installation monitor 2
buy program installation monitor tool 4
software installation monitor tool 6
google.com Ranking As Of 8-Jan-2022
oracle predictive dialer call center solution 1
oracle preview dialing software 1
predictive dialer software oracle 1
oracle call center software service 7
oracle call center software services 5
google.com Ranking As Of 11-Jan-2022
railcar repair management software 1
railcar repair management softwares 1
railcar service software 1
railcar repair management 1
railcar software 4
google.com Ranking As Of 11-Jan-2022
crystal ssrs reports scheduling tool 1
schedule crystal ssrs report 2
schedule crystal ssrs reports 1
ssrs crystal reports scheduler tool 1
ssrs report scheduler software 6
google.com Ranking As Of 11-Jan-2022
You have all done a wonderful job making both of my websites look more modern and professional. I would also like to say how excellent your customer support has been. Any and all concerns I had were addresses immediately with no questions asked....
- Beau Mason
We are more than satisfied with Anuva's Search Engine Optimization services. They have developed and upgraded our website and promoted the business very efficiently. Kudos! Keep it up! We have emerged as a reputed large scale organization and...
- Richard, Seattle
Why Us?
  • 70% + Cost Savings
  • IP Protection & Confidentiality
  • Expert Team with Global Delivery Experience
  • Business and Domain Expertise
  • Maintain your Competetive Edge

Call Me Back

    Success! Thanks for Your Request.
    Error! Please Try Again.