- In Firefox, browse to about:debugging and click "This Firefox".
- Click "Load Temporary Add-on..." and select a file in this directory to load the add on.
- In Firefox, browse to about:addons, click this add on, click Permissions, and enable "Access your data for all websites".
- In a new tab, open ./websites/source.html
- Press F12 to open dev tools for source.html to view console logs.
- Open the Browser Toolbox in order to view console logs from the background process that "sends" the reports.
- Each time source.html loads, an impression will be registered.
- Clicking the Ad Button on source.html will register a click event and redirect to target.html for the ad.
- Clicking the Purchase Button on target.html will register a conversion.
- Periodically, background.js will run to send accumulated data to DAP.
You can debug by viewing console logs in the Browser Toolbox or Dev Tools.