Coder Social home page Coder Social logo

google / cwv_in_ga4 Goto Github PK

View Code? Open in Web Editor NEW
9.0 5.0 1.0 298 KB

Simple solution to make reporting on CWVs from BQ simpler to set up.

License: Apache License 2.0

Python 50.75% Shell 2.14% JavaScript 40.31% HTML 6.80%
analytics bigquery google google-cloud-platform

cwv_in_ga4's Issues

Nice to have more logs

Script might be manipulating with Google Cloud APIs, crete scheduled queries etc, which is not be clear to the user. Should add more logs which can also help with future debugging

Not all required services are automatically enabled.

Not all of the service required for deployment are enabled automatically via the script. For example, eventarc seems to be missing.

All of the services required for the deployment to work should be enabled by the script automatically.

Choosing the EU region causes deployment to fail

Using one of the umbrella regions (e.g. EU) for the project causes the deployment to fail. One of the specific regions (e.g. europe-west1) needs to be chosen.

This should be documented and, even better, a check should be added to the deployment.

README has anchors not recognised by github

The anchor marks (e.g. {#mark} in the README are being rendered as text instead of as anchors in the README. They should be updated to match GitHub's markdown implementation.

Deploy failing, some call needs an authorization code

Running the deploy script results in the following error:

details = "Failed to find a valid credential. The request to create a transfer config is supposed to contain an authorization code."

The trace looked like this:

 File "/home/adamread/cwv_in_ga4/./deploy.py", line 579, in <module>
    main()
  File "/home/adamread/cwv_in_ga4/./deploy.py", line 518, in main
    deploy_scheduled_materialize_query(project_id, args.region, args.ga_property)
  File "/home/adamread/cwv_in_ga4/./deploy.py", line 236, in deploy_scheduled_materialize_query
    transfer_config = transfer_client.create_transfer_config(
  File "/home/adamread/.local/lib/python3.9/site-packages/google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/client.py", line 757, in create_transfer_config
    response = rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
  File "/home/adamread/.local/lib/python3.9/site-packages/google/api_core/gapic_v1/method.py", line 154, in __call__
    return wrapped_func(*args, **kwargs)
  File "/home/adamread/.local/lib/python3.9/site-packages/google/api_core/grpc_helpers.py", line 68, in error_remapped_callable
    raise exceptions.from_grpc_error(exc) from exc
google.api_core.exceptions.InvalidArgument: 400 Failed to find a valid credential. The request to create a transfer config is supposed to contain an authorization code.

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.