Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


Code Block
languagejs
themeEclipse
linenumberstrue
const share = function(){
navigator.share({
title: 'mobsted.com',
text: 'Check out mobsted platform',
url: 'https://mobsted.com/?utm_referal_objectid=#Object:objid#',
})
.then(() => console.log('Successful share'))
.catch((error) => console.log('Error sharing', error));
}

if (navigator.share) {
share()
} else {
alert('Sharing does not work');
}


...

"?" denotes start of the URM mark

"utm_referal_objectid"  is just a name you give this UTM mark, any name here will do, as long as it has no spaces

...