Global value for all websites

I want on my website something like a click counter, when somebody clicks a button, the value increases, etc. It should be a preset for more complex operations later. This is my code:

import wixData from ‘wix-data’;
// Besuchen Sie für die komplette API-Dokumentation einschließlich Codebeispielen Velo API Reference - Wix.com
var wert = 100 ;

let toSave = {
“title”: “Mr.”,
“first_name”: “John”,
“last_name”: “Doe”
};

wixData.save(“myCollection”, toSave)
.then( (results) => {
let item = results; //see item below
} )
. catch ( (err) => {
let errorMsg = err;
} );

$w.onReady( function () {

//$w(“#text3”).text =" “+ $w(”#dataset1").getItems(1).[“value”];

$w(“#button1”).onClick( (event) => {
// var wert = Number(wixData.get(‘Variablen’, “00001”).Wert);
// var wert = 100;
//wert = Number($w(“#dataset1”).getCurrentItem( )[“value”]) +100;
wert=wert+100;

$w(“#dataset1”).setFieldValue(“value”, " “+wert);
$w(”#dataset1").save();

$w(“#text3”).text =" “+ $w(”#dataset1").getCurrentItem()[“value”]+" “+$w(”#dataset1").getTotalCount( )+" “+wixData.get(“myCollection”, “00001”)[”_id"];
let toInsert = {
“_id”: “00001”,
“Wert”: wert,

};

wixData.save(‘Variablen’,toInsert);

} );

});

So, first i tried it with the wixData, but i can’t save the value or i can’t get the value, then i tried it with wixDataset but then i just have a local value, that is destroyed, when i load the website with an other browser, how can i set and get a value, set is saved on the server and for every client the same and the client can change it with clicking the button? Sorry for the bad english.
Best regards Just Kauser. (I am not a programmer, my skills are very basic and i have no skills in html/Javascript normally i use C#)

Ok, i i fixed it and now it works for me as Admin, but just in preview mode, when i test it with another browser the button dont work: What should i change to get it working?