Documentation
¶
Overview ¶
Package clicktoken is the click token: an opaque, signed token the click redirect adds to links to a publisher's own sites (stores, as `rc`; and the domains phase 6's conversion API lists, as `rc_click`), so an order or a conversion arriving later can be credited to the email that brought the click. It names the message (so the contact and the campaign or the automation step) and when the click happened; it carries nothing in clear and can't be forged (internal/linktoken's HMAC).
Index ¶
Constants ¶
const ConversionParam = "rc_click"
ConversionParam carries it on links to the conversion API's domains (phase 6).
const Kind linktoken.Kind = 200
Kind is the token's linktoken kind (X20's range, 200–209).
const Param = "rc"
Param is the query parameter that carries the token on links to a store (phase 7).
Variables ¶
var ErrInvalid = errors.New("clicktoken: invalid token")
ErrInvalid is a token that wasn't signed by this instance.