-
Include jQuery:
html: <a class="omnitagging" href="http://www.google.com" target="_blank" data-tagging='{"events":["event34","event35"],"eVar":["eVar34","eVar56"],"prop":["prop34","prop56"],"value":["this is home","this is anothe value"],"linkname":"this is linkname"}'>test tagging 1</a>
-
Include plugin's code:
html: <script src="dist/jquery.omnitag.min.js"></script>
-
Call the plugin:
javascript: $(".omnitagging").omnitag({ delay: 300, trackExternalLinks: false });
-
Pass in tagging data manually:
javascript: $("#manual").omnitag({ delay: 800, trackExternalLinks: false, taggingData: { events: [ "event34", "event35" ], eVar: [ "eVar34", "eVar56" ], prop: [ "prop34", "prop56" ], value: [ "this is home", "this is another value" ], linkname: "this is linkname" }
}); ```
MIT License © Liak Wee