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.
-
Find the
mailto:
or other non-http link on the site. (In these steps, we'll use amailto:
link as an example. -
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.
ExampleSay 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> -
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">I see the code
function clickCounter(){
var click = new Image (1,1);
click.src =
return false;
}
</script>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 toI don't see the codeclick.src
= on the site.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.
-
In Campaign Manager 360, create a click tracker (click New > Click tracker in your campaign view).
-
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.
-
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.
- 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 = .
ExampleSay 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>