Git Product home page Git Product logo

curio_web_sdk's Introduction

Turkcell Curio Web SDK (New)

Curio is Turkcell's mobile analytics system, and this is Curio's javascript library for tracking web sites.

Add to your Site

  • Create your application using https://curioweb.turkcell.com.tr
  • Add below code to your web page.
  • Replace TRACKING_CODE and API_KEY values of your application with the code below.
    <script src="https://curio.turkcell.com.tr/api/js/curio-2.0.0.js"></script>
    <script type='text/javascript'>
    	Curio.init("API_KEY", "TRACKING_CODE");
    </script>

Usage

Send user interactions which you want to analyze to Curio Turkcell.
After adding above code to your site, you can send information to Turkcell Curio by using Curio javascript API.
Those information can be: visiting a page, clicking on any element at your page, or leaving from visited pages.

API

You can use Turkcell Curio, with 5 provided functions:

  • New Visit (New Session)
  • New Hit (New Page)
  • New Event
  • End Hit (Exit Page)
  • End Visit (End Session)

New Visit -------------- **The above Javascript which you have added to your page for Curio, will call new visit by (Curio.init) function. You don't have to call any function for creating a new visit.**

After new visit is created, the response parameters will be set to Curio.clientData object automatically. You don't have to do extra operation for processing response object. If new visit could not be created because of server error, connection error,.. etc, before sending any new request to Curio, new visit create attempts will be made.

New Hit

Required Parameters

  • pageTitle
  • path

Example:

You can call Curio.hitCreate() function such as:

    Curio.hitCreate({pageTitle: "Page Title", path: "Page URL"});

New Event

Required Parameters

  • eventKey
  • eventValue

Example:

You can call Curio.eventCreate() function such as:

    Curio.eventCreate({eventKey: "Event Key", eventValue: "Event Value"});

End Hit

Required Parameters

  • pageTitle
  • path

Example:

You can call Curio.hitEnd() function such as:

    Curio.hitEnd({pageTitle: "Page Title", path: "Page URL"});

End Visit

When the page is closed, visit will be ended automatically. You don't have to call any function for ending visit.

Dependencies

None

Version

0.2

License

GPL

curio_web_sdk's People

Contributors

alpersemerci avatar eneskorukcu avatar ulkeroz avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.