{"id":17496100,"url":"https://github.com/brint/jekyll-newrelic","last_synced_at":"2025-04-02T14:13:24.155Z","repository":{"id":56878686,"uuid":"58338449","full_name":"brint/jekyll-newrelic","owner":"brint","description":"Jekyll plugin for setting up New Relic Browser monitoring.","archived":false,"fork":false,"pushed_at":"2016-05-15T20:39:27.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-10T10:06:50.459Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/jekyll-newrelic","language":"Ruby","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/brint.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-09T00:49:50.000Z","updated_at":"2016-05-15T18:29:09.000Z","dependencies_parsed_at":"2022-08-20T23:10:14.387Z","dependency_job_id":null,"html_url":"https://github.com/brint/jekyll-newrelic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brint%2Fjekyll-newrelic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brint%2Fjekyll-newrelic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brint%2Fjekyll-newrelic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brint%2Fjekyll-newrelic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brint","download_url":"https://codeload.github.com/brint/jekyll-newrelic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246828503,"owners_count":20840474,"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":[],"created_at":"2024-10-19T14:46:30.598Z","updated_at":"2025-04-02T14:13:24.118Z","avatar_url":"https://github.com/brint.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jekyll::Newrelic\n[![Gem Version](https://img.shields.io/gem/v/jekyll-newrelic.svg)][ruby-gems]\n[![Build Status](https://travis-ci.org/brint/jekyll-newrelic.svg?branch=master)][travis]\n[![Test Coverage](https://codeclimate.com/github/brint/jekyll-newrelic/badges/coverage.svg)][coverage]\n[![Code Climate](https://codeclimate.com/github/brint/jekyll-newrelic/badges/gpa.svg)][codeclimate]\n[![Dependency Status](https://gemnasium.com/badges/github.com/brint/jekyll-newrelic.svg)][gemnasium]\n[![Security](https://hakiri.io/github/brint/jekyll-newrelic/master.svg)][hakiri]\n\n[ruby-gems]: https://rubygems.org/gems/jekyll-newrelic\n[travis]: https://travis-ci.org/brint/jekyll-newrelic\n[coverage]: https://codeclimate.com/github/brint/jekyll-newrelic/coverage\n[codeclimate]: https://codeclimate.com/github/brint/jekyll-newrelic\n[gemnasium]: https://gemnasium.com/github.com/brint/jekyll-newrelic\n[hakiri]: https://hakiri.io/github/brint/jekyll-newrelic/\n\nAdd [New Relic Browser](https://newrelic.com/browser-monitoring) to your Jekyll site.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'jekyll-newrelic'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install jekyll-newrelic\n\n## Usage\n\nAdd the necessary configuration to to `_config.yml`. Start by adding `jekyll-newrelic` to the list of gems for Jekyll to install:\n\n```yaml\ngems:\n  - jekyll-newrelic\n```\n\nNext setup your site with New Relic, and add the `licenseKey` and `applicationID` returned from when you setup Browser site. You can find these values by looking at the very end of the javascript code generated by New Relic. Check the documentation [here](https://docs.newrelic.com/docs/browser/new-relic-browser/installation-configuration/copying-your-browser-monitoring-license-key-app-id) for more details.\n\n```yaml\nnewrelic:\n  licenseKey: \"abcdef1234\" # Use the actual licenseKey\n  applicationID: \"12345678\" # Use the actual applicationID\n```\n\nThen add the following tag after the following line where you'd like the NewRelic code to be executed. NewRelic recommends including this at the end of the HEAD. Add the following before `\u003c/head\u003e` in `_includes/head.html`\n\n```liquid\n{% newrelic %}\n```\n\nIf you have multiple environments, you may only want to use New Relic in a specific environments. Here's an example of how to only use New Relic in your `production` environment:\n\n```liquid\n{% if jekyll.environment == \"production\" %}{% newrelic %}{% endif %}\n```\n\nThe above example is useful for making sure you don't load the New Relic code when performing local development or in other non-production environments. This can throw your numbers off.\n\n## Troubleshooting\nIf you do not properly configure `jekyll-newrelic` and try to build a Jekyll site, you will get the following error message:\n\n```\nInvalid jekyll-newrelic configuration. See https://github.com/brint/jekyll-newrelic#usage for more details on usage and configuration.\n```\n\nCheck spelling and capitalization of letters to make sure everything is properly configured.\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/brint/jekyll-newrelic. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrint%2Fjekyll-newrelic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrint%2Fjekyll-newrelic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrint%2Fjekyll-newrelic/lists"}