Piwik insertion code is outdated, slows page loading

Description

The current code for piwik (in WEB-INF/template/scripts.xhtml) is outdated, and causes browser warnings like this one (thus breaking our tests):

WARNING: 06:23:16.556 http://localhost:48830/zanata/?dswid=-9554 109:16 A Parser-blocking, cross-origin script, http://example.com/piwik/piwik.js, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity.

This seems to be the current tracking code:

Environment

None

Activity

Show:
David Mason
September 14, 2016, 5:51 AM

To implement:

  • Data migration to strip off the http: and https: to leave the URLs to start with //

  • Replace piwik script with the current tracking code (shown in the description)

  • Change the validator for the piwik server URL

Ready for Release

Assignee

Sean Flanigan

Reporter

Sean Flanigan

Labels

None

Tested Version/s

None

Story Points

2

Components

Sprint

None

Fix versions

Affects versions

Priority

unspecified
Configure