Click ID Placeholder

When you are using our JS tag with Auto-Tagging activated, you can make use of our Click ID placeholder in case you want to be in full control where exactly our click IDs should be placed.

This can also be helpful if you cloak your affiliate URLs and do not want to set up our Clickout API or use our WordPress plugin.

Requirements for Click ID Placehoder

How to set up the placeholder

  • Get the wecantrack JS Tag from the connected website
  • Make sure Auto-Tagging was activated (under advanced settings)
  • Add a new line within the JS tag, containing the placeholder (marked bold in the example on the right):
  • ‘click_id_placeholder’ : ‘{clickid}’
  • Make sure to add a comma (,) at the end of the previous row
  • You can use any value you want, so you can replace {clickid} with for example SUBID, just make sure you include the placeholder value you choose within the URLs where our JS tag should place the click ID.
				
					<script type="text/javascript">
(function(w, c, t, u) {
w._wct = w._wct || {}; w._wct = u;
var s = c.createElement(t);
s.type = 'text/javascript'; s.async = true; s.src = 'https://wct-1.com/wct.js?type=session';
var r = c.getElementsByTagName(t)[0];
r.parentNode.insertBefore(s, r);
}(window, document, 'script', {
'uid' : 'XxXXxx',
'google_tracking_id' : 'UA-12345678910-1',
'auto_tagging' : true,
'click_id_placeholder' : '{clickid}'
}));
</script>
				
			

How to use the placeholder

				
					https://www.awin1.com/cread.php?awinaffid=111111&awinmid=111111&clickref={clickid}
				
			
				
					https://redirecturl.com/awinexample?clickref={clickid}
				
			
				
					https://hop.clickbank.net/?affiliate=example&vendor=example&lp=0&tid={clickid}
				
			
				
					https://redirecturl.com/clickbankexample?tid={clickid}