Link Rewriting and Zephyr

If you create a link that contains Zephyr code as part of the link, such as

http://example.com/path?email={email}

The link is bundled together as a single distinct rewritten link. Therefore you can track the performance of that link across users, rather than have it render and track as thousands or millions of different individual links.

When that link containing Zephyr code is clicked, it is evaluated in its own scope, outside of the regular HTML body. The Setup section will be run before the link is evaluated, so any variables that have been computed in that Setup section may be included.

But avoid the use of variables that are locally scoped to the HTML body as part of the query string, as they will not be included in the scope of the link. So the below won't work:

{myvar = 'test'}
<a href="http://example.com/path?myvar={myvar}">my link</a>

We may be looking at revising this behavior in the future, so please give us your feedback.

 
/var/www/docs.sailthru.com/htdocs/data/pages/syntax/link-rewriting.txt · Last modified: 2012/04/27 14:25 by Danny
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki