@searchstax-inc/searchstudio-ux-js 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -3,8 +3,24 @@
|
|
|
3
3
|
Library to build searchstudio search page
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
|
-
|
|
6
|
+
npm install following package
|
|
7
7
|
`npm install --save @searchstax-inc/searchstudio-ux-js`
|
|
8
|
+
|
|
9
|
+
Add following code to `<head>`
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
<script type="text/javascript">
|
|
13
|
+
var _msq = _msq || []; //declare object
|
|
14
|
+
var analyticsBaseUrl = 'https://analytics-us-east.searchstax.co';
|
|
15
|
+
(function () {
|
|
16
|
+
var ms = document.createElement('script');
|
|
17
|
+
ms.type = 'text/javascript';
|
|
18
|
+
ms.src = 'https://static.searchstax.co/studio-js/v3/js/studio-analytics.js';
|
|
19
|
+
var s = document.getElementsByTagName('script')[0];
|
|
20
|
+
s.parentNode.insertBefore(ms, s);
|
|
21
|
+
})();
|
|
22
|
+
</script>
|
|
23
|
+
```
|
|
8
24
|
## Usage
|
|
9
25
|
|
|
10
26
|
After importing Searchstax class a new instance needs to be created:
|