Track clicks with site-supplied click strings

To track clicks using your own click-tracking server, you must include an attribute in the ad tags that specifies the URL for the server. The URL is accessed every time that a user clicks on an ad, enabling your server to count the click. This attribute is click=value, where value is the URL for the clicktracking server. The click-tracking URL should not contain any semicolons (;). If necessary, you can encode semicolons as the equivalent %3B characters.

The sample URL below shows an ad tag with an implemented click attribute:

http://ad.doubleclick.net/adi/N270.maheshdfasite/B3140338.2;dcopt=1_ist;click=http://site.com/cgi/clicktrack?clickid=12345&page=abcd&goto=;sz=0x0;ord=[timestamp]?

Additionally, the click= attribute of an ad tag can include a value that defines the number of times a tag escapes an exit URL. This provides flexibility for servers that expect either escaped or un-escaped URLs.

  • click= functions as current, searches for ? or & in ad tag and escapes exit URL once
  • click0= does not run the escape algorithm, leaving exit URL as is
  • clickN= escapes an exit URL N times, up to a maximum of three escapes.

The URL below shows an ad tag with a clickN= value of two escapes, before the ad tag is implemented:

http://ad.doubleclick.net/adi/N270.maheshdfasite/B3140338.2;dcopt=1_ist;click2=http://www.doubleclick.com/?;sz=0x0;ord=[timestamp]?

When a user clicks on the ad and the tag is implemented, the exit URL http://www.dartmotif.com is escaped twice. The ad tag then looks like the URL below:

http://ad.doubleclick.net/adi/N270.maheshdfasite/B3140338.2;dcopt=1_ist;click2=http://site.com/?http:%252F%252Fwww%252Edartmotif%252Ecom

Note: As a best practice, any URLs in a Google Marketing Platform ad tag should not exceed 1024 characters. This is a limitation of commonly used browsers. It is not a limitation of Google Marketing Platform.

Was this helpful?

How can we improve it?
false
Search
Clear search
Close search
Main menu
6394262300147674506
true
Search Help Center
true
true
true
true
true
74220
false
false