{"id":20779279,"url":"https://github.com/bolt/googleanalytics","last_synced_at":"2025-04-30T19:41:01.376Z","repository":{"id":19664179,"uuid":"22917475","full_name":"bolt/GoogleAnalytics","owner":"bolt","description":"Bolt Google Analytics extension - add Google Analytics tracker to your site.","archived":false,"fork":false,"pushed_at":"2018-10-23T14:09:17.000Z","size":809,"stargazers_count":8,"open_issues_count":1,"forks_count":10,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-30T19:22:05.391Z","etag":null,"topics":["bolt","cms","extension","google-analytics","php","tracker"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bolt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-13T13:58:37.000Z","updated_at":"2020-11-01T19:58:55.000Z","dependencies_parsed_at":"2022-09-18T23:40:48.845Z","dependency_job_id":null,"html_url":"https://github.com/bolt/GoogleAnalytics","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolt%2FGoogleAnalytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolt%2FGoogleAnalytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolt%2FGoogleAnalytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolt%2FGoogleAnalytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bolt","download_url":"https://codeload.github.com/bolt/GoogleAnalytics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251770930,"owners_count":21641176,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bolt","cms","extension","google-analytics","php","tracker"],"created_at":"2024-11-17T13:27:03.544Z","updated_at":"2025-04-30T19:41:01.339Z","avatar_url":"https://github.com/bolt.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Google Analytics\n================\n\nUpgrading to V3 of Plugin\n-------------------------\nWhen updating to V3 please change `key_file_location` to `key_file`.\n\nOverview\n--------\nThis extension inserts the Google Analytics tracker code on your pages. The plugin \nalso allows you view the Google Analytics statistics in the backend as well by going to \n`extend/Statistics`. \n\nDisplaying Google Analytics on every page\n-----------------------------------------\nIn order to display the Google Analytics tracking code on every page of the \nwebsite, please update the `config.yml` and edit `webproperty-id`, `universal`, or \n`universal_domainname`. The backend can be turned off by setting `backend` to false.\n\nDisplaying Google Statistics on the backend\n-------------------------------------------\nIn order to display the Google Analytics tracking code on every page of the \nwebsite, please update the `config.yml` and edit `key_file` and `service_account_email`.\nThe `ga_profile_id` is not needed anymore. You can specifiy the `ga_profile_id`, \nif you would like still. \n\n**Verbatim** instructions can be found here: https://developers.google.com/analytics/devguides/reporting/core/v3/quickstart/service-php#enable\n\nUse the developers console and replace the values with your service account\nemail, and absolute location of your key file. You can generate the needed\ndetails at https://console.developers.google.com. \n\nHere's a quick 'n' dirty step-by-step:\n\n  1. Go to the Google API Console and create a new app/project\n  2. In the Services tab, flip the Google Analytics switch to on\n  3. Click the credentials tab\n  4. Click 'Create Credentials' \u003e 'Service Account Key'\n  5. Under 'Service Account', select 'New Service Account', give it a name and\n     remember the email it generates for you. That is the\n     'service_account_email'\n  6. Select the p12 format\n  7. Download the key and then upload it to your server.\n  8. Visit your google analytics admin and add the service account email under\n     User Management with the 'read \u0026 analyze' permissions\n  9. Update the google analytics config.yml with the key file name and put the\n     file under app/config/extensions/ and service account email.\n\nIf the `.p12` file doesn't work with the version of google code in this extension you may have to convert it to a `.pem` file with this command:\n\n```\nopenssl pkcs12 -in ga-key-file.p12 -out ga-key-file.pem -nodes\n```\n\nThe command will ask for the password which is 'notasecret'. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbolt%2Fgoogleanalytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbolt%2Fgoogleanalytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbolt%2Fgoogleanalytics/lists"}