{ "info": { "author": "James W. Kennington", "author_email": "jameswkennington@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# pelican-ga-pageview\nGoogle analytics pageview plugin to work with nice blog theme\n\n\n## Page View using Google Analytics\nIf you track your site's page view using Google Analytics, this plugin can pull\nthe page view information from your Google Analytics profile and add a\n``page_view`` attribute to each article and page in your Pelican site. See a\nlive example here.\n\nhttp://jwkennington.com\n\n\n## Requirements and Setup\n\nFirst, follow the `instructions here\n`_\nto set up Google API service account.\n\nThen in Google Analytics, add the email address you created above as an user so\nthat we can access the Google Anaytics API.\n\nAt this point, you should have:\n\n- Google API service email: ``-@developer.gserviceaccount.com``\n- Google private key file: ``client_private.p12``. Save this file somewhere\n secure. If you put this file in a Git repository, don't forget to add it to\n ``.gitignore``.\n\n\nFinally, install the Google API Python library:\n\n```bash\npip install --upgrade google-api-python-client\n```\n\n\n## Settings\n\nYou need to provide the following information in your Pelican configuration file\nfor this plugin to communicate with the Google Analytics API.\n\n- ``GOOGLE_SERVICE_ACCOUNT``: the service email.\n- ``GOOGLE_KEY_FILE``: path to the private key file, E.g.\n ``./client_private.p12``.\n- ``GA_START_DATE``: start date to count page view. E.g., ``2005-01-01``.\n- ``GA_END_DATE``: end date to count page view. E.g., ``today``.\n- ``GA_METRIC``: counting metrics, default is ``ga:pageviews``. See other options\n `here\n `_.\n Right now we only support query with ONE metric.\n- ``POPULAR_POST_START``: start date to count popular page views. E.g., ``A\n month ago``.\n\n\nWith this plugin installed, each ``article`` and ``page`` object has two extra\nattributes:\n\n- ``pageview``: total number of page views between ``GA_START_DATE`` and\n ``GA_END_DATE``.\n- ``popular_pageview``: total number of page view between ``POPULAR_POST_START``\n and ``GA_END_DATE``.\n\nAnd there is one global context named ``total_page_view``,\nwhich is the total page view of the entire site.\n\n\n## Note\n\nIf you encounter this error while building:\n\n```bash\nNotImplementedError: PKCS12 format is not supported by the PyCrypto library.\n```\n\nTry convert the ``p12`` file to ``pem`` file:\n\n```bash\nopenssl pkcs12 -in client_private.p12 -nodes -nocerts > client_private.pem\n```\n\nThe password should be ``notasecret``.\n\nThen set ``GOOGLE_KEY_FILE`` to be the ``pem`` file just generated.\n\n\n\n## Resources\n\n- `Google Analytics Core Reporting API\n `_\n- `Google Analytics Query Explorer\n `_\n\n\n## Attribution\nThis plugin is based on the [ga_pageview plugin](https://github.com/jhshi/pelican.plugins.ga_page_view)\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/JWKennington/pelican-ga-pageview", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pelican-ga-pageview", "package_url": "https://pypi.org/project/pelican-ga-pageview/", "platform": "", "project_url": "https://pypi.org/project/pelican-ga-pageview/", "project_urls": { "Homepage": "http://github.com/JWKennington/pelican-ga-pageview" }, "release_url": "https://pypi.org/project/pelican-ga-pageview/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "Pelican google analytics plugin modified to work with nice-blog theme", "version": "0.1.1" }, "last_serial": 5175585, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "044f948b71143e6106bc31d2d3f91608", "sha256": "d4fd8541b05f54e5214d37f907b541f5503e76b15c571d8e4e4f111a1abff38d" }, "downloads": -1, "filename": "pelican_ga_pageview-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "044f948b71143e6106bc31d2d3f91608", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5598, "upload_time": "2019-04-23T04:08:50", "url": "https://files.pythonhosted.org/packages/aa/25/cdfaf74b1ce859efc846dfe67285ff44115700a9250cb108ab6663bbc246/pelican_ga_pageview-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "75457862e4d9847c29b56093bc1580f8", "sha256": "396fbd7551666265da737d2946aeea6ddb151ad4301f561c40840bb29998f182" }, "downloads": -1, "filename": "pelican_ga_pageview-0.1.0.tar.gz", "has_sig": false, "md5_digest": "75457862e4d9847c29b56093bc1580f8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4306, "upload_time": "2019-04-23T04:08:52", "url": "https://files.pythonhosted.org/packages/de/8f/b54dbd316617d8e42d1fc6cdd2f390b5ba0765ee995575b458bfa61bcdbe/pelican_ga_pageview-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "b395f7dca406b8e8ad5151ba5807da44", "sha256": "8dc0bce43ee2d9b7f6a6185dad89367d46cf42f3a8a9fd65931e8bd2e426641c" }, "downloads": -1, "filename": "pelican_ga_pageview-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "b395f7dca406b8e8ad5151ba5807da44", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5600, "upload_time": "2019-04-23T05:03:34", "url": "https://files.pythonhosted.org/packages/6b/f2/fb30fac68183a3114fda50397b356fa81c6eea8c4e16cfeba81ea44572c1/pelican_ga_pageview-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "beab86b8dfc49e768068099541496c28", "sha256": "e68ac0682e0935e2722af54c51c51346ca710d4827e9d604be339931803931f0" }, "downloads": -1, "filename": "pelican_ga_pageview-0.1.1.tar.gz", "has_sig": false, "md5_digest": "beab86b8dfc49e768068099541496c28", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4305, "upload_time": "2019-04-23T05:03:35", "url": "https://files.pythonhosted.org/packages/93/f7/272dc762e659c537d5025551e5dcdf8d61b0ad1d5753883b385bdef4f5f1/pelican_ga_pageview-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b395f7dca406b8e8ad5151ba5807da44", "sha256": "8dc0bce43ee2d9b7f6a6185dad89367d46cf42f3a8a9fd65931e8bd2e426641c" }, "downloads": -1, "filename": "pelican_ga_pageview-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "b395f7dca406b8e8ad5151ba5807da44", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5600, "upload_time": "2019-04-23T05:03:34", "url": "https://files.pythonhosted.org/packages/6b/f2/fb30fac68183a3114fda50397b356fa81c6eea8c4e16cfeba81ea44572c1/pelican_ga_pageview-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "beab86b8dfc49e768068099541496c28", "sha256": "e68ac0682e0935e2722af54c51c51346ca710d4827e9d604be339931803931f0" }, "downloads": -1, "filename": "pelican_ga_pageview-0.1.1.tar.gz", "has_sig": false, "md5_digest": "beab86b8dfc49e768068099541496c28", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4305, "upload_time": "2019-04-23T05:03:35", "url": "https://files.pythonhosted.org/packages/93/f7/272dc762e659c537d5025551e5dcdf8d61b0ad1d5753883b385bdef4f5f1/pelican_ga_pageview-0.1.1.tar.gz" } ] }