Installation

Getting the YieldKit working is as simple as adding our script tag to your HTML code.

  1. Copy our script inside the <head> </head> tags of your html page.
  2. Replace the [API_KEY] and [SITE_ID] with the ones that we provided to you.
  3. If your installation is on a subdomain, replace the [SUBDOMAIN.DOMAIN.COM] text with the your target subdomain.

NB. The [API_KEY] and [SITE_ID] are the parameters that identify you as an user and allow you to access our platform.

GENERAL SCRIPT

<script type='text/javascript'>
(function () {
var scriptProto = 'https:' == document.location.protocol ? 'https://' : 'http://';
var script = document.createElement('script');
script.type = 'text/javascript';
script.async = true;
script.src =< scriptProto+'js.srvtrck.com/v1/js?api_key=[API_KEY]&site_id=[SITE_ID]';
(document.getElementsByTagName('head')[0] || document.body.appendChild(script);
})();
</script>

 

 

SUBDOMAIN SCRIPT

<script type='text/javascript'>
var _yk = _yk || [];
_yk.push(['SUBDOMAIN','[SUBDOMAIN.DOMAIN.COM]']);
(function () { ;
var scriptProto = 'https:' == document.location.protocol ? 'https://' : 'http://';
var script = document.createElement('script');
script.type = 'text/javascript';
script.async = true;
script.src = scriptProto+'js.srvtrck.com/v1/js?api_key=[API_KEY]&site_id=[SITE_ID]';
(document.getElementsByTagName('head')[0] || document.body.appendChild(script);
})();
</script>