(Classic) Embedded Site Tags

A KRL Ruleset can be executed on your web page by simply embedding a site tag. The end user does not need to install a browser extension for the ruleset to run. Of course you will need to be able to modify the files on the website directly in order to embed the site tag.

 To have the ruleset a169x616 excuted on a website, add the following javascript just before the closing body tag:

<script>KOBJ_config= {"rids":["a169x616"]};
</script>
<script src="http://init.kobj.net/js/shared/kobj-static.js">
</script>

Adding this site tag to a web page will execute the production version of the ruleset everytime the web page is visited by raising a web:pageview event to the specified ruleset. 

To execute the development version of your ruleset add the following javascript just before the closing body tag:

<script>KOBJ_config= {"a169x616:kynetx_app_version":"dev","rids":["a169x616"]};
</script>
<script src="http://init.kobj.net/js/shared/kobj-static.js">
</script>

The KOBJ_config map can contain any event attribute that needs to be associated with the event. 

This recipe is from Ed Orcutt

Copyright Picolabs | Licensed under Creative Commons.