diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2020-02-21 06:22:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-21 06:22:56 +0300 |
commit | a3ccdede6f6d6fed000a6de92a7284ba38e14b7f (patch) | |
tree | dd5787269353fdb6cfba22d9fa5b09bd05084da3 /tests/resources/overlay-test-site/index.html | |
parent | 150e6667e49469f77c73e4c9191963f719c93b6c (diff) |
Add UI test for JavaScript tracking. (#15567)
* Add UI test for JavaScript tracking.
* apply some review feedback
* try to fix UI test on travis
* Add missing screenshot.
* Normalize JSTracker UI test result.
* update screenshot
Diffstat (limited to 'tests/resources/overlay-test-site/index.html')
-rw-r--r-- | tests/resources/overlay-test-site/index.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/resources/overlay-test-site/index.html b/tests/resources/overlay-test-site/index.html index 2b1f099263..d8151c2054 100644 --- a/tests/resources/overlay-test-site/index.html +++ b/tests/resources/overlay-test-site/index.html @@ -86,12 +86,14 @@ <script> var pkBaseURL = (("https:" == document.location.protocol) ? "https://%trackerBaseUrl%" : "http://%trackerBaseUrl%"); try { - var piwikTracker = Piwik.getTracker(pkBaseURL + "matomo.php", 3); + var piwikTracker = Piwik.addTracker(pkBaseURL + "matomo.php", %idSite%); piwikTracker.setCookieDomain('*.piwik.org'); piwikTracker.trackPageView(); piwikTracker.enableLinkTracking(); - } catch( err ) {} + } catch( err ) { + console.log(err.stack || err.message); + } </script> </body> </html>
\ No newline at end of file |