...
The following JavaScript needs to be installed on every page of your site. The block should look as follows. Please either adjust or add as needed. The enginename is the engine ID associated with your Hawksearch account. The ClientGuid is the Tracking Key associated with your account. To lookup the Engine Name and Tracking Key for your account please look in the Hawksearch workbench under Admin >> Account Info.
Code Block | ||
---|---|---|
| ||
<!-- Hawksearch Header Includes --> <script type="text/javascript"> //<![CDATA[ (function (HawkSearch, undefined) { HawkSearch.BaseUrl = 'http://dev.hawksearch.net/sites/%%enginename%%'; HawkSearch.HawkUrl = HawkSearch.BaseUrl; HawkSearch.TrackingUrl = 'http://tracking-dev.hawksearch.net'; HawkSearch.RecommenderUrl = 'http://recs-dev.hawksearch.net'; HawkSearch.ClientGuid = '%%tracking_key%%'; if ("https:" == document.location.protocol) { HawkSearch.BaseUrl = HawkSearch.BaseUrl.replace("http://", "https://"); HawkSearch.HawkUrl = HawkSearch.HawkUrl.replace("http://", "https://"); HawkSearch.TrackingUrl = HawkSearch.TrackingUrl.replace("http://", "https://"); HawkSearch.RecommenderUrl = HawkSearch.RecommenderUrl.replace("http://", "https://"); } }(window.HawkSearch = window.HawkSearch || {})); var hawkJSScriptDoc = document.createElement("script"); hawkJSScriptDoc.async = true; hawkJSScriptDoc.src = HawkSearch.HawkUrl + '/includes/hawksearch.min.js?v1.0'; var hawkJSTag = document.getElementsByTagName('script')[0]; hawkJSTag.parentNode.insertBefore(hawkJSScriptDoc, hawkJSTag); var hawkCSSScriptDoc = document.createElement("link"); hawkCSSScriptDoc.setAttribute("rel", "stylesheet"); hawkCSSScriptDoc.setAttribute("type", "text/css"); hawkCSSScriptDoc.setAttribute("href", HawkSearch.HawkUrl + '/includes/hawksearch.css'); document.head.appendChild(hawkCSSScriptDoc); //]]> </script> |
...