Difference between revisions of "Deep Linking"
TMMStephenY (talk | contribs) m |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 23: | Line 23: | ||
<pre> | <pre> | ||
http://join.example.com/track/MjozOjE/?extra_var=1234 | http://join.example.com/track/MjozOjE/?extra_var=1234 | ||
+ | </pre> | ||
+ | |||
+ | Affiliates can also link to any page and manipulate the query string. For example, the affiliate can pass the variable ''extra_var=1234'' to /join by appending a question mark and the variable assignment to their linkcode: | ||
+ | <pre> | ||
+ | http://join.example.com/track/MjozOjE/join?extra_var=1234 | ||
</pre> | </pre> | ||
Line 48: | Line 53: | ||
And instead it will append path=tour.html to the URL and will not add the /tour1.html to the path. | And instead it will append path=tour.html to the URL and will not add the /tour1.html to the path. | ||
+ | |||
+ | == Display Joinlinks for AdTools == | ||
+ | |||
+ | To add a direct join page link code internally -- available for an affiliate who visits the link codes page -- You will need to do the following: | ||
+ | |||
+ | Make a slight modification to a template 'function_display_adtools'. You can find this template by going into the skins and templates admin and clicking the | ||
+ | "Edit Templates" action icon for the desired skin. On the next page scroll down until you find 'function_list_linkcodes' and click on edit. | ||
+ | |||
+ | Once in this template, look for the comment: | ||
+ | <pre> {* Display Linkcode *} </pre> | ||
+ | |||
+ | This is the block NATS uses to display the linkcode. The actual line that displays the linkcode is this: | ||
+ | <pre> <td abbr="{$tourlink[0][0][0]}" class="tab-column col_1 left-align"><input type="text" value='{if $usr.unencoded >= 10}<a href="{$tourlink[0][0][0]}">{$sites[$siteid]}</a>{else}{$tourlink[0][0][0]}{/if}' class="display-link-text"></td> </pre> | ||
+ | |||
+ | What you can do is just add a /join after the variable {$tourlink[0][0][0]}. So if you do that, the above block will then look like this: | ||
+ | <pre> <td abbr="{$tourlink[0][0][0]}" class="tab-column col_1 left-align"><input type="text" value='{if $usr.unencoded >= 10}<a href="{$tourlink[0][0][0]}">{$sites[$siteid]}</a>{else}{$tourlink[0][0][0]}/join{/if}' class="display-link-text"></td> </pre> | ||
+ | |||
+ | This will replace your normal linkcode with one that has /join at the end. You can also modify this block to be a new row that includes both the normal linkcode and the deeplinked linkcode. | ||
[[Category:Also NATS4 Article]] | [[Category:Also NATS4 Article]] | ||
[[Category:NATS4 Affiliate Information]] | [[Category:NATS4 Affiliate Information]] |
Latest revision as of 14:15, 1 July 2023
NATS 3
|
---|
Affiliates can link directly to a pre-join page by appending /join to a linkcode. For example:
http://linkdomain/track/MjozOjE/join
Affiliates can link to any other page on your site by appending a forward-slash and a relative URL to the link code. For example, using the following linkcode to link to http://example.com/tour1.html:
http://join.example.com/track/MjozOjE/tour1.html
Affiliates can manipulate the query string too. For example, the affiliate can pass the variable, extra_var=1234 to a tour by appending a question mark and the variable assignment to their linkcode:
http://join.example.com/track/MjozOjE/?extra_var=1234
Affiliates can also link to any page and manipulate the query string. For example, the affiliate can pass the variable extra_var=1234 to /join by appending a question mark and the variable assignment to their linkcode:
http://join.example.com/track/MjozOjE/join?extra_var=1234
If you do not wish to have deep linking affect the path being used by the destination site, you can add a '?' to the end of the URL for the site. For example, if you have a site or tour that points to:
http://example.com/
And then if someone uses the following
http://join.example.com/track/MjozOjE/tour1.html
And you do not want http://example.com/tour1.html to be the destination. You would setup your URL for the tour as:
http://example.com/?
And instead it will append path=tour.html to the URL and will not add the /tour1.html to the path.
Display Joinlinks for AdTools
To add a direct join page link code internally -- available for an affiliate who visits the link codes page -- You will need to do the following:
Make a slight modification to a template 'function_display_adtools'. You can find this template by going into the skins and templates admin and clicking the "Edit Templates" action icon for the desired skin. On the next page scroll down until you find 'function_list_linkcodes' and click on edit.
Once in this template, look for the comment:
{* Display Linkcode *}
This is the block NATS uses to display the linkcode. The actual line that displays the linkcode is this:
<td abbr="{$tourlink[0][0][0]}" class="tab-column col_1 left-align"><input type="text" value='{if $usr.unencoded >= 10}<a href="{$tourlink[0][0][0]}">{$sites[$siteid]}</a>{else}{$tourlink[0][0][0]}{/if}' class="display-link-text"></td>
What you can do is just add a /join after the variable {$tourlink[0][0][0]}. So if you do that, the above block will then look like this:
<td abbr="{$tourlink[0][0][0]}" class="tab-column col_1 left-align"><input type="text" value='{if $usr.unencoded >= 10}<a href="{$tourlink[0][0][0]}">{$sites[$siteid]}</a>{else}{$tourlink[0][0][0]}/join{/if}' class="display-link-text"></td>
This will replace your normal linkcode with one that has /join at the end. You can also modify this block to be a new row that includes both the normal linkcode and the deeplinked linkcode.