{"id":21813260,"url":"https://github.com/morficus/omniture-autobinder","last_synced_at":"2026-04-28T13:35:55.573Z","repository":{"id":15720142,"uuid":"18458263","full_name":"morficus/omniture-autobinder","owner":"morficus","description":"An automatic and mostly unobtrusive way to bind user interactions to UI elements and record them with Adobe's Omniture web metrics tool","archived":false,"fork":false,"pushed_at":"2015-08-25T18:32:09.000Z","size":288,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-21T12:06:45.794Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"grid5000/reference-repository","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/morficus.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-04-05T02:24:19.000Z","updated_at":"2016-03-17T20:17:58.000Z","dependencies_parsed_at":"2022-08-31T04:22:50.123Z","dependency_job_id":null,"html_url":"https://github.com/morficus/omniture-autobinder","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/morficus/omniture-autobinder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morficus%2Fomniture-autobinder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morficus%2Fomniture-autobinder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morficus%2Fomniture-autobinder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morficus%2Fomniture-autobinder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/morficus","download_url":"https://codeload.github.com/morficus/omniture-autobinder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morficus%2Fomniture-autobinder/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262327335,"owners_count":23294254,"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-11-27T14:28:14.792Z","updated_at":"2026-04-28T13:35:50.554Z","avatar_url":"https://github.com/morficus.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Omniture Autobinder\n====\n[![Build Status](https://travis-ci.org/morficus/omniture-autobinder.svg?branch=master)](https://travis-ci.org/morficus/omniture-autobinder)\n[![githalytics.com alpha](https://cruel-carlota.pagodabox.com/e210c3c11e25a2e6857d939932a6065f \"githalytics.com\")](http://githalytics.com/morficus/omniture-autobinder)\n[![Code Climate](https://codeclimate.com/github/morficus/omniture-autobinder.png)](https://codeclimate.com/github/morficus/omniture-autobinder)\n\u003ciframe src=\"//benschwarz.github.io/bower-badges/embed.html?pkgname=\" width=\"160\" height=\"32\" allowtransparency=\"true\" frameborder=\"0\" scrolling=\"0\"\u003e\u003c/iframe\u003e\n\nAn automatic and mostly unobtrusive way to bind user interactions to UI elements and record them with Adobe's Omniture web metrics tool.    \nThis tool/plugin is intended for single page applications (SPA's), tho traditional full-page-reload setups can also use this just with a bit more involvement.  \n\nWhat does it do\n====\nThe goal is to make using Omniture drop-dead simple with minimal impact to your main application code and still keep things maintainable.  \nTakes away the headache of having to write custom event-bindings to send user interactions over to Omniture/SiteCatalyst.  \nAlso provides a nifty easy-to-use wrapper (```omniture-facade.js```) around the vanilla s-object which eliminates the need to remember all the obscure methods and properties of Omniture.  \n\nIn it's most basic form, this plugin defines a set of `data-*` tags so that all the Omniture-related stuff stays with in your marktup and you never have to modify anything that could contain application logic.\n\nHow to use it\n====\n\n0. Grab the dependencies\n    - If you installed this plugin using [Bower](http://bower.io), then you are all set\n    - If you manually downloaded this sucker, then you will need to grab [jQuery](http://jquery.com/) and [Underscore](http://underscorejs.org/)\n1. Add the scripts to your page\n    - If you are using a module loader like [requireJS](http://requirejs.org) (which you really should), then just add ```omniture-autobinder``` and ```omniture-facade``` in to your your dependency array. (take a look at [the example file](examples/index-amd.html))\n    - If you are **NOT** using a module loader, then sure to add the ```omniture-facade.js``` to your page before ```omniture-autobinder.js```\n        - Make sure you include jQuery and Unsercore ***BEFORE*** including ```omniture-autobinder.js```\n2. Now you're ready to start tagging. Just add the proper data-* attributes to the element you are interested in and this plugin will do the rest.\n\nAdvanced usage\n---\nIf you still find your self needing to manually trigger some stuff due to the plugin liminations listed below, you can manually interact with the Omniture wrapper:\n\n- If using a module loader, just include ```omniture-facade``` as a dependnecy\n- If you are **NOT** using a module loader, just include ```omniture-facade.js``` in your page and reference it as ```OmnitureFacade``` from the global scope\n\nOr if you rather interact directly with the s-object, you can still do so as well\n\nPro tip\n---\nWhen using a module loader to bring in Omniture, don't forget to define it as a shim so that the s-object is still global.  \n\nAvailable data-* attributes\n====\n\n\u003ctable\u003e\n    \u003ctr\u003e\n        \u003cth\u003edata-* attribute\u003c/th\u003e\n        \u003cth\u003eDescription\u003c/th\u003e\n    \u003c/tr\u003e\n\n    \u003ctr\u003e\n        \u003ctd\u003edata-omniture=\"download\"\u003c/td\u003e\n        \u003ctd\u003erecord as a download-type link (click event)\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003edata-omniture=\"exit\"\u003c/td\u003e\n        \u003ctd\u003erecord as a exit-type link (click event)\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003edata-omniture=\"other\"\u003c/td\u003e\n        \u003ctd\u003erecord as a other-type link (click event)\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003edata-omniture=\"pageView\"\u003c/td\u003e\n        \u003ctd\u003erecord as a full page view (load event)\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003edata-omniture-text=\"textToSave\"\u003c/td\u003e\n        \u003ctd\u003etext that will be recorded (if not set, will grab the content\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003edata-omniture-evar=\"1,2,3\"\u003c/td\u003e\n        \u003ctd\u003eevars that need to be set (if multiple are needed, separate them with a comma)\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003edata-omniture-prop=\"1,2,3\"\u003c/td\u003e\n        \u003ctd\u003eprops that need to be set (if multiple are needed, separate them with a comma)\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003edata-omniture-event=\"1,2,3\"\u003c/td\u003e\n        \u003ctd\u003eevents that need to be set (if multiple are needed, separate them with a comma)\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003edata-omniture-pagename=\"string\"\u003c/td\u003e\n        \u003ctd\u003eset the page name to this value\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003edata-omniture-channelname=\"string\"\u003c/td\u003e\n        \u003ctd\u003eset the channel value\u003c/td\u003e\n    \u003c/tr\u003e\n\n\u003c/table\u003e\n\nCurrent limitations\n===\n\n- Only auto-binds to click-events\n- When settings multiple `eVar`s or `sProp`s from a single element, all `eVar`s and `sProp`s will receive the same text/display value\n- Does nothing for videos\n\nLegal stuff\n===\nDistributed under the [MIT License (MIT)](http://mutedsolutions.mit-license.org/)\n\nCopyright (c) 2014 Maurice Williams\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorficus%2Fomniture-autobinder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorficus%2Fomniture-autobinder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorficus%2Fomniture-autobinder/lists"}