How to backup data in Google analytics? - ionic-framework

I am using google analytics in my project (ionic). I am tracking user selections in each page and the final recommendations and those are tracked and sent to google analytics. Those data is getting tracked properly. But now I want to backup those data in the https://analytics.google.com/ dashboard. I already created a backup view (admin > view > view settings > copy view). But already tracked data (events, event labels) are not getting copied. So I need to know a way to get a backup with existing tracked data.

You cannot create a backup view by copying it from another.
Views start populating from the moment they are created and historical data will not be displayed. For this reason, at least 2 views are usually created initially so that you always have a backup view.

Related

how to edit or copy data loaded renames of my own published sheet/project in qliksense

This is the first time we decided to use QlikSense. So I am a newbie.
I have developed a sheet for a table report.
I loaded a lot of data and I made a lot of renames on the fields when they are loaded from the database to look pretier for searching in the Analytics tab.
In order to show my progress to my boss I had to publish my work. He wanted to use another type of user. So I published the App, but I lost the ability to edit anything especially the data loading. Unfortunately that means I have to restart my work.
Any suggestions on how to restore my progress?
(It sounds to be an off-topic question probably...because there is no code in here)

Is there any way changing Tableau datasource's link with recreating dashboard?

Hi our company requires us to change databases to other server, so we need rebuild Tableau dashboard using new datasource (same table but on different platform).
Is there any way I can just only edit and update the datasource link in Tableau, don't need to rebuild the dashboard?
You can replace data source. Connect to the new data source. The go Data > Replace Data Source. See the docs for more details. https://onlinehelp.tableau.com/current/pro/desktop/en-us/connect_basic_replace.html

Switch Data Source for Tableau Sheet

Given that Tableau apparently refuses to allow proper editing of the Data Source I have resorted to creating a new one from scratch.
The screenshot shows the situation: the old Data Source "NY FIPS 5" is still being attached to the Worksheet.
The intention is to use the new DataSource usCountyCrimeSummary : however it is unclear ( to me at least) how to disconnect the old Data Source from the existing sheet and then attach the new DataSource to that sheet.
The big surprise was when clicking on Edit Connection it did not allow selecting a different Data Source : instead it went into the properties of the existing Data Source. So then how to switch the Data Source?
One thing to note is that switching data sources will change for all sheets connected to that data source. If you only need to change the data source for one sheet out of many, copy that sheet to a new workbook, change it there, then copy it back.
Perhaps your broken data connection needs to be fixed first, but to change a data source go Data > Replace Data Source

App Crashed due to change in datamodel

My app is crashing when ever i change the data model. Inorder to run it again i should delete the app from simulator and the run it. Instead of doing this is there any means that we can run the app without deleting whenever we change the datamodel. i want the previous data to be used. Thanks in advance
The answer is a bit tricky but this always works for me. This is for a clean installation of a new compatible .sqlite file, not a migration!
launch simulator, delete the app and the data (the popup after you delete the app).
quit simulator
open X-Code, after making any edits to your data model
if needed update the datamodel version:
Editor > Add Model Version...
set your prefs in the dialog that appears (counting up is preferable)
click on the {appname}.xcdatamodeld then in the far right pane
click the left icon of the 3 icons on top of the far right column
under Versioned Core Data Model select the one you just created
delete the {*appname*}.sqlite file (or back it up, remove it from project folder, and delete reference)
clean the app (Product > Clean)
Run the app in a simulator (for this tutorial I will assume 4.2)
While the simulator is running, in a Finder window, navigate to:
{*home*} > Library > Application Support > iPhone Simulator > 4.2 > Applications > {*random identifier*} > Documents > {*appname*}.sqlite
Copy this file to another location
Stop running your app in X-Code
Drag and drop the {appname}.sqlite file into the files list in X-Code.
In the dialog that pops up, make sure the copy to folder checkbox, is checked.
Product > Clean
Then run the app in the simulator again
Now you should have a working sqlite file!
Cheers,
Robert
Basically you need to be able to migrate existing data to the new schema -- read up on Core Data Versioning and Data Migration.
The file being used for NSPersistentStore can only correspond to one version of a Data Model at a time. You need to either do a migration of the data to the new version or tell your application to delete the persistent store file each time you start (for development purposes only).
Just saw that you want to keep your old data. You can try serializing your data to a NSDictionary and then saving it to a plist/json/xml file. Then, when your program starts you can delete the old NSPersistantStore file and create a new one. Import the data from the plist/json/xml file to the new empty persistent store file.
Remember, in order for light migration to work you need to keep the previous version of the data model in addition to the new one. Core data needs to know both models, past and present, in order to perform a migration.
I have the same problem and I haven't fixed it yet. I don't care yet. While my app is in development I just clear the data every time I change the model.
I think to use Lightweight Migration, you still have to make a copy of your data model for every version of the data model you want to migrate from or to. It's lightweight, but not lightweight enough for when you're changing your data model frequently in early development.
I suggest you catch the exception it throws when it can't load the data, and have your program automatically delete the data in that case and recreate it in an initial state. It's the same as the ignore the problem answer but you don't have to manually delete the data every time. You probably ought to leave that code in for production, as a backup in case migration doesn't work for some reason, but maybe you ought to ask the user if they want to delete the data.

Database + Sync (Iphone app)

How can I flush my sqlite database in my application when I click on a button?
I already have a database inside my app, when I click on a button it add some data into it.
I wanna know how to fluch the database after I click the button or maybe restart the application automatically.
Thanks,
Ok I find what I was looking for.
Don't really need to flush the database, the only things I had to do is to copy my database from the bundle to the document directory, because the database in the bundle is Read only.
Make a Copy of it allow to Write/Read access.
Add/Delete/Update data can be executed without problem after that.