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
| Parameter | Description | Required? | Default value |
|---|---|---|---|
siteId | Your unique site identifier. Obtained from the admin panel. | Yes | - |
autoConfig | If true, the SDK loads the platform IDs (Facebook, TikTok and so on) from the server automatically. | No | true |
debug | If true, detailed information about the SDK's activity is printed to the browser console. | No | false |
Supported standard events
| Event name | Meaning |
|---|---|
| PageView | Page visit (sent automatically on every page load) |
| ViewContent | A view of a product, article or other specific content |
| Search | A search performed on the site |
| AddToCart | A product added to the cart |
| AddToWishlist | A product added to the wishlist |
| InitiateCheckout | Checkout started from the cart |
| AddPaymentInfo | Payment details entered |
| Purchase | A purchase or payment completed |
| Lead | Lead information (form submission, sign-up and so on) |
| CompleteRegistration | Registration completed |
| Contact | Contact form filled in or a contact attempt |
| CustomizeProduct | Product customisation (choosing a variant and so on) |
| Donate | A donation or charitable payment |
| FindLocation | A search for a shop or office location |
| Schedule | Booking a time for a meeting or service |
| StartTrial | A free trial started |
| SubmitApplication | An application or job request submitted |
| Subscribe | A 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)timestampurlreferrerlanguagescreenuser_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: