GithubHelp home page GithubHelp logo

mediasuitenz / ckanext-google_tag_manager Goto Github PK

View Code? Open in Web Editor NEW
0.0 6.0 0.0 33 KB

Fork/replacement for Accela-Inc/ckanext-google_tag_manager (removed from github, used in data.govt.nz)

License: GNU Affero General Public License v3.0

Shell 22.02% Python 67.35% HTML 10.63%

ckanext-google_tag_manager's Introduction

ckanext-google_tag_manager

This is a CKAN extension (plugin) which enables 'Google Tag Manager' for your CKAN instance.

Pre-requisites

Create account for you CKAN instance with Google Tag Manager. This gives you a container-ID specific to the account.

Installation

1. Get the code
$ cd /usr/lib/ckan/default/src
$ git clone https://github.com/mediasuitenz/ckanext-google_tag_manager
2. Install the plugin
# Activate virtual env 
$ . /usr/lib/ckan/default/bin/activate
$ cd ckanext-google-tag-manager
$ pip install -r requirements.txt
$ python setup.py develop
3. Make config changes
  • Open your development.ini file (/etc/ckan/default/development.ini).
  • Add ckan.google_tag_manager.gtm_container_id = {YOUR_CONTAINER_ID} anywhere in the [app:main] section.
  • Add the extension to the plugins list: ckan.plugins = google_tag_manager
4. Restart ckan
    paster serve --reload /etc/ckan/default/development.ini

Common Errors

Future and Contribution Guide

The plugin is still in development phase. I plan to keep the master branch with the most recent stable codebase and dev branch with latest development branch. Please help me to improve the code by contributing to the dev branch.

ToDo:
  • Add warning log if ckan.google_tag_manager.gtm_container_id is not specified in config file.
  • Beautify the README.md file.

ckanext-google_tag_manager's People

Contributors

markstuart avatar niall-madecurious avatar tanmatt avatar tanmayaccela avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

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.