Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Analytics › problem with Analytics
- This topic has 10 replies, 2 voices, and was last updated 4 years, 6 months ago by hani.
- AuthorPosts
- July 19, 2019 at 2:22 pm #73097sdel_nevoParticipant
Hi Guys
looking at analytics captured by your plugin, I can’t work out what’s happening
it appears that the IP address details and country are incorrect
Steve
- July 19, 2019 at 2:24 pm #73098sdel_nevoParticipantThis reply has been marked as private.
- July 20, 2019 at 11:11 am #73184sdel_nevoParticipantThis reply has been marked as private.
- July 22, 2019 at 9:44 am #73413sdel_nevoParticipant
Hi Guys
I have been in touch with my host, they have confirmed that everything is configured correctly their end, they are unsure as to why the analytics plugin is recording data incorrectly.
Any chance you could take a look at this for me.
I can provide admin details to my site if required
Steve
- July 24, 2019 at 7:05 am #73660sdel_nevoParticipant
Hi Guys
I have attached two images
1 is the analytics from my network, the other is from google analytics
this covers the same date range (last 7 days)
you can see the problem
your plugin records everything as either the UK or Malta
Steve
Attachments:
You must be logged in to view attached files. - July 25, 2019 at 7:44 am #73838sdel_nevoParticipant
Hi Guys
just replied to your e-mail
I added
add_filter( ‘wcfm_is_allow_wc_geolocate’, ‘__return_false’ );
to my functions file, the IP addresses are now being recorded correctly
however the country, state and city are incorrect
I’m being recorded as the USA when I’m in the UK
my mobile is recorded as France, also in the UK
I use wordfence to protect my site, could that be the issue
Steve
- July 25, 2019 at 1:14 pm #73869sdel_nevoParticipant
Hi Guys
as advised in another e-mail I cleared out all references of wcfm_user_location from the user-meta table
now sometimes when I visit the site(when not logged in) it records correctly both the IP address and Location
if I revisit later (also not logged in) it records incorrectlySteve
- July 25, 2019 at 4:10 pm #73933sdel_nevoParticipant
Hi guys
I have an odd issue with the analytics, this is effecting both wordfence and your analytics plugin
The United States is being shown as united countys
If I disable my theme it shows correctly in both plugins
I’m using the flatsome theme and have some code in my functions file
Would you be able to see if you can see what the issue is?
If this is ok, I will send you the access detail
I would be most great full
Steve
- July 25, 2019 at 6:11 pm #73938sdel_nevoParticipant
Hi Guys
I have found the problem code.
I added this in my Functions file to change “State” to “County on the vendor pages
// Change state to county on vendor pages
function wcfm_marketplace_custom_address_field( $address_fields ) {
if( isset( $address_fields[‘state’] ) ) {
$address_fields[‘state’][‘label’] = ‘County’;
}
return $address_fields;
}
add_filter( ‘wcfm_marketplace_settings_fields_address’, ‘wcfm_marketplace_custom_address_field’ );
add_filter( ‘wcfm_membership_registration_fields_address’, ‘wcfm_marketplace_custom_address_field’ );
add_filter( ‘wcfm_wcmarketplace_settings_fields_customer_support’, ‘wcfm_marketplace_custom_address_field’ );function wcfm_custom_2406_translate_text( $translated ) {
$translated = str_ireplace( ‘State’, ‘County’, $translated );
return $translated;add_filter(‘gettext’, ‘wcfm_custom_2406_translate_text’);
add_filter(‘ngettext’, ‘wcfm_custom_2406_translate_text’);unfortunately, this was also changing “United States” to “United Countys” in wordfence and your analytics plugin
do you know how this code can be changed to prevent this
Steve
- July 25, 2019 at 9:03 pm #73956sdel_nevoParticipantThis reply has been marked as private.
- May 5, 2020 at 8:07 pm #127072haniParticipant
Hi,
I have exactly the same problem, showing london city in store list searching page automatically (Wrong). and showing UK in analytics.
would you you share the solution if you have it?
- AuthorPosts
- You must be logged in to reply to this topic.