Why isn’t the [clickid] token being replaced?
There are two different scenarios where the `[clickid]` token might not get replaced with the actual click ID value. Either the token isn’t getting replaced in the Primary URL of your tracking link, or it’s not getting replaced in a link on page elsewhere in your funnel.
Let’s tackle both of these scenarios ...
The Primary URL
If you’ve used the `[clickid]` token in the Primary URL of your tracking link and it’s not being replaced when you click on the tracking link, that’s usually because the click is being flagged.
When a click is flagged, it doesn’t go through all the normal processing that a regular click would and that includes replacing the `[clickid]` token before the tracking link redirects to the Primary URL.
You can tell if a click is being flagged by clicking on the number in the FC column of your stats to see a list of clicks that have been flagged for this tracking link:
Most of the time when users ask why the `[clickid]` isn’t being replaced in the Primary URL, it’s because they’re using a VPN service and ClickMagick is detecting the VPN as server clicks—which they are—and server clicks are typically from bots which should be flagged.
If your VPN is being flagged, you can get it whitelisted by following the instructions in this FAQ:

|  | Why is my VPN being flagged in the stats?

Tip: If you’re clicking on the “preview” link in the settings area of a tracking link, that will also bypass normal click processing in some cases. When testing, it’s a Best Practice to copy the the link and paste it into a new browser window.
Passing [clickid] Through a Page
If you’re trying to pass the `[clickid]` through a link on a page and it’s not being replaced, the most common reason is that you haven’t added our special piece of JavaScript code to the page. This JavaScript snippet is what makes all the magick happen. You can get it here:

|  | Can I pass data to my affiliate links or autoresponder?

If you have added the JavaScript to your page, you need to make sure that it’s in the `((body))` section of the page and not in the `((head))` section. Also, the code needs to be at the very bottom of the `((body))` section or there’s no guarantee that the replacement will be made.
If you need help understanding where to add the JavaScript code, this FAQ will show you exactly how to do it for many of the popular Page Builders:

|  | How do I add tracking pixels or JavaScript code to [...]?

Note: For the techie types, the reason the JavaScript code needs to be at the very bottom of the page, just before the `((/body))`, tag is simply because the page needs to fully load before the code executes. The code does a global search and replace of the `[clickid]` token and if the page hasn’t fully loaded yet before the code executes, the code will only do a search and replace on what has been loaded to the point.