Google Analytics

Querying 365 Days, One Day at a Time

NEXT Analytics provides the ability to iteratively query for sub-periods over a date range, great for reducing sampling errors by minimizing the date range (and hence number of visit sessions to be processed) for each query. But the algorithm always starts from today. What if you want to query a period way in the past? Here’s an advanced technique using NEXT Analytics script that can help.

This approach uses two advanced capabilities of NEXT: iterative processing using uiSet commands, and; the ability to import multiple files with a single command. Start by making the query you want, for a single day using NEXT’s Custom Dates settings. Save the query to the workbook and open it in Excel. The _actions worksheet looks something like this.

The first step is to change the query to be for a generic date, and then to add uiSet commands to iterate for each of the dates desired. The uISet command sets values for the various prompt/variables listed on each row, and then runs the script below for each combination of values.

Because we need to keep the results of each query, we need to change the name of the file used to ‘catch’ the query results to include the date variable. Then change the ImportDataFiles command to load all of the files, using a wildcard (‘*’) in the file name in place of the date.

When we Refresh with NEXT, each query runs and writes to a file in the NEXT Analytics data directory.

And the results are loaded and appended together and written to the data worksheet. BEAUTIFUL!

Now, insert 365 rows and copy the uiSet row down until you get the ending date you want. Refresh with NEXT and save your results! Quick and easy – any date range you want.

 

Programming Tips

1. Use Formulas for AutoFill

The dates used MUST be in the form of TEXT strings, not Excel dates formatted to look ok. Text strings do not auto-fill properly when you copy a uiSet row down 300 rows, so to make your life easier, use an Excel formula that will auto-fill the way we want. One way is to use the formula

=TEXT(DATEVALUE(cell above)+1,”yyyy-mm-dd”)


2. Force the column Type with NEXT

If NEXT auto-detects the Date column as a date, it may insert a text column to the left of it with a row number (a whole bunch of one’s in this case). If you want the Date column to actually be a text string instead of an Excel date, then go to the Columns tab when you make your original query and force the types of the columns. That will insert code into the script command to force the type, and the data will be loaded the way you want.

ImportDataFiles,IterativeQuery*.csv,"nxRowLabel_Date,nxNumeric_Visits",…

 

Using NEXT Analytics Free Reports

NEXT Analytics makes it so easy to build custom web and social media reports that we give away hundreds of examples, completely free and open. You can use them as-is, or customize them to suit your needs and preferences. While you can simply open these reports and Refresh with NEXT to see your data, they will display information for the web site or fan page that you set as a default. In this article, we’ll look at how to customize these reports to work for a specific web property.

Building a Social Channel Report for Google Analytics

Google Analytics now classifies visits from hundreds of social networks for you, and with the API, we have full access to the details. Do you know how much your site traffic depends on these social channels? In this article, we will build a report with NEXT Analytics that shows the top social channels as a percentage of the total daily visits.

Multiple Websites, Multiple Segments, One Google Analytics Report

Many of our customers manage multiple websites, whether they are different product or service websites, support forums, or mobile-specific variants. With NEXT Analytics, it is easy to combine multiple sites into a single report, but you can go even further; you can compare multiple segments for each of your sites.

Upload Bing Ad Cost Data To Google Analytics

Using NEXT Analytics, this video shows how you can now get your Bing ad costs imported into Google Analytics for consolidated reporting of all your ad spend.

SEO – Determining Interest Through Page Analysis

In most web sites there are strong landing pages that pull people to your site, and there are highly-viewed pages that visitors only find because of your site navigation. These ‘hidden gems’ point to an opportunity unfulfilled – the content of these pages is inconsistent with the promise of your site navigation. It may be that you assumed that visitors would always navigate to the page, and you left out the preface information that puts the page into context, but what you did was to hide the page behind your site links and lose out on direct search and referral traffic. In this article, we’ll use NEXT Analytics to identify your hidden gems.

Google Analytics Multi-Channel Funnel Reporting

Earlier this year, Google introduced Multi-Channel Funnels to let you look at interactions across different digital media and show how these channels work together to create sales and conversions. They recognize that your customers research, compare, and make purchase decisions at different times and in different places, so measuring return solely based on the last click gives an incomplete picture and potentially misses important insights about how you reach your most valuable customers.

With NEXT Analytics v5, we now include full access to Google Analytics’ new Multi-Channel Funnel API. This article describes how to work with this new API and includes a free dashboard to get you going.

 

 

