Skip to main content

Github Actions PyPI version

ckanext-googleanalyticsbasic

Puts the Google Analytics asynchronous tracking code into your page headers for basic Google Analytics page tracking.

Installation

  1. Install the extension as usual, e.g. (from an activated virtualenv) ::

     $ pip install -e  git+https://github.com/GSA/ckanext-googleanalyticsbasic#egg=ckanext-googleanalyticsbasic
    
  2. Edit your development.ini (or similar) to provide space separated list of google ids ::

     googleanalytics.ids = UA-1010101-1 UA-1010101-2
    
  3. Edit again your configuration ini file to activate the plugin with: ::

     ckan.plugins = googleanalyticsbasic
    

Compatibility

This extension is compatible with these versions of CKAN.

CKAN version Compatibility
<=2.8 no
2.9 yes
2.10 yes

Tests

All the tests live in the /ckanext/geodatagov/tests folder.

Using the Docker Dev Environment

Build Environment

To start environment, run: docker-compose build docker-compose up

CKAN will start at localhost:5000

To shut down environment, run:

docker-compose down

To docker exec into the CKAN image, run:

docker-compose exec app /bin/bash

Testing

They follow the guidelines for testing CKAN extensions.

To run the extension tests, start the containers with make up, then:

$ make test

Lint the code.

$ make lint

Matrix builds

The development environment drops as many dependencies as possible. It is not meant to have feature parity with GSA/catalog.data.gov. Tests should mock external dependencies where possible.

In order to support multiple versions of CKAN, or even upgrade to new versions of CKAN, we support development and testing through the CKAN_VERSION environment variable.

$ make CKAN_VERSION=2.10 test

Metadata

Release files for ckanext-googleanalyticsbasic 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ckanext-googleanalyticsbasic 0.2.1
File Size Uploaded Provenance Actions
ckanext-googleanalyticsbasic-0.2.1.tar.gz 4.6 kB Without provenance Details for ckanext-googleanalyticsbasic-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ckanext-googleanalyticsbasic 0.2.1
File Interpreter ABI Platform Actions
ckanext_googleanalyticsbasic-0.2.1-py3-none-any.whl Python 3 none any Details for ckanext_googleanalyticsbasic-0.2.1-py3-none-any.whl

Total release size: 10.8 kB

Release files / ckanext-googleanalyticsbasic-0.2.1.tar.gz

Download URL ckanext-googleanalyticsbasic-0.2.1.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3dced0734a4b7cd46389d07025ee6c8684f82c7c43972f92477be7827bdf202a
BLAKE2b-256 checksum
How to use checksums
0de403722795b971a70e61eda4ddbc14ee4de1dc2c37cb8a2e1c0aeff02d5c8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release files / ckanext_googleanalyticsbasic-0.2.1-py3-none-any.whl

Download URL ckanext_googleanalyticsbasic-0.2.1-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
62c1a364374646ef739bc92c76da245cd1a2b59068be0f05036ff8179414aebb
BLAKE2b-256 checksum
How to use checksums
8f35c0640629c7a64d61b45e071585b60e9972d3e69dc55d789dc129cd1da28b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Security for ckanext-googleanalyticsbasic 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page