Custom referrer snippet not working - koko-analytics
Followup for #75 .1. how to filter out the referrers I add from my previous data? 2. @dannyvankooten I have had the filter on for a week and the URLs I shared above are not being blocked.
5 Answer:
Hello @askel45,
Please share the complete and exact snippet you have in place and also where you placed it on your website (in what file). That way I can take a look.
This is the code I have...
// Add custom referrers to Koko's refferer blocklist
add_filter( 'koko_analytics_referrer_blocklist', function() {
return array(
'int.search.myway.com',
'int.search.tb.ask.com',
);
});
I place my Koko analytics plugin codes in a custom plugin in the plugins directory (that I use for the theme functions and WP purposes). The full URLs are as follows: 1. int.search.myway.com/search/GGmain.jhtml 2. int.search.tb.ask.com/search/GGmain.jhtml 3. static.bangnewsinfo.com/searchResult 4, lavasoft.gosearchresults.com
That snippet looks correct to me, are you sure your custom plugin is loaded and executed correctly?
Also, please note that the snippet will only filter these referrer domains going forward so any previous data will not automagically be deleted.
I just confirmed this to be a bug in the Koko Analytics plugin, it'll be fixed in the next plugin update (without any necessary changes to your snippet already in place).
Cool, thanks. I have decided to go back to GA for now. But I will install the plugin afresh when you implement the feature to export data (and to count 404s as well, but this is minor).
Read next
- cli [BUG] [DOC] git aliases - JavaScript
- Fix skip_dir documentation - D onedrive
- [question] use command dependencies for model creation - spotlight
- openj9 Valhalla LWVT: Flatten value type arrays Java
- nuclei [feature] Workflow to support tags based execution - Go
- Bug in jnp.take with negative indexing - Python jax
- vanilla Flagging content "Take Action" button link broken - PHP
- [v1]: info missing cacheControl - TypeScript graphql-modules