Adding the Dema Pixel

Dema’s tracking pixel ensures that your site captures all key events (page views, product views, and orders) accurately and in near real-time. Follow the steps below to implement it based on your platform.

Where is the script implemented?

Dema offers multiple methods to deploy tracking, depending on your platform:

Single-Page Applications (SPA): For SPAs, ensure events are fired manually on navigation or route changes.
Learn more about SPA tracking.


Verifying events

Once the Dema pixel is implemented, verify that events are being tracked correctly:

  1. Use Browser Developer Tools:

    • Open the Network tab in your browser’s developer tools.
    • Trigger an event (e.g., load a page or view a product).
    • Look for requests sent to Dema’s endpoint (https://tracker.dema.ai).
  2. Check the Dema Dashboard:

    • Navigate to the Real-Time Dashboard in Dema.
    • Verify that events are appearing shortly after they occur (typically within 3 minutes).
  3. Test Different Scenarios:

    • Test on multiple devices and browsers to ensure consistent tracking.
    • Check campaign attribution by visiting your site with UTM-tagged URLs (e.g., utm_source=google).

Debugging and additional help

For a deeper understanding of how Dema’s tracking works, including detailed troubleshooting guidance, refer to our Fundamentals: Tracking page.

Need help? Visit our Support Center or contact us at support@dema.ai for further assistance.