diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-02-21 23:05:11 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-02-21 23:05:11 +0400 |
commit | 3bac06055defd0270488428fb7f76de83461a491 (patch) | |
tree | f2655eb3b579c9e734c5de411cb263e0d859a762 /tests | |
parent | faf36333704884105818762544c4c9182a44cfbb (diff) |
Fixing build
Diffstat (limited to 'tests')
-rw-r--r-- | tests/PHPUnit/Integration/expected/test_apiGetReportMetadata_year__SitesManager.getJavascriptTag.xml | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/tests/PHPUnit/Integration/expected/test_apiGetReportMetadata_year__SitesManager.getJavascriptTag.xml b/tests/PHPUnit/Integration/expected/test_apiGetReportMetadata_year__SitesManager.getJavascriptTag.xml index a54cb81bda..ba82594abe 100644 --- a/tests/PHPUnit/Integration/expected/test_apiGetReportMetadata_year__SitesManager.getJavascriptTag.xml +++ b/tests/PHPUnit/Integration/expected/test_apiGetReportMetadata_year__SitesManager.getJavascriptTag.xml @@ -1,14 +1,13 @@ <?xml version="1.0" encoding="utf-8" ?> -<result><!-- Piwik --> -<script type="text/javascript"> -var pkBaseURL = (("https:" == document.location.protocol) ? "https://example.org/piwik/" : "http://example.org/piwik/"); -document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E")); -</script><script type="text/javascript"> -try { - var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1); - piwikTracker.trackPageView(); - piwikTracker.enableLinkTracking(); -} catch( err ) {} -</script><noscript><p><img src="http://example.org/piwik/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript> -<!-- End Piwik Tracking Code --> +<result><!-- Piwik --> <script type="text/javascript"> +var _paq = _paq || []; +(function(){ var u=(("https:" == document.location.protocol) ? "https://example.org/piwik//" : "http://example.org/piwik//"); +_paq.push(['setSiteId', 1]); +_paq.push(['setTrackerUrl', u+'piwik.php']); +_paq.push(['trackPageView']); +_paq.push(['enableLinkTracking']); +var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.defer=true; g.async=true; g.src=u+'piwik.js'; +s.parentNode.insertBefore(g,s); })(); + </script><noscript><p><img src="http://example.org/piwik/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript> +<!-- End Piwik Code --> </result>
\ No newline at end of file |