Title: friendlyfire's Replies | WordPress.org

---

# friendlyfire

  [  ](https://wordpress.org/support/users/friendlyfire/)

 *   [Profile](https://wordpress.org/support/users/friendlyfire/)
 *   [Topics Started](https://wordpress.org/support/users/friendlyfire/topics/)
 *   [Replies Created](https://wordpress.org/support/users/friendlyfire/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/friendlyfire/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/friendlyfire/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/friendlyfire/engagements/)
 *   [Favorites](https://wordpress.org/support/users/friendlyfire/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/users/friendlyfire/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/friendlyfire/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Encrypt] ERROR: Registration key is already in use](https://wordpress.org/support/topic/error-registration-key-is-already-in-use/)
 *  [friendlyfire](https://wordpress.org/support/users/friendlyfire/)
 * (@friendlyfire)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/error-registration-key-is-already-in-use/#post-9853207)
 * same issue here. Let’s Encrypt: Registration key is already in use
 * I used the dangerzone to reset the plugin since I was havning trouble reissuing
   the certs. Now I’m getting the error “Let’s Encrypt: Registration key is already
   in use” when I try to register again. I tried to delete the account folder from
   the server but I’m still getting this.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Connect Matomo - Analytics Dashboard for WordPress] any Hooks fired after site added in piwik?](https://wordpress.org/support/topic/any-hooks-fired-after-site-added-in-piwik/)
 *  Thread Starter [friendlyfire](https://wordpress.org/support/users/friendlyfire/)
 * (@friendlyfire)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/any-hooks-fired-after-site-added-in-piwik/#post-8504469)
 * Also, this hook will run regardless if the user has logged in and viewed the 
   dashboard, right?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Connect Matomo - Analytics Dashboard for WordPress] any Hooks fired after site added in piwik?](https://wordpress.org/support/topic/any-hooks-fired-after-site-added-in-piwik/)
 *  Thread Starter [friendlyfire](https://wordpress.org/support/users/friendlyfire/)
 * (@friendlyfire)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/any-hooks-fired-after-site-added-in-piwik/#post-8504298)
 * Hey, just donated some cash to help out with this. Hope it helps!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Connect Matomo - Analytics Dashboard for WordPress] any Hooks fired after site added in piwik?](https://wordpress.org/support/topic/any-hooks-fired-after-site-added-in-piwik/)
 *  Thread Starter [friendlyfire](https://wordpress.org/support/users/friendlyfire/)
 * (@friendlyfire)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/any-hooks-fired-after-site-added-in-piwik/#post-8494498)
 * I’ve tried echoing something out on both
 * `add_action('wp-piwik_site_added', 'your_code');`
 * and
 * `add_action('wp-piwik_site_created', 'your_code');`
 * And neither one seem to firing. When I try the same code on another hook, I see
   the echo.
 * I checked and I do have the latest version and double checked that the newly 
   added do_action is in the WP_Piwik.php file.
 *  What am I missing?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Connect Matomo - Analytics Dashboard for WordPress] any Hooks fired after site added in piwik?](https://wordpress.org/support/topic/any-hooks-fired-after-site-added-in-piwik/)
 *  Thread Starter [friendlyfire](https://wordpress.org/support/users/friendlyfire/)
 * (@friendlyfire)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/any-hooks-fired-after-site-added-in-piwik/#post-8494425)
 * Also, per the code, it’s wp-piwik_site_created, yes?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Connect Matomo - Analytics Dashboard for WordPress] any Hooks fired after site added in piwik?](https://wordpress.org/support/topic/any-hooks-fired-after-site-added-in-piwik/)
 *  Thread Starter [friendlyfire](https://wordpress.org/support/users/friendlyfire/)
 * (@friendlyfire)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/any-hooks-fired-after-site-added-in-piwik/#post-8494342)
 * Awesome! Do I have access to the $blog_id var or any other vars via this hook?
   all I really need is access to the blog id that was created.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Connect Matomo - Analytics Dashboard for WordPress] any Hooks fired after site added in piwik?](https://wordpress.org/support/topic/any-hooks-fired-after-site-added-in-piwik/)
 *  Thread Starter [friendlyfire](https://wordpress.org/support/users/friendlyfire/)
 * (@friendlyfire)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/any-hooks-fired-after-site-added-in-piwik/#post-8464684)
 * We could do blog visit but since we have a new site creation routine, we’d love
   the option of firing on new blog creation – if possible?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Connect Matomo - Analytics Dashboard for WordPress] question about how wp-piwik is authorizing users](https://wordpress.org/support/topic/question-about-how-wp-piwik-is-authorizing-users/)
 *  Thread Starter [friendlyfire](https://wordpress.org/support/users/friendlyfire/)
 * (@friendlyfire)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/question-about-how-wp-piwik-is-authorizing-users/#post-7508042)
 * I can’t believe i just wrote all that. It’s handled via the auth token. DUH!
 * Close this out and sorry!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Connect Matomo - Analytics Dashboard for WordPress] how can I get the current wp-piwik site id?](https://wordpress.org/support/topic/how-can-i-get-the-current-wp-piwik-site-id/)
 *  Thread Starter [friendlyfire](https://wordpress.org/support/users/friendlyfire/)
 * (@friendlyfire)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/how-can-i-get-the-current-wp-piwik-site-id/#post-7224734)
 * Also, could I just change the db’s site_id manually to match the one in the wp-
   admin for now until we get it sorted out? Would that cause any issues? I’d like
   to start testing some work that requires the id.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Connect Matomo - Analytics Dashboard for WordPress] how can I get the current wp-piwik site id?](https://wordpress.org/support/topic/how-can-i-get-the-current-wp-piwik-site-id/)
 *  Thread Starter [friendlyfire](https://wordpress.org/support/users/friendlyfire/)
 * (@friendlyfire)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/how-can-i-get-the-current-wp-piwik-site-id/#post-7224733)
 * OK, I set all that up but now I’m really confused.
 * on my local install, when I alert the site_id from javascript, I keep seeing 
   the id of ‘1’. This happens regardless of the site I’m looking at.
 * When I go to the database and look at wp_options, I see “wp-piwik-site_id” is
   set to 1 for every site on the network.
 * Just to test it again, I made a completely new install with piwik and multisite
   with wp-piwik installed as the “central approach”. I set up a bunch of sites ,
   configured them and made sure to log visits and checked to make sure they show
   up in piwik (they all do).
 * In most cases, the site_id is totally blank in the db even though it’s showing
   in the wp-admin panel when I look at the sites under wp-piwik.
 * **For example: **
    site 35’s db: [https://drive.google.com/open?id=0B-r5llGpXi8xWVJXdHFuczRuYzA](https://drive.google.com/open?id=0B-r5llGpXi8xWVJXdHFuczRuYzA)
   site 35 in the admin: [https://drive.google.com/open?id=0B-r5llGpXi8xeGZfbjJZZmJiRTg](https://drive.google.com/open?id=0B-r5llGpXi8xeGZfbjJZZmJiRTg)
 * The really weird part is in some other site’s wp_options “wp-piwik-site_id”, 
   I see the number 2 (similar to the local install problem above).
 * Any help is appreciated. This one completely has me stumped.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Remote Media Libraries] Still active?](https://wordpress.org/support/topic/still-active-5/)
 *  Thread Starter [friendlyfire](https://wordpress.org/support/users/friendlyfire/)
 * (@friendlyfire)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/still-active-5/#post-7306790)
 * Hey, just checking back. How’s the progress on this? Want to upgrade to pro but
   need to be sure our version of the builder is supported.
 * Lmk and looking forward to it.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Broadcast] not recognizing new site on network](https://wordpress.org/support/topic/not-recognizing-new-site-on-network/)
 *  Thread Starter [friendlyfire](https://wordpress.org/support/users/friendlyfire/)
 * (@friendlyfire)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/not-recognizing-new-site-on-network/#post-7412796)
 * OK, actually it just randomly started working. Not sure what I did but it was
   magic. Thanks for the quick response.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Broadcast] not recognizing new site on network](https://wordpress.org/support/topic/not-recognizing-new-site-on-network/)
 *  Thread Starter [friendlyfire](https://wordpress.org/support/users/friendlyfire/)
 * (@friendlyfire)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/not-recognizing-new-site-on-network/#post-7412794)
 * I’m a super admin so I know I have proper access. I just updated everything (
   had to renew my license) and it’s still not working. Super weird.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Broadcast] not recognizing new site on network](https://wordpress.org/support/topic/not-recognizing-new-site-on-network/)
 *  Thread Starter [friendlyfire](https://wordpress.org/support/users/friendlyfire/)
 * (@friendlyfire)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/not-recognizing-new-site-on-network/#post-7412790)
 * I thought about that and gave it a try. Still no luck.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Connect Matomo - Analytics Dashboard for WordPress] how can I get the current wp-piwik site id?](https://wordpress.org/support/topic/how-can-i-get-the-current-wp-piwik-site-id/)
 *  Thread Starter [friendlyfire](https://wordpress.org/support/users/friendlyfire/)
 * (@friendlyfire)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/how-can-i-get-the-current-wp-piwik-site-id/#post-7224729)
 * update: I tried this too:
 * `$piwik_site_id = $GLOBALS ['wp-piwik']->settings->getOption( 'site_id' );`
 * but got :
 * >  Cannot access private property WP_Piwik::$settings

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/users/friendlyfire/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/friendlyfire/replies/page/2/?output_format=md)