Lifetime Donations & Average Donation are showing wrong values
-
Only two donations were made one live for $1.00 and a test one for $250.00 but these are the values its showing.
-
After refreshing the page the last donated is now the same as the donor registration time amount but as you can see in the recent donations it was about 2 hours ago from this post.
Hi, @demo7up.
I’m glad you reached out.
It looks like there is some kind of caching going on.
The fix here is a bit technical, so I’ll include as much detail as possible, but you may need to reach out to your web developer or web support person to implement these recommendations.
If you’re unfamiliar with caching, it saves server resources by storing copies of a page, resource, query, or site so that the next visitor’s visit doesn’t trigger a call to the server at all; they get the saved copy. Instead of the site needing to recreate the page from scratch, it sends a copy, allowing it to load faster.
We put together this deep dive into what caching is and how it can cause problems:?https://givewp.com/documentation/resources/caching/
Caching works well for speeding up sites, but when a saved copy of the site has sensitive information (like donor info), it’s essential that GiveWP not share that with the next visitor. If GiveWP is not convinced that the browser requesting the data is correct, it defaults to not showing the data.
Caching is handled differently on various sites and web hosts. This could mean a caching plugin, or caching could be in a security solution. Hosting providers also have settings for server-level caching settings, and they can help make adjustments for you there. Most caching solutions have a setting or section for excluding specific URLs or parts of URLs (called “slugs”) from caching. At the very least, you should exclude the following slugs from caching:
/donations/
/donation-confirmation/
/donor-dashboard/*
any page with a donation form on it
Also, the following query strings (if your caching solution has a setting for them):
give-embed=donor-dashboard
giveDonationFormInIframe=1
give-listener=paypal-commerce
give-listener=ipn
give-listener=stripe
Your host or the caching plugin/solution can help with that. Some may require a “wildcard” like /donations/* to capture all subdirectories under the /donations/ folder.
Some folks prefer to customize the URLs to their site pages, so you may find that your URLs don’t have the slugs mentioned above, even though they contain the same content. In such cases, we recommend whitelisting the page, not just the slug; that way, the pages with those essential pieces of information are still excluded from caching. This is especially important for URLs of pages with donation forms on them.
One helpful tip: Check in with your hosting provider. Most hosts have caching at the server level, and they will be able to adjust this for you. You can also temporarily disable caching on the site to confirm that the uncached site isn’t showing the problem.
Many security solutions also include caching options, so be sure to give those settings a look.
While fine-tuning the cache falls outside the scope of the support we can provide, your success with online donations is our number one priority, and we’re happy to provide any tips.
Also, let’s recount your stats. When it’s time to refresh the totals for your forms, just head over to the ‘Donations’ section, then click on ‘Tools,’ followed by ‘Data,’ and finally, select ‘Recount Stats.’ Once you’re there, you’ll find a variety of options to recalculate the data on your site. If I were in your position, I’d go ahead and run all of them.
This was quite a bit of information to share. If you have any questions about this, let me know. I’m happy to help.Let me begin here, there is zero caching solutions taking place. I am the developer. How is cache causing incorrect values for 2 test donations that equal $251 and the dashboard shows $25,134? This makes absolutely no sense to me.
This solution below does absolutely nothing.
“Also, let’s recount your stats. When it’s time to refresh the totals for your forms, just head over to the ‘Donations’ section, then click on ‘Tools,’ followed by ‘Data,’ and finally, select ‘Recount Stats.’ Once you’re there, you’ll find a variety of options to recalculate the data on your site. If I were in your position, I’d go ahead and run all of them.”
Also please stop marking all of my issues as resolved because it is not the case. Not a single one of your responses have solved any of my issue’s on any ticket.
Following your advice I wiped everything out, ran every tool. Made a new donation for $1 and its showing $134 on the dashboard. Doesn’t it seem like its missing the decimal point for the value $1.34. I want to assume the 34 is the fee amount. This is definitely not a cache issue!
After a second donation is made the Last donated x hours ago disappears. After wiping it twice it still happens as well.
After making a 3rd payment the label came back but it says last donated 4 hours ago when it was 4 minutes ago? Recurring payment is stuck on processing but the 3rd payment actually added the 1 dollar properly.
Update: if I enable Auto-format server currency amounts -> give_forms&page=give-settings&tab=general§ion=currency-settings it only shows $1
Hi, @demo7up.
I saw you are using the recurring donations add-on on a different ticket you raised. If you are a GiveWP customer, please reach out via https://givewp.com/priority-support. Otherwise, we’d love to take a closer look at this. Please reach out to us at https://givewp.com/contact-us/ and select “I’m responding to a request to contact you” in the Subject of your inquiry field. Be sure to reference this ticket so our team can investigate the issue thoroughly.
Looking forward to helping you get to the bottom of this!
- You must be logged in to reply to this topic.