Lesson 41 Implementation: Adding a Verified Analytics Summary to Auction Cards
One of Flipnzee’s biggest goals is to help buyers make informed decisions. Instead of relying only on seller-provided information, auction cards should display trusted website metrics generated by the Flipnzee Analytics plugin.
In this lesson, the auction card was enhanced with a compact analytics summary that appears above the pricing information.
What was implemented
1. Added a “Google Verified Analytics” section
A new analytics block was inserted into the auction card layout. It retrieves analytics data from the Flipnzee Analytics plugin and displays it directly inside each auction listing.
The summary currently includes:
- Monthly Users
- Monthly Sessions
- Google Impressions
This allows buyers to evaluate website performance without opening the full listing page.
2. Prevented PHP errors
During testing, a critical error occurred when analytics data was unavailable.
To make the shortcode more reliable, checks were added before accessing transient data so that missing analytics now safely display as zero instead of generating errors.
Example:
is_array( $main ) ? ( $main['users'] ?? 0 ) : 0
This makes the shortcode much more robust.
3. Improved terminology
Instead of generic labels, the metrics were renamed to better match buyer expectations.
Old labels:
- Users
- Sessions
- Impressions
New labels:
- Monthly Users
- Monthly Sessions
- Google Impressions
These names immediately communicate what the numbers represent.
4. Formatted values
Several presentation improvements were made:
- Auction prices now display with a $ currency symbol.
- Numeric values use WordPress number formatting functions.
- Auction end dates are formatted into a clean, readable style instead of showing raw database values.
Example:
03 Jul 2026
instead of
2026-07-03 06:29:00
5. Styled the analytics section
A dedicated stylesheet was added for the analytics summary.
Visual improvements include:
- Light blue background
- Rounded corners
- Consistent spacing
- Professional typography
- Improved alignment of labels and values
The “Google Verified Analytics” badge was also updated to better match Flipnzee’s branding.
Challenges encountered
While implementing the feature, several issues had to be resolved.
Browser and server caching
Initially, CSS changes appeared to have no effect. After investigation, the issue turned out to be cached styles rather than incorrect code.
CSS duplication
During testing, duplicate CSS rules accumulated inside frontend.css.
Although this did not break functionality, identifying duplicate rules helped keep the stylesheet cleaner for future development.
Defensive coding
The analytics block originally assumed that transient data always existed.
Adding validation around analytics arrays made the shortcode much safer and prevented runtime errors.
Result

Auction cards now present much more than just prices.
Each listing immediately communicates important website metrics before the visitor even opens the full listing page.
The card now combines:
- Website preview
- Verified analytics
- Auction pricing
- Auction end date
- Call-to-action button
This creates a much stronger first impression for buyers and moves Flipnzee closer to becoming a marketplace that emphasizes verified website quality, not just website availability.
Download Source Code
Download the starting version of the plugin before the lesson:
⬇ Download Plugin (After Lesson 40) (1 download )Download the completed version after this lesson:
⬇ Download Plugin (After Lesson 41) (0 downloads )Key takeaway
A website buyer is purchasing more than a domain name—they are evaluating traffic, audience, and search visibility. By integrating verified analytics directly into auction cards, Flipnzee provides meaningful context that traditional website marketplaces often require users to discover manually.
Next Lesson: Lesson 42 – Adding a Live Auction Countdown Timer
In the next lesson, we’ll implement a dynamic countdown timer that shows exactly how much time remains before an auction ends, creating urgency and improving the overall auction experience.
