Git Product home page Git Product logo

rmeekers / google-analytics-manager Goto Github PK

View Code? Open in Web Editor NEW
7.0 5.0 4.0 180 KB

Manage your Google Analytics accounts and Google Search Console sites from a Google Sheet

Home Page: http://rutger.meekers.eu/Google-Analytics-Manager/

License: GNU Lesser General Public License v3.0

JavaScript 95.10% HTML 4.90%
google-sheets google-apps-script google-analytics google-analytics-api google-search-console

google-analytics-manager's Introduction

google-analytics-manager's People

Contributors

rmeekers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

google-analytics-manager's Issues

Error on auditing views

[17-08-22 14:35:33:822 CEST] Execution failed: Cannot auto-resize column at column index ‘18’ because there are only ‘18’ columns. [11.707 seconds total runtime]

Insert Dimensions results in an error

When inserting new dimensions, you get an error that the dimension doesn't exist. It seems that the script is trying to update instead of insert.

Convert to library

To simplify the installation and maintenance of this tool, we convert it to a library.
Users can then add it to a Google Spreadsheet as a library. Upgrading the script is much more easier this way.

Allow additional columns

In some cases it can be useful to have additional columns in the GAM generated sheets. Right now they get deleted when you retrieve data

User Rate Limit message

When requesting large amounts of data (76 properties in this example) you get this message:
image

Investigate to see if we should improve this message.

accounts.name is undefined

accounts.name is undefined in the below function.

function generateReport(accounts, apiType) {
    var callApi = api[apiType];

    callApi.init('generateReport', function() {
        callApi.getData(function(data) {
            // Verify if data is present
            if (data[0] === undefined || !data[0].length) {
                throw new Error('No data found for ' + apiType + ' in ' + accounts.name + '.');
            }

            sheet
                .init('initSheet', 'GAM: ' + callApi.name, callApi.config, data)
                .buildData();
        });
    }, {'accounts': accounts});
}

Error when writing data back to the sheet

When writing data back to the sheet after inserting via the API, it can happen dat the returned data doesn't fit the dataValidation in a cell. This can be the case with the currency field for example. Because in GA there are more currencies available than you can set via the API...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.