...
Hashtags are used to pass data into Custom JS code, for example to call a native Share link function, and track which objectID does most sharing you can add a hashtag into Custom JS, like in the sample below:
Anchor |
---|
| #dataref_custom_jsjs# |
---|
| #dataref_custom_jsjs# |
---|
|
Info |
---|
const share = function(){ navigator.share({ title: 'mobsted.com', text: 'Check out mobsted platform', url: 'mobsted.com/?utm_referer=#Object:objid# }) .then(() => console.log('Successful share')) .catch((error) => console.log('Error sharing', error)); }
if (navigator.share) { document.getElementById("btnShare").onclick = share } else { document.getElementById("btnShare").onclick = () => alert('Sharing does not work'); |
...