Skip to content

Can't perform authentication with guess-ga #328

@slavoroi

Description

@slavoroi
  1. I created a project in google console.
  2. I created a private key with no restrictions
  3. I opened a google analytics account
  4. I added analytics.js and used angulartics2 for Angular (and the routes recordings worked)
  5. Running :
  plugins: [
    new GuessPlugin({
      debug: true,
      GA: viewId,
      runtime: {
        delegate: false
      },
      routeProvider() {
        return parseRoutes('.');
      }
    })
  ]
};

Can't seem to pass this code in main.js:

 client = google_oauth2_node_1.auth({
                  clientId: clientId,
                  clientSecret: clientSecret,
                  scope: scope
              }).then(function (token) {

Opens a new chrome tab and clicking on my user get's me:

Sign in with Google temporarily disabled for this app
This app has not been verified yet by Google in order to use Google Sign In.

Also when trying:

fetch({
  key,
  viewId,
  period: {
    startDate: new Date('2016-1-1'),
    endDate: new Date('2020-3-3')
  }
}).then(g => {
  writeFileSync('data.json', JSON.stringify(g, null, 2));
}).catch((err) => {
  console.log(err);
  throw err;
});

throws Login Required.
I tried to give guess js read only permissions by email (mgechev@...) in google analytics but it didn't work.

versions:
"guess-parser": "0.4.15",
"guess-webpack": "0.4.15",
"guess-ga": "0.4.14"
Angular 8.2.14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions