Get Click ID
The click ID can be retrieved by function maxconv.getClickId()
.
The maxconv
object only available after the script is fully loaded, you can listen the maxconv:ready
event on window
object to make sure the maxconv
object is ready.
<script>
window.addEventListener("maxconv:ready", function () {
//maxconv is ready
//get current click id
var clickId = maxconv.getClickId();
// do your work with click id
// ...
});
</script>
<!-- import universal tracking script, must after above custom js code -->
<script defer src="//demode.mcattr.com/js/t.js"></script>