PHP

PHP SDK

PHP client for interacting with the Evntaly event tracking platform. provides developers with a straightforward interface to initialize the SDK, track events, identify users, manage tracking states.

Installation

Install the Evntaly PHP SDK:

Initialization

Initialize the SDK with your Developer Secret and Project Token - Check Herearrow-up-right

Tracking Events

To track an event, use the track method with an associative array containing the event details.

User Identification

To identify user details, use the identifyUser method. This helps link events to specific users and enriches your analytics.

Enabling and Disabling Tracking

You can globally enable or disable event tracking for the current SDK instance. This might be useful for development/testing or respecting user consent.

Best Practices

  • Initialize early: Always initialize the SDK as early as possible.

  • Avoid sensitive data: Do not pass sensitive personal data directly to the SDK.

  • Monitor API limits: Regularly check API limits to avoid missing critical events.

Troubleshooting

  • Events not appearing: Check if the SDK is initialized correctly and the API tokens are valid.

  • Network errors: Ensure your network allows requests to https://evntaly.com.


Support

For additional help, contact support at support@evntaly.com.

Open-source community Achievements

Huge shout-out and thank you for Mohamed Kamal arrow-up-rightwho developed this SDK and it has been added, reviewed and tested by the Evntaly team.

Last updated