Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API for https://ipregistry.co/ #13

Open
kingfinux opened this issue Feb 8, 2022 · 13 comments
Open

API for https://ipregistry.co/ #13

kingfinux opened this issue Feb 8, 2022 · 13 comments
Labels
enhancement New feature or request

Comments

@kingfinux
Copy link

Hello,

thanks for the plugin. Would it be possible to also add the API from https://ipregistry.co/
They are way cheaper and have 100k free lookups

@Romain
Copy link
Owner

Romain commented Mar 10, 2022

Hi @kingfinux ,

I like the idea, unfortunately, I don't have time to do it for the moment.
If you feel like creating a PR, I'd be happy to consider it.

@Romain Romain added the enhancement New feature or request label Mar 10, 2022
@Caesar-DE
Copy link

@kingfinux
@Romain
I was able to make this plugin work with Matomo 5.1.0, and I have added two options:

  • Your IPRegistry.co access token
  • Default service
    in the general settings.
    I use the plugin with IPRegistry every day and it works. If you would like to test the plugin, I can push it to the repository.

@kingfinux
Copy link
Author

@zaidan1
I'd love to test it. Thank you!

@Caesar-DE
Copy link

@kingfinux
https://github.com/zaidan1/Matomo-IP-to-Company
This fork is under development. Please make a backup of your Matomo installation before testing this plugin.

@Caesar-DE
Copy link

@kingfinux
And do you have any problem or suggestion?

@kingfinux
Copy link
Author

@zaidan1
I didn't get to test it yet. I'll try to give you a reply within the next 2 weeks.

@coholm01
Copy link

@zaidan1 I tried to test the plugin today, but the installation failed:
The package could not be installed. No functional plugins were found.

Plugin installation failed.

@Caesar-DE
Copy link

@coholm01
Thank you for your feedback!

It seems like the plugin installation failed because the files might not have been zipped correctly.
Please make sure that when creating the ZIP archive, the plugin files are directly included without any subfolders.
If you are using Windows to create the ZIP, I recommend using 7zip to ensure the correct structure.

Here are the steps to ensure the plugin is installed properly:

  • You can download the ZIP file from the repository: https://github.com/zaidan1/Matomo-IP-to-Company
    However, if you prefer to zip the plugin yourself, navigate into the plugin's directory and select all files and folders, then zip them directly without any parent folder.

Manual Installation via GUI:

  • In Matomo's admin dashboard, navigate to Settings > Plugins.
  • Click on the Upload a Plugin button and upload the ZIP file.
  • After uploading, Matomo should automatically install the plugin.
  • Once installed, find the plugin in the Plugins section and activate it.

Please let me know if you need further assistance!

Best regards

@coholm01
Copy link

Sorry, I still can't get it to install. I tried zipping it myself and using the zip file downloaded from github. Installation fails

@Caesar-DE
Copy link

@coholm01
I’m sorry to hear that it’s still not working. Could you please let me know which version of Matomo you’re using? This will help me troubleshoot the issue further.

@coholm01
Copy link

I'm using WP 6.5.5 and Matomo 5.1.2

@Caesar-DE
Copy link

@coholm01
custom Matomo plugins do not work with Matomo for WordPress.

Matomo for WordPress is a self-contained version of Matomo that runs within the WordPress environment, and it does not support custom plugins like a standalone Matomo installation. If you need to use custom plugins, you will need a standalone Matomo installation (either on your own server or through Matomo Cloud).

If you're trying to upload or install a custom plugin, it will only work on a standalone Matomo instance, not the WordPress version.
If you would like to make the plugin compatible with Matomo for WordPress, I recommend creating a Feature Request her : https://github.com/zaidan1/Matomo-IP-to-Company/discussions/categories/feature-requests
We could also consider extending the plugin specifically for WordPress, which would require some adjustments, since the WordPress version of Matomo works differently than the standalone version.

Let me know if you need any guidance on how to proceed!

@coholm01
Copy link

Thanks for the info. I added a feature request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants