Verify

Confirm your w3aSDK setup

Verifying Your w3aSDK Integration Before Deployment

Let's ensure your tracking setup is functioning flawlessly, before your Friday afternoon pull request 😉!

Setting Up Test Configuration

To verify the integration on your local environment, activate the test flag in the w3aSDK.configure API:

// index.js
import { w3aSDK } from "w3a";

w3aSDK.configure(
    "<YOUR-SDK-KEY>", 
    { test: true } /* pass the test flag into the configuration options */
);

Validating Your Integration

  1. Console Verification: Launch the JavaScript console in your browser. Look for logs prefixed with [W3A]. The output should resemble the provided screenshot.

Screenshot: Verifying the w3aSDK is working
  1. Event Tracking: Here are the events you might observe in the logs:

  • FIRST_VISIT: Marks the user's inaugural website visit ✅

  • SESSION_START: Denotes the commencement of the user's session ✅

  • PAGE_VIEW: Logs a tracked page view ✅

  • WALLET_CONNECT: Records a wallet connection ✅

  • NFT_VIEW: Captures an NFT view ✅

  • TOKEN_VIEW: Chronicles a token view ✅

If everything aligns with the above, you're in the clear! Deactivate the test flag, and you're set to deploy to production. Onward and upward! 🚀

Last updated