{"id":16403305,"url":"https://github.com/jessgusclark/snippet-ab-testing","last_synced_at":"2026-02-27T16:40:14.399Z","repository":{"id":147258659,"uuid":"117741661","full_name":"jessgusclark/snippet-ab-testing","owner":"jessgusclark","description":"A snippet for OU Campus to have A/B testing in content push to Google Analytics","archived":false,"fork":false,"pushed_at":"2018-01-30T22:42:25.000Z","size":8,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-23T17:26:07.934Z","etag":null,"topics":["analytics","googleanalytics","oucampus","xsl"],"latest_commit_sha":null,"homepage":"http://www.unco.edu/jesse/ab-testing/","language":"XSLT","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/jessgusclark.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-16T21:03:37.000Z","updated_at":"2018-01-16T21:56:50.000Z","dependencies_parsed_at":"2023-06-07T13:00:12.125Z","dependency_job_id":null,"html_url":"https://github.com/jessgusclark/snippet-ab-testing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jessgusclark/snippet-ab-testing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jessgusclark%2Fsnippet-ab-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jessgusclark%2Fsnippet-ab-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jessgusclark%2Fsnippet-ab-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jessgusclark%2Fsnippet-ab-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jessgusclark","download_url":"https://codeload.github.com/jessgusclark/snippet-ab-testing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jessgusclark%2Fsnippet-ab-testing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29905057,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T14:46:13.553Z","status":"ssl_error","status_checked_at":"2026-02-27T14:46:10.522Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["analytics","googleanalytics","oucampus","xsl"],"created_at":"2024-10-11T05:48:53.830Z","updated_at":"2026-02-27T16:40:14.358Z","avatar_url":"https://github.com/jessgusclark.png","language":"XSLT","funding_links":[],"categories":[],"sub_categories":[],"readme":"# snippet-ab-testing\n\nThis snippet allows a content users in OU Campus to add different variations of content to test. On page load, the javascript (via jQuery) chooses a variation at random to display to the user. If Google Analytics is loaded on the page it will set custom dimension 1 to the variation number.\n\nThis project is very much a work in progress and will probably change as time goes on. Don't trust this will production data yet, this is still in development.\n\n## Install\n\nCreate a custom dimension in Google Analytics. Currently the script is hardcoded to dimension 1.\n\nPublish `js/ab-test.js` to your webserver. Import `xsl/snippet-abtest.xsl` into an existing stylesheet and change link to `ab-test.js` to go to your published version of the file. Add `snippet-abtest.html` to your sinppets directory (probably /_resources/ou/snippets) and register the snippet with OU Campus.\n\n## Contribute\n\nFeel free to contribute via fork and pull requests; there is plenty of room for improvement. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjessgusclark%2Fsnippet-ab-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjessgusclark%2Fsnippet-ab-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjessgusclark%2Fsnippet-ab-testing/lists"}