Use click trackers to track mailto and other non-HTTP calls

Use the steps below to track clicks on mailto: links or other non-http links. This involves adding a click counter and a new click tracker tag to your publisher's site.

  1. Find the mailto: or other non-http link on the site. (In these steps, we'll use a mailto: link as an example.

  2. Insert a click counter into the link tag, right after the URL. Here's the click counter code you need to insert:

    onClick="clickCounter()

    See the example below to make sure you insert this code in the right place.

    Example

    Say this is your mailto: link:

    <a href="mailto:bobsmith@bsmith.com">email Bob</a>

    Insert the click counter after the URL, like this:

    <a href="mailto:bobsmith@bsmith.com" onClick="clickCounter()>email Bob</a>
  3. Check your site for the piece of JavaScript code shown below. You'll probably see the code above the mailto: link on your site.

    <script language="javascript">
    function clickCounter(){
    var click = new Image (1,1);
    click.src =
    return false;
    }
    </script>
    I see the code
    Congratulations! In the steps below, you'll add a new click tracker tag (click tag) to this code. You can add this in place of any URL you see next to click.src = on the site.

     

    I don't see the code

    Insert this code yourself. You need it in order for the click counter to work. In the steps below, you'll add a click tracker tag (click tag) to the code.

  4. In Campaign Manager 360, create a click tracker (click New > Click tracker in your campaign view).

  5. Set up your click tracker. Note that the landing page you enter under Delivery properties will not affect your click tracker in this case. Enter any URL you want. Also, if the click tracker is dynamic, make sure its status is set to Active.

  6. Assign your click tracker to any placement and export tags for that placement.

    To export tags, click Tags > Download tags in your campaign and then click the Selected button. Check the checkbox next to the placement with your click tracker and click Download tags. Your export will include a click tag URL.

  7. Copy the click tag URL from your tag export. Insert the click tag into the JavaScript code on your publisher's site, right after click.src = . Example

    Say this is your click tag:

    http://ad.doubleclick.net/ddm/trackclk/N1234.123321121234.COM/B123123.12344321;dc_trk_aid=12344321;dc_trk_cid=12344321;ord=[timestamp]

    After you insert the click tag into the JavaScript code, your code should look like this: 

    <script language="javascript">
    function clickCounter(){
    var click = new Image (1,1);
    click.src = http://ad.doubleclick.net/ddm/trackclk/N1234.123321121234.COM/B123123.12344321;dc_trk_aid=12344321;dc_trk_cid=12344321;ord=[timestamp]
    return false;
    }
    </script>
Not every email system can handle JavaScript, so this method may not always work in HTML emails.

Was this helpful?

How can we improve it?

Need more help?

Try these next steps:

true
2024 Privacy Readiness guide

Prepare for a world without third-party cookies and unlock the AI
opportunity by adopting a durable measurement setup.
Start Today

Search
Clear search
Close search
Main menu
17595469345278483549
true
Search Help Center
true
true
true
true
true
69192
false
false