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. You will then need to place the subid and Click ID placeholder in the redirect URL and forward the parameter and value to the affiliate URL during the redirect process.

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 (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-2.com/wct.js?type=session';
    var r = c.getElementsByTagName(t)[0];
    r.parentNode.insertBefore(s, r);
  }(window, document, 'script', {
    'uid' : 'XxXXxx',
    '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}