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
Merge data from two sites into one #7650
Comments
I support this request. Therefore I want to merge the sites with id 1 and 2 in one single side with only one id. Thanks |
I do support this request also. |
This would be useful. I accidently created a new website in Piwik and now the data of half a year is in the wrong website. A simple SQL script to merge the data together would be usefull too. |
I also support this request. We went from a "beta" site to a "production" site but our marketing folks need data that goes back through the "beta" site's data, and the merging of the two sites would do exactly that for us. |
I am extending the SiteMigration plugin to allow doing this. I hope to get this feature this week done. |
Oh, that would be very useful! I just ran into the situation where I moved my websites from one server to another, initiated the tracking on the new server, and made the mistake to migrate the data from the old server afterwards. Although the two configurations were quite identical (same domains, same ID), migrating data of one of the two websites with the SiteMigration plugin created a third website on the new server, instead of merging with the corresponding ID. Thank you Undergrounder! |
Great change! SiteMigration plugin is quite slow with large websites and creates a new idsite for every date-from/date-to range being uploaded. This would allow multiple uploads to run in parallel. |
@Undergrounder is that now supported? How would i do it? |
No, sorry. My old company switched to Google analytics and the implementation was't yet complete. |
Are there any updates on this? We at @ZIMK would greatly appreciate such a feature. |
Just have the same problem, that the plugin wp-piwik created a new ID. So another +1 for this year! |
+1 |
+1 |
@Kornexl could you elaborate on why this feature is unwanted? |
Would like to know the reason for closing also. Thanks. |
Sorry it was closed by mistake. Let's re-open. Btw we have released a new slightly related plugin which lets you migrate one website from one instance to another: http://plugins.matomo.org/Migration |
This issue has become more important since the launch of the Google Analytics Importer plugin. If you choose to import older data from Google after you already has the same website enabled in Matomo, you end up with two set of data. |
Once you set up and use Google Analytics Importer Plugin, you end up with two sites. The one you have set up with Matomo (its tracker includes the website ID), and the other that's created from Google Analytics continued import (different website ID). In case you continue to get analytics from both Google and Matomo, merging them would have to deal with the issue of double records - same visitors tracking from both. It needs some scripting for this. In addition some metrics differ, so how would these be handled? Adding the past data from GA to Matomo's website seems a better option if you want to have a single website for tracking, and want to fill in the past gaps (e.g. if you've been using GA for years and switched to Matomo at some point). I think the migration plugin, mentioned earlier may be useful here. |
+1 for merging two IDs together |
Just wanted to weigh in here that I also have the same problem. |
@xavez @simardcasanova please only add 👍 to the initial issue! This way the maintainers can easily see that the issue affects many people. Writing a comment with "+1" don't add any useful information and everyone in this thread get's an e-mail about it. That wastes peoples time and it will take longer until issues get fixed. |
I have same issue. My both websites on same installation of matomo. |
Can anyone comment as to if there is a manual method for copying historical data from one site to another? I am not averse to copying the historical and deleting the then redundant site if there is a way? |
@jwest75674 sorry I'm not aware of any manual way so far. |
I'm sorry @davidak but I couldn't find any mention anywhere about not doing this. You cannot expect people to comply with rules that are never specified. So speaking about "useful information", I would then suggest to update the README to explain more clearly how people are expected to +1 feature requests 🙂 |
As @jwest75674 mentioned for a manual method for copying, I second this with perhaps a simpler suggestion for implementation while we iron out the many kinks of undertaking such an effort. What if we try just overwriting overlapping data for the same dates first, since there could be some users (myself included) who only ran the two datasets in parallel for a short time. One simple way would be to set a cut-off date. Of course a huge CAVEAT in red text's gotta be shown before confirming the merging and losing partial data :P This way, we can alpha test the feature before fully implementing it by handling overlaps, goals and custom dimensions. Also saves us time and effort from figuring out all the technical details while having something functional in the meantime. |
Hii,
There is one method but for that you have to take manual efforts, that
efforts can be successful if you have hosted matomo on your server, we
need access of mysql of matomo.
Create your new website, which will give you your siteId, if you want to
merge site A to site B(newly created site) write update queries on site for
your near about all mysql tables
Update table set siteId=siteId of B where siteId =site id of A
…On Wed, 23 Dec, 2020, 10:32 PM Joshua West, ***@***.***> wrote:
Can anyone comment as to if there is a manual method for *copying*
historical data from one site to another? I am not averse to copying the
historical and deleting the then redundant site if there is a way?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#7650 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHBSDOJTTEGHL7M7V6MTDXTSWIPCXANCNFSM4A7UDJ5Q>
.
|
Another really simple and yet effective algorithm would be to look at which site has a higher amount of data (say, higher number of visits) and use that dataset for that day. |
Hi, |
Hi, is there a way to copy a date range of data into existing matomo website |
In our use case we have one site (ID 13) containing data from 2014 until now (imported from Analytics) and another site (ID 9) containing current Matomo tracking data starting in May 2022. I decided to move data until April from site 13 to site 9 to avoid overlapping data and simplify the transfer. I have successfully merged my sites with this SQL statement:
Attention!! Backup your database before using this! |
After updating ids in archive_numeric and archive_blob don't forget to edit ts_created field in site table: stats older than the date reported in this field are not shown |
This issue has been mentioned on Matomo forums. There might be relevant details there: https://forum.matomo.org/t/restart-google-analytics-import-problem/46851/8 |
This issue has been mentioned on Matomo forums. There might be relevant details there: https://forum.matomo.org/t/tutorial-for-merge-2-site-ids-data-working-method/50027/4 |
I would like to merge the data from two sites into one of these
(id 5 and id 15 to 15)
The text was updated successfully, but these errors were encountered: