Analytics and FTC compliance
Analytics dashboard
The Analytics tab shows:
- Clicks over time (line chart, configurable period).
- Top performing products (by clicks and estimated revenue).
- Geographic breakdown (top countries).
- Device split (mobile/desktop/tablet).
- A/B test results (when active tests exist).
Revenue is estimated using your configured Commission Rate and Conversion Rate settings against click counts. Amazon doesn't expose per-click revenue via PA API, so actuals come from your Amazon Associates dashboard.
Click event data
Every click logs to oam_clicks with:
link_id,post_id,display_id,abtest_id,abtest_variantip_hash,user_agent_hash(hashed for privacy)country_code,device_type,referrer,created_at
IPs are hashed before storage by default. Click retention defaults to 90 days (configurable under Settings).
A/B testing
OAM_ABTest runs head-to-head tests between two saved displays.
- A/B Tests tab -> New Test.
- Pick Display A and Display B from your saved displays.
- Set a name; save.
- OAmazon assigns each visitor to variant A or B (sticky per session). Impressions and clicks count toward
clicks_a/impressions_aorclicks_b/impressions_binoam_abtests. - When statistical significance reaches your threshold (default 95%),
winneris set toAorBand the test is markedresolved.
FTC compliance
The FTC requires affiliate links be disclosed. OAM_Compliance automatically inserts a disclosure on every post containing an OAmazon shortcode or block.
Disclosure templates live in oam_disclosures and can vary by context (post, page, review) and position (before/after content). The default disclosure inserted on activation:
This post contains affiliate links. As an Amazon Associate, we earn from qualifying purchases at no extra cost to you.
Customise under Compliance tab. Use [oam_disclosure context="post"] to insert the disclosure manually anywhere in your content.
Privacy and GDPR
OAM_Privacy registers exporters and erasers with WordPress's privacy tools so visitor click data can be exported or erased via Tools -> Export Personal Data.

