diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-12-27 04:17:59 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-12-27 04:17:59 +0400 |
commit | b839389a0e3de28c780998a46bab567c59d42627 (patch) | |
tree | 8d3112e7373f227c1425a42bf1ec69fa5f685133 | |
parent | 1894442934c0061e03d8e39a0748dbb0fc8c7620 (diff) |
Removing extra BR from the documentation
-rw-r--r-- | plugins/SitesManager/templates/displayAlternativeTagsHelp.twig | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/plugins/SitesManager/templates/displayAlternativeTagsHelp.twig b/plugins/SitesManager/templates/displayAlternativeTagsHelp.twig index 758a4bec06..ed1ae6d387 100644 --- a/plugins/SitesManager/templates/displayAlternativeTagsHelp.twig +++ b/plugins/SitesManager/templates/displayAlternativeTagsHelp.twig @@ -14,9 +14,9 @@ The Image Tracker code can be used when Javascript is not allowed. such as search keywords, referrers, screen resolutions, browser plugins and page titles. </p> <code> - <!-- Piwik Image Tracker --><br/> - <img src="{% if piwikUrlRequest is defined %}{{ piwikUrlRequest }}{% else %}{{ piwikUrl }}{% endif %}piwik.php?idsite={{ idSite }}&amp;rec=1" style="border:0" alt="" /><br/> - <!-- End Piwik --><br/> + <!-- Piwik Image Tracker --> + <img src="{% if piwikUrlRequest is defined %}{{ piwikUrlRequest }}{% else %}{{ piwikUrl }}{% endif %}piwik.php?idsite={{ idSite }}&amp;rec=1" style="border:0" alt="" /> + <!-- End Piwik --> </code> <br/> The following parameters can also be passed to the image URL: @@ -52,10 +52,10 @@ It is also possible to call the Piwik Tracking API using your favorite programmi </li> <li>Copy the following code, then paste it onto every page you want to track. <code> - <?php <br/> - // -- Piwik Tracking API init -- <br/> - require_once "/path/to/PiwikTracker.php";<br/> - PiwikTracker::$URL = '{% if piwikUrlRequest is defined %}{{ piwikUrlRequest }}{% else %}{{ piwikUrl }}{% endif %}';<br/> + <?php + // -- Piwik Tracking API init -- + require_once "/path/to/PiwikTracker.php"; + PiwikTracker::$URL = '{% if piwikUrlRequest is defined %}{{ piwikUrlRequest }}{% else %}{{ piwikUrl }}{% endif %}'; ?> </code> </li> @@ -68,14 +68,14 @@ It is also possible to call the Piwik Tracking API using your favorite programmi <p>The client is used to generate the tracking URL that is wrapped inside a HTML <img src=''> code. <br/>Paste this code before the </body> code in your pages. <code> - <?php <br/> - // Example 1: Tracks a pageview for Website id = {{ idSite }}<br/> + <?php + // Example 1: Tracks a pageview for Website id = {{ idSite }} echo '<img src="'. str_replace("&","&amp;", Piwik_getUrlTrackPageView( $idSite = {{ idSite }}, $customTitle = 'This title - will appear in the report Actions > Page titles')) . '" alt="" />';<br/> - // Example 2: Triggers a Goal conversion for Website id = {{ idSite }} and Goal id = 2<br/> - // $customRevenue is optional and is set to the amount generated by the current transaction (in online shops for example)<br/> + will appear in the report Actions > Page titles')) . '" alt="" />'; + // Example 2: Triggers a Goal conversion for Website id = {{ idSite }} and Goal id = 2 + // $customRevenue is optional and is set to the amount generated by the current transaction (in online shops for example) echo '<img src="'. str_replace("&","&amp;", Piwik_getUrlTrackGoal( $idSite = {{ idSite }}, $idGoal = 2, $customRevenue = - 39)) . '" alt="" />';<br/> + 39)) . '" alt="" />'; ?> </code> <br/> @@ -92,15 +92,15 @@ It is also possible to call the Piwik Tracking API using your favorite programmi <br/>Paste this code anywhere in your code where you wish to track a user interaction. <code> - <?php <br/> - $piwikTracker = new PiwikTracker( $idSite = {{ idSite }} );<br/> - // You can manually set the visitor details (resolution, time, plugins, etc.) <br/> - // See all other ->set* functions available in the PiwikTracker.php file<br/> - $piwikTracker->setResolution(1600, 1400);<br/><br/> - // Sends Tracker request via http<br/> - $piwikTracker->doTrackPageView('Document title of current page view');<br/><br/> - // You can also track Goal conversions<br/> - $piwikTracker->doTrackGoal($idGoal = 1, $revenue = 42);<br/> + <?php + $piwikTracker = new PiwikTracker( $idSite = {{ idSite }} ); + // You can manually set the visitor details (resolution, time, plugins, etc.) + // See all other ->set* functions available in the PiwikTracker.php file + $piwikTracker->setResolution(1600, 1400); + // Sends Tracker request via http + $piwikTracker->doTrackPageView('Document title of current page view'); + // You can also track Goal conversions + $piwikTracker->doTrackGoal($idGoal = 1, $revenue = 42); ?> </code> </p> |