I'm working on a new version of my site, where a I store statistics with the core-module statistics (actually the site is on drupal8).
I'll migrate contents to drupal11 with migrate and it could be useful to migrate statistics to this module (at least totally views for nodes).

Could it be interesting?

Issue fork visitors-3497978

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

arrubiu created an issue. See original summary.

bluegeek9’s picture

Version: 3.0.x-dev » 8.x-2.x-dev

Visitors does allow for the statistics to be copied. It does not use the migrate sub-system.

The feature was added in a recent version of Vistiors, so that will not be of much help if you are on Drupal8.

The Statistics module has a migrate plugin. You could migrate the view count to Drupal11. Then use Visitors to copy the view count. That might be your best bet if you need a solution today.

Since there is an existing plugin, it would not be too hard to adopt it for Visitors.

bluegeek9’s picture

Assigned: Unassigned » bluegeek9
arrubiu’s picture

Sorry, I could not work on the site for many months..

If I want to import simply total view, can I simply execute a query in "visitors_counter" table and add a row for every entitd_id, adding only "total" value?

Thanks

bluegeek9 changed the visibility of the branch 8.x-2.x to hidden.

bluegeek9 changed the visibility of the branch 3.0.x to hidden.

  • bluegeek9 committed 9a4d67c7 on 8.x-2.x
    feat: #3497978 Import statistics with migrate
    
bluegeek9’s picture

Assigned: bluegeek9 » Unassigned
Status: Active » Fixed
//www.flaticon.com/free-icons/thank-you Thank you for your contribution! Your continued support makes this project sustainable.
There are multiple ways to show appreciation, including:
  • Triage issues and adding more context to existing issues.
  • Writing documentation or patches for this project.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • bluegeek9 committed e2878c03 on 3.0.x
    feat: #3497978 Import statistics with migrate