Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

By now, you should have access to your own Dashboard project, and the API key pair for the Dashboard collector. 

The process

...

we follow with the JavaScript SDK

...

for logging events is as follows:

  1. A new collector object is initialised, with the API key pair values and Analytics URL passed into it
  2. Your custom event objects are formatted to your choosing
  3. Log events as single events or in batches via:

    1. using the logEvent() Method, your single event is sent via your custom collector to the Simple Analytics Collector

    2. using the logEvents() Method, your multiple events are sent via your custom collector to the Simple Analytics Collector

Collectors
Anchor
#collectors
#collectors

The SDK makes use of two seperate collectors, which we'll reference individually throughout this guide. These are:

...

  • Simple Analytics Collector - Configured by Blink for your Dashboard Project, this collector talks directly to the analytics database to store your data. This collector is communicated with

...

  • via your custom events collector, using it's unique API key pair.
  • Custom Events Collector - Configured by the user within your code, this will take the API key pair from your Dashboard/Simple Analytics Collector, allowing you to communicate and send your events directly to it. 


First off, we'll start by setting up

...

some basic configuration and

...

walking you through how to initialise your custom collector in your code. 

Afterwards, we'll show you how to format and start logging your own custom events. 

Next Step


Setting up Configuration