Code Monkey home page Code Monkey logo

aristotel's People

Contributors

aleksxor avatar dapi avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

aristotel's Issues

widget для вставки на сторонний сайт

Код виджета для вставки на сайт. Например:

window.heap=window.heap||[],heap.load=function(e,t){window.heap.appid=e,window.heap.config=t=t||{};var n=t.forceSSL||"https:"===document.location.protocol,a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src=(n?"https:":"http:")+"//cdn.heapanalytics.com/js/heap-"+e+".js";var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(a,o);for(var r=function(e){return function(){heap.push([e].concat(Array.prototype.slice.call(arguments,0)))}},p=["clearEventProperties","identify","setEventProperties","track","unsetEventProperty"],c=0;c<p.length;c++)heap[p[c]]=r(p[c])};
heap.load("228961702");

Виджет отправляет на сервер следующий события:

Клике или сабмите

  • event: (click или submit)
  • tag (название элемента), classes (список классов элемента, через пробел), id (id элемента), href (если это ссылка)
  • parent_tag, parent_classes, parent_id (контейнер элемента)
  • text: текст target-а (до 200 символов) или занчение value если это input submit
  • url -на какой странице находимся
  • referer
  • user_id
  • session_id - текущая сессия (начинается новая если браузер перезапустили)

Load

  • event: load
  • session_id
  • user_id
  • url
  • referer

Дополнительные параметры (Custom API)

Необходима возможность передавать дополнительные данные для идентификации пользователя, и его типа.

Пример: https://heapanalytics.com/docs/custom-api

https://heapanalytics.com/docs/using-identify

  • identify (в первую очередь)
  • track (в первую очередь)
  • setEventProperties (в первую очередь)
  • unsetEventProperty
  • clearEventProperties
  • userId

art.version

Версия виджета в window.art.version

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.