diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2019-06-17 12:08:30 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2019-06-17 12:08:30 +0300 |
commit | d26139c15d24339dee3cbf2c9d131419403813ec (patch) | |
tree | 4335e9a8d5923f2def091683e0c513eaa4e0be48 /plugins/SitesManager/templates | |
parent | ed267097edc29349ec8482fdfac86b47bc23c660 (diff) |
Improve no data has been recorded page yet (#14527)
Diffstat (limited to 'plugins/SitesManager/templates')
-rw-r--r-- | plugins/SitesManager/templates/_displayJavascriptCode.twig | 3 | ||||
-rw-r--r-- | plugins/SitesManager/templates/siteWithoutData.twig | 47 |
2 files changed, 44 insertions, 6 deletions
diff --git a/plugins/SitesManager/templates/_displayJavascriptCode.twig b/plugins/SitesManager/templates/_displayJavascriptCode.twig index 3d49652493..030dcf9bcd 100644 --- a/plugins/SitesManager/templates/_displayJavascriptCode.twig +++ b/plugins/SitesManager/templates/_displayJavascriptCode.twig @@ -26,6 +26,9 @@ <h3>{{ 'SitesManager_MobileAppsAndSDKs'|translate }}</h3> <p>{{ 'SitesManager_MobileAppsAndSDKsDescription'|translate('<a href="https://matomo.org/integrate/#programming-language-platforms-and-frameworks" rel="noreferrer noopener" target="_blank">','</a>')|raw }}</p> + + <h3>{{ 'CoreAdminHome_HttpTrackingApi'|translate }}</h3> + <p>{{ 'CoreAdminHome_HttpTrackingApiDescription'|translate('<a href="https://developer.matomo.org/api-reference/tracking-api" rel="noreferrer noopener" target="_blank">','</a>')|raw }}</p> <p></p> {{ postEvent('Template.endTrackingHelpPage') }} diff --git a/plugins/SitesManager/templates/siteWithoutData.twig b/plugins/SitesManager/templates/siteWithoutData.twig index c21c1e41e8..dc7ac2b408 100644 --- a/plugins/SitesManager/templates/siteWithoutData.twig +++ b/plugins/SitesManager/templates/siteWithoutData.twig @@ -25,8 +25,7 @@ </script> <div class="site-without-data"> - - <h2>{{ 'SitesManager_SiteWithoutDataTitle'|translate }}</h2> + <div piwik-content-block content-title="{{ 'SitesManager_SiteWithoutDataTitle'|translate|e('html_attr') }}"> <p> {{ 'SitesManager_SiteWithoutDataDescription'|translate }} @@ -45,16 +44,52 @@ '<a href="https://matomo.org/features/" rel="noreferrer noopener" target="_blank">', "</a>", '<a href="https://matomo.org/docs/" rel="noreferrer noopener" target="_blank">', "</a>", '<a href="https://matomo.org/faq/" rel="noreferrer noopener" target="_blank">', "</a>")|raw }} +<br /> + </p> + + <div class='trackingHelp'> + + <h3>Integrations</h3> + <p>{{ 'Installation_JSTracking_Intro'|translate }}</p> + + <p>{{ 'CoreAdminHome_JSTrackingIntro3b'|translate('<a href="https://matomo.org/integrate/" rel="noreferrer noopener" target="_blank">','</a>')|raw }}</p> + + <h3>{{ 'General_JsTrackingTag'|translate }}</h3> + + <p>{{ 'CoreAdminHome_JSTracking_CodeNoteBeforeClosingHead'|translate("</head>")|raw }}</p> + + <pre piwik-select-on-focus>{{ jsTag|raw }}</pre> + + <p>{{ 'CoreAdminHome_JSTrackingIntro5'|translate('<a rel="noreferrer noopener" target="_blank" href="https://developer.matomo.org/guides/tracking-javascript-guide">','</a>')|raw }}</p> + + <p><br />{{ 'CoreAdminHome_JSTracking_EndNote'|translate('<a href="' ~ linkTo({'module': 'CoreAdminHome', 'action': 'trackingCodeGenerator'}) ~'">','</a>')|raw }} + <br /> + <br /> + <a href="{{ linkTo({module: 'CoreAdminHome', action: 'trackingCodeGenerator'}) }}"class="btn"><span class="icon-configure"></span> {{ 'SitesManager_CustomizeJavaScriptTracker'|translate }}</a></p> + <h3>{{ 'SitesManager_LogAnalytics'|translate }}</h3> + + <p>{{ 'SitesManager_LogAnalyticsDescription'|translate('<a href="https://matomo.org/log-analytics/" rel="noreferrer noopener" target="_blank">', '</a>')|raw }}</p> + + <h3>{{ 'SitesManager_MobileAppsAndSDKs'|translate }}</h3> + + <p>{{ 'SitesManager_MobileAppsAndSDKsDescription'|translate('<a href="https://matomo.org/integrate/#programming-language-platforms-and-frameworks" rel="noreferrer noopener" target="_blank">','</a>')|raw }}</p> + + <h3>{{ 'CoreAdminHome_HttpTrackingApi'|translate }}</h3> + <p>{{ 'CoreAdminHome_HttpTrackingApiDescription'|translate('<a href="https://developer.matomo.org/api-reference/tracking-api" rel="noreferrer noopener" target="_blank">','</a>')|raw }}</p> + <p></p> + + {{ postEvent('Template.endTrackingHelpPage') }} + + </div> + + {{ postEvent('Template.siteWithoutData.afterIntro') }} <br /> <br /> <a href="{{ linkTo({module: 'SitesManager', action: 'ignoreNoDataMessage'}) }}" class="btn ignoreSitesWithoutData">{{ 'SitesManager_SiteWithoutDataIgnoreMessage'|translate }}</a> - </p> - - {{ postEvent('Template.siteWithoutData.afterIntro') }} - {{ trackingHelp|raw }} + </div> {{ postEvent('Template.siteWithoutData.afterTrackingHelp') }} </div> |