# xiti-smarttag-plugin

> Xiti smarttag vanilla js implementation

Latest version **1.1.5** (published 2018-08-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install xiti-smarttag-plugin
pnpm add xiti-smarttag-plugin
yarn add xiti-smarttag-plugin
bun add xiti-smarttag-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.5 |
| Published | 2018-08-31 |
| First published | 2018-08-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 269.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Felipe Egas Neris |
| Maintainers | felipeegas |
| Keywords | at internet, xiti tags, xiti, tagging, smarttag, smarttag.js, library, universal, umd, commonjs |

## Links

- npm: https://www.npmjs.com/package/xiti-smarttag-plugin
- Repository: https://github.com/felipeegasneris/xiti-smarttag-plugin
- Issues: https://github.com/felipeegasneris/xiti-smarttag-plugin/issues
- npm.io page: https://npm.io/package/xiti-smarttag-plugin

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 1.1.5 (latest) — 2018-08-31
- 1.1.4 — 2018-08-31
- 1.1.3 — 2018-08-31
- 1.1.2 — 2018-08-28
- 1.1.1 — 2018-08-27
- 1.1.0 — 2018-08-27
- 1.0.0 — 2018-08-24

## README

# Xiti Smarttags plugin

UMD Library wrapper for [xiti's smarttag](https://developers.atinternet-solutions.com/javascript-en/getting-started-javascript-en/tracker-initialisation-javascript-en/) javascript library


## Getting started

#### Install
```console
   npm i xiti-smarttag-plugin
   yarn add xiti-smarttag-plugin 
```
or inline script
```html
   <script src="https://unpkg.com/xiti-smarttag-plugin@1.0.0/lib/SmarttagPlugin.js"></script>
```
#### Usage
In es6 project
```js

   import SmarttagPlugin from 'xiti-smarttag-plugin';
   const tag = new SmarttagPlugin('XXXXXX'/*at internet site id*/); 
   
```
or when it's loaded inline script
```html
  <html>
  <head>
    <title>testing tags</title>
    <script src="https://unpkg.com/xiti-smarttag-plugin@1.0.0/lib/SmarttagPlugin.js"></script>
  </head>
  <body>
  <h1>title</h1>
  <script>
    var tag = new window.SmarttagPlugin('XXXXXX');
  </script>
  </body>
  </html>
```

Click hit

```js
   tag.sendClick({elem: this,
                  name: 'clickName',
                  level2: 'clickLvl2',
                  type: 'navigation',
                  event: event
   }); //this is the xiti object
```

Page hit

```js
   tag.sendPage({name:'pageName',
                 chapter1:'chap1',
                 chapter2:'chap2',
                 chapter3:'chap3'
   }); //this is the xiti object
```

---
_Source: https://npm.io/package/xiti-smarttag-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
