{"id":15062251,"url":"https://github.com/segmentio/hbs-analyticsjs-snippet","last_synced_at":"2025-10-04T22:31:06.246Z","repository":{"id":12287972,"uuid":"14914538","full_name":"segmentio/hbs-analyticsjs-snippet","owner":"segmentio","description":"Handlebars helper for the analytics.js snippet","archived":true,"fork":false,"pushed_at":"2023-04-09T23:31:08.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":4,"subscribers_count":40,"default_branch":"master","last_synced_at":"2025-01-03T11:21:18.361Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/segmentio.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-04T04:43:28.000Z","updated_at":"2023-10-16T15:05:13.000Z","dependencies_parsed_at":"2022-07-21T16:18:35.292Z","dependency_job_id":null,"html_url":"https://github.com/segmentio/hbs-analyticsjs-snippet","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentio%2Fhbs-analyticsjs-snippet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentio%2Fhbs-analyticsjs-snippet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentio%2Fhbs-analyticsjs-snippet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentio%2Fhbs-analyticsjs-snippet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/segmentio","download_url":"https://codeload.github.com/segmentio/hbs-analyticsjs-snippet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235320974,"owners_count":18971223,"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-09-24T23:33:01.163Z","updated_at":"2025-10-04T22:31:00.976Z","avatar_url":"https://github.com/segmentio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hbs-analyticsjs-snippet\n\n  Handlebars helper for the [analytics.js](segmentio/analytics.js) snippet.\n\n## Installation\n  \n    $ npm install hbs-analyticsjs-snippet\n\n## Example\n\n```js\nvar snippet = require('hbs-analyticsjs-snippet');\nvar hbs = require('hbs');\n\nhbs.registerHelper('analyticsjs', snippet('WRITE_KEY'));\n```\n\n```html\n \u003cscript\u003e\n    {{ analyticsjs }}\n  \u003c/script\u003e\n```\n\n## API\n\n### snippet(writeKey, options)\n  \n  Creates a handlebars helper for the [analytics.js](segmentio/analytics.js) snippet, with a `writeKey` and custom `options`:\n\n```js\n{\n  min: true, // minified snippet by default\n  host: 'cdn.segment.com' // where your analytics.js is hosted\n}\n```\n\n\n## License\n\n```\nWWWWWW||WWWWWW\n W W W||W W W\n      ||\n    ( OO )__________\n     /  |           \\\n    /o o|    MIT     \\\n    \\___/||_||__||_|| *\n         || ||  || ||\n        _||_|| _||_||\n       (__|__|(__|__|\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsegmentio%2Fhbs-analyticsjs-snippet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsegmentio%2Fhbs-analyticsjs-snippet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsegmentio%2Fhbs-analyticsjs-snippet/lists"}