If you still have questions or require help with anything, please reach out to us and we'll happily get things sorted out for you.
use our WordPress plugin.
By using Fathom Analytics for WordPress you can view your Fathom dashboard directly within your WordPress admin area (cool, right?).
In order to show your Fathom dashboard inside WordPress, your dashboard has to be shared.
Plugins
, Add New
Fathom Analytics
Install Now
, then Activate
Settings
, then Fathom Analytics
Site ID
field, type in your Site ID. If you don’t know your Site ID, log into Fathom, go to Settings
, click on your site name, and your Site ID will be located below the site nameFathom Share Password
field blank. If your dashboard is privately shared with a password, then type in the share password Note: site sharing must be enabled for you to view your dashboard within WordPressDisplay Analytics Menu Item
checkbox is selected.Save Changes
, and you'll find the Fathom Analytics
option in the menu on the left-hand side of your WordPress admin area.Following the above steps will automatically place the Fathom script into the header of every page on your WordPress site.
Download Fathom Analytics for WordPress here.
WordPress can sometimes be tricky because there are many moving parts (plugins, themes, extra code, etc). If you've installed our plugin, and followed the setup instructions above, and you still aren't seeing analytics data on your dashboard, it's likely due to one of these things:
To exclude our script from any of the above scenarios, add cdn.usefathom.com/script.js
to the exclusions.
Exclude Roles
.If you are seeing a 404 page when trying to view your dashboard from within WordPress, it's because you haven't either haven't set your dashboard to shared in your site's settings or you haven't entered the password into the Share password
field (see step 8 from the setup instructions above).
In the past, we've had issues with certain 3rd-party WordPress plugins caching our script, causing it to not function correctly. So, we've implemented a way for our script to avoid being cached and/or bundled by those plugins.
Here's the list of caching plugins from which our script is automatically excluded:
If you'd like to know which authors are getting the most traffic on your site, you can setup a custom event and add a snippet to your functions.php
theme file to track this. The code below will create a custom event per author (once each author has more than 1 pageview) and add an event completion each time a post (not pages) has been viewed, and organize each post view by author in your events:
function add_fathom_author_tracking() { if (is_single()) { $author_nickname = get_the_author_meta('nickname'); ?> <script> window.addEventListener('load', (event) => { fathom.trackEvent('Author: <?php echo esc_js($author_nickname); ?>'); }); </script> <?php }}add_action('wp_footer', 'add_fathom_author_tracking');
The above assumes you have access to edit the functions.php
file in your theme. If you're using a theme that doesn't allow editing that file, a plugin like Code Snippets can help (note that we cannot support plugins like this one, it's out of scope of our Fathom support). The above code does not track tag pages, category pages, archive pages, or non-single post pages. It will only track blog post pages with authors.
To learn about all the options we offer, read our advanced documentation here.
If you still have questions or require help with anything, please reach out to us and we'll happily get things sorted out for you.