Using Google Analytics Data Upload for YouTube Video Views

The new Cost Data Import capability for Google Analytics offers the ability to upload not just ad costs, but also clicks and impression counts. While much of the obvious benefit comes from uploading cost information from Bing adCenter, Facebook Ads or LinkedIn Ads, you don’t have to stop there. As an example, this article explores an integration of YouTube video views into Google Analytics to demonstrate the effectiveness of that channel.

Creating a Social Media Dashboard

This week we are going to teach you how to create a social media dashboard that includes metrics from numerous data sources.

This is the dashboard we’ll end up with.

Social Media Dashboard

Social Media Dashboard

Combining Multiple Google Analytics Profiles

This is an older, technical article that shows how to manually configure a specific NEXT Analytics report. Things are a LOT easier with the latest release of NEXT; see the new article on this topic: Multiple Websites, Multiple Segments, One Google Analytics Report.

This article provides a quick, introductory overview of some the capabilities of Next Analytics. We are frequently asked if Next Analytics can combine queries from multiple profiles in a single report, and the answer is Absolutely! That is why we switched to our new ‘widget’ architecture in release 4. It is so easy to do now. Let me show you how…

Make Google Analytics Weeks Start on Mondays

Frustrated by the Google definition of weekly metrics that start on Sunday? Well, Next Analytics for Excel 4.3 can help! With our new ForEach period capability, you can get weekly metrics where you define what day you’d like to start the week on. And it is so easy…

Select your dimensions and metrics as usual , then check the new feature on the Dates tab that lets you repeat the query for each date sub-period. That means if you enter 26 Weeks, it will repeat the query for each week and join the results together for you.

Two-Dimensional Whats Changed Analysis

As website owners, we try to stay on top of things that change from one period to the next. I am always curious to see traffic increases from a specific source to a specific landing page. You know the situation: someone posted a link to one of your pages and it gained popularity. The standard reports in Google Analytics make that kind of discovery very difficult, but it can be easy with a little Next Analytics wizardry.

Querying More Than 10 Google Analytics Metrics

Ever wanted to get a bunch of metrics and goals on one page but the 10-metric limit of the Google Analytics API won’t let you? With Next Analytics, it is surprisingly easy to get what you want, you just need to do a little scripting.

Pivot by Year-Month for a Trend

Many common analytics reports are looking for one or two dimensions trended by date, usually month or week. With the Google Analytics API, the year, month and week dimensions are independent values. This article shows how to concatenate them and pivot the resulting column.

For this example, we’ll show the visitor type trend by month. Start with a query that includes the Year, Month, Visitor Type dimensions along with the Visits metric.

pivot11

You may notice that the Year and Month columns appear in Excel as numbers, and we need to turn them into text columns. On the Next Analytics Columns tab, select each field in turn and click the Text button to force them to be treated as text columns.

pivot5 pivot2 pivot3

pivot4

At this point, we use some Next Analytics script commands to transform the data into what we want to see. The first step is to concatenate the Year and Month columns into a single date column. For this, we navigate to the Analyze tab, and expand the Change Text node to find the Concatenate command. By clicking on the command, we see the syntax (generic version of the command) looks like this:

ConcatenateTextColumns,<ColumnA>~<ColumnB>,<Character(not ~ or ,)>,<NewCaption>

To merge our Year and Month together into a ‘Date’ column, we would change the command as follows, and click the Add button to included the modified command in our execution list:

ConcatenateTextColumns,Year~Month,-,Date

pivot3

Now we no longer need the individual Year and Month columns, so we can use the DeleteTextColumn command (from the Arrange grouping) to remove each of them:

DeleteTextColumn,Year

DeleteTextColumn,Month

And finally, to pivot the results by the new Date column, we use the Next Analytics pivot function to swap the unique values in the Date column to columns of their own:

SwapTextColumnWithColumn,Date

pivot4

This gives us the pivoted table we were looking for. Note that a Count column has been added automatically, but since we don’t need it in this scenario, we can remove it for our final report:

Select,Column,First

RemoveSelected

At this point, remember to Save your analysis — this writes all the script commands to a GoogleData_actions worksheet. From this point on, you can simply click the Next Analytics Refresh menu button to get new data.

pivot5

A Google Analytics Keyword Tag Cloud in Excel

I have seen tag clouds used all over the web to visualize what keywords are the most  popular, and thought it would be a good additional to the Next Analytics dashboard collection.  Tag clouds can easily be applied to situations where you want to see what people are looking for or talking about — anywhere that they are entering free-form text. I found an article on chandoo.org about how you could create a tag cloud in Microsoft Excel, and adapted it for use with Next Analytics. In this case, we’re looking at individual words used in Google Analytics keyword searches, letting you condense those “long tail” keywords to more easily see common words and stay on top of developing trends.

Dates From Google Analytics Year-Week Numbers

When making weekly reports from the Google Analytics API, it is most efficient to download your data using Google’s year and week dimensions. This produces a row of data for each calendar week in the report, but it leaves you with a report that contains no dates — just week numbers. Most people don’t think in terms of week numbers, so it is best if we convert them to dates for presentation.

 

Browser Version Popularity Report

I saw a tweet today about an old Google Analytics blog article about custom reporting, and in the comments, it seemed that everyone wanted a simple report showing the popularity of various browser versions. That is not a report you can make using Google Analytics custom reports, so it has gone unanswered…until now. Using the advanced capabilities of Next Analytics for Excel, this is a fairly easy report to build, so here is a step-by-step tutorial.

USA Map Overlay for Google Analytics in Excel

I made a quick little modification to the Map Overlay dashboard I described in our popular blog article, and produced the same dashboard, but focused specifically on that USA market.

Change the Date Range of Our Free Dashboards

Next Analytics has a growing list (over 200) of free Excel dashboards and reports that work with our product. Each was created to report on a specific time period, be it 3 days or 13 months, that moves with the calendar so all you have to do is click Refresh and the time period is calculated relative to “today”. Many people have asked how to modify our reports to change the duration of that time period, for example looking at traffic over the past 3 months instead of the past 14 days. This qualifies as a Frequently Asked Question, but I thought I should devote the space necessary to properly answer it. Because of the wide variety of dashboards and reports we have produced, there are a variety of answers, but let me try to address them in a generic way and then with specifics.

Note that this article discusses how to modify the pre-built Excel dashboards and reports that we provide. In most cases, these workbooks were built with various programming techniques to make them flexible and easier to use, and as such are a little more complicated that they need to be for personal use. It is not necessary to make your own solutions with this level of programmability.

Day of Week Report for Google Analytics

It is surprisingly hard to get day-of-week information out of Google Analytics, and the ‘best’ scenario I have heard is to compare one week to another. That’s not much of a trend, but I guess it’s something. With Next Analytics for Excel, there is a simple way to get reports by day-of-week that lets you create some amazing reports. I’ll give you a hint – the pivot tab lets you pick the display format for the date.

Web Analytics Dashboard in Excel for GA

Stephane Hamel of Immeria created a sample dashboard in Excel (link) that took off virally, becoming a popular starting point for others (link) (link) to create their own solutions. I applaud his work and his creativity. In the comments to his blog, though, a number of people found the complexity daunting. I am a strong believer in simplicity (and the amazing capabilities of Nextanalytics for Excel), so I took his idea and created a slimmed-down version specifically for Google Analytics users. Using Nextanalytics to download my Google Analytics data and to do some simple math, I created a greatly simplified version that uses basic cell references and formulas along with the usual Excel charts and formatting. Hope you like it!

Excel-based Website Visitor Dashboard

Using the unique capabilities of the NEXT Analytics add-in for Excel, we whipped up a quick dashboard that combines many of the key visitor-tracking metrics from Google Analytics all on one page, and it’s all yours, in a Microsoft Excel workbook. Use it as-is or customize to suit your distinctive needs. Simply enter your Google Analytics account information and click the Nextanalytics Refresh menu item. Nextanalytics takes care of the rest by leveraging the Google Analytics Data API to download all the information required and performing all the heavy lifting. The workbook uses simple cell references along with Excel charts and formatting – even a casual user would feel comfortable.

Google Analytics Content Overview Report in Excel

Third in the series (see Visitors overview, Traffic Sources overview) of Excel-versions of typical Google Analytics reports, the Content Overview report provides the detail on what web pages are the most popular. Starting with an overall trend chart showing page views totals by date, the report includes high-level counts and mini-trend-charts for both the page views and unique page views (ignoring when visitors click on the same page more than once; hey, maybe it was a navigation page or catalog index). Also included is the Bounce Rate metric – how many people bounced off your site having looked at only one page – a number you want to see drop over time.