Documentation

DigixEvents documentation

A single JavaScript analytics tracking system for Facebook, TikTok, Google Ads, DV360 and other platforms.

Quick start

Add the code below to the relevant part of your site:

Usage guide

init parameters

ParameterDescriptionRequired?Default value
siteIdYour unique site identifier. Obtained from the admin panel.Yes-
autoConfigIf true, the SDK loads the platform IDs (Facebook, TikTok and so on) from the server automatically.Notrue
debugIf true, detailed information about the SDK's activity is printed to the browser console.Nofalse

Supported standard events

Event nameMeaning
PageViewPage visit (sent automatically on every page load)
ViewContentA view of a product, article or other specific content
SearchA search performed on the site
AddToCartA product added to the cart
AddToWishlistA product added to the wishlist
InitiateCheckoutCheckout started from the cart
AddPaymentInfoPayment details entered
PurchaseA purchase or payment completed
LeadLead information (form submission, sign-up and so on)
CompleteRegistrationRegistration completed
ContactContact form filled in or a contact attempt
CustomizeProductProduct customisation (choosing a variant and so on)
DonateA donation or charitable payment
FindLocationA search for a shop or office location
ScheduleBooking a time for a meeting or service
StartTrialA free trial started
SubmitApplicationAn application or job request submitted
SubscribeA subscription or sign-up to a mailing list

Dynamic platform integration

init runs, DigixEvents contacts the server and fetches the platform IDs automatically. You manage those IDs in your admin panel by enabling the relevant platforms (Facebook, TikTok and so on) and entering them. Example server response:

Additional settings

  • consent: Managing user consent ('grant'/'revoke').
  • debug: Turns on detailed logging in the console.

Automatic parameters

Added to every event automatically:

  • event_id (UUIDv4)
  • timestamp
  • url
  • referrer
  • language
  • screen
  • user_agent

Developer notes

Things to keep in mind while integrating:

  • Events are sent via sendBeacon, fetch, <img>in that order.
  • Thanks to queue support, calls made before the main script loads are not lost.
  • The code is plain vanilla JS and ES5 compatible.

Test / example

An example for verifying the integration